Skip to content
DraconiticResearch
Search Sources API
203,203 studies31 sourcesUpdated 14 min ago
PreprintCC BY 4.0arXiv

Monadic Second-Order Logic in HOL: Deep and Shallow with Automated Faithfulness (Extended Preprint)

Abstract

In Isabelle/HOL, we apply the deep-and-shallow embedding methodology of our prior work to monadic second-order logic (MSO). Three embeddings are developed side by side: a deep embedding (an inductive datatype with an explicit satisfaction relation); a maximal-shallow embedding that translates the connectives and quantifiers directly into HOL, carrying the interpretation and both assignments explicitly; and a minimal-shallow embedding -- a locale that fixes those parameters, collapsing the formula type to bool. The enabling new ingredient is a two-sorted substitution apparatus -- capture-avoiding substitution, renaming, and a substitution lemma per namespace -- in which each binder is transparent for the other; faithfulness of all three embeddings is mechanised and largely automated. Our central contribution is a fully mechanised two-sorted downward Loewenheim-Skolem theorem: the minimal embedding recovers deep validity relative to the (countable) assignment ranges, and this range-relative reading is shown to coincide with the general (Henkin-style) reading of MSO, whereas the standard reading validates strictly more formulas, witnessed by comprehension. Both readings are nonetheless recovered from the minimal embedding, differing only in the admitted interpretations: all of them for the general reading, only the elementary substructures of the full model for the standard. We exercise the embeddings on classical MSO landmarks: the Boolean-closure and graph schemata hold under the full second-order domain yet fail in the minimal embedding, making the dichotomy concrete, while reachability and 2-colorability are refuted throughout.

Related

  1. Almost Symmetric Linear Arc Monadic Datalog and Transitive Tournaments
    Sebastian Meyer, Florian Starke
    arXivPreprintCC BY-NC-SA 4.0Full textAlgebra & number theoryarXiv
  2. Monadic second-order logic and the domino problem on self-similar graphs
    Laurent Bartholdi
    Groups, Geometry, and DynamicsPeer-reviewedCC BYFull text3 citedAlgebra & number theoryHAL
  3. Faithfulness Without Anchors: A Position Paper on the Structural Misalignments of Explainable AI Faithfulness Metrics for Feature Importance
    Marco Zullich, Emily Schiller, Ivan Gentile +4
    arXivPreprintCC BY-NC-SA 4.0Full textStatisticsarXiv
  4. Forking and invariant types in monadic NIP theories
    Michael C. Laskowski
    arXivPreprintCC BY 4.0Full textLogic & foundationsarXiv
  5. Ab-faithfulness of absolute Galois groups in number theory
    Naganori Yamaguchi
    arXivPreprintarXiv licenceFull textAlgebra & number theoryarXiv
BibTeX
@misc{benzmueller2026monadic,
  title = {{Monadic Second-Order Logic in HOL: Deep and Shallow with Automated Faithfulness (Extended Preprint)}},
  author = {Christoph Benzmueller and Daniel Kirchner},
  howpublished = {arXiv},
  year = {2026},
  month = sep,
  doi = {10.48550/arxiv.2609.07345},
  eprint = {2609.07345},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.07345},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - Monadic Second-Order Logic in HOL: Deep and Shallow with Automated Faithfulness (Extended Preprint)
AU  - Christoph Benzmueller
AU  - Daniel Kirchner
PY  - 2026
DA  - 2026/09/21
PB  - arXiv
DO  - 10.48550/arxiv.2609.07345
UR  - https://arxiv.org/abs/2609.07345
AB  - In Isabelle/HOL, we apply the deep-and-shallow embedding methodology of our prior work to monadic second-order logic (MSO). Three embeddings are developed side by side: a deep embedding (an inductive datatype with an explicit satisfaction relation); a maximal-shallow embedding that translates the connectives and quantifiers directly into HOL, carrying the interpretation and both assignments explicitly; and a minimal-shallow embedding -- a locale that fixes those parameters, collapsing the formula type to bool. The enabling new ingredient is a two-sorted substitution apparatus -- capture-avoiding substitution, renaming, and a substitution lemma per namespace -- in which each binder is transparent for the other; faithfulness of all three embeddings is mechanised and largely automated. Our central contribution is a fully mechanised two-sorted downward Loewenheim-Skolem theorem: the minimal embedding recovers deep validity relative to the (countable) assignment ranges, and this range-relative reading is shown to coincide with the general (Henkin-style) reading of MSO, whereas the standard reading validates strictly more formulas, witnessed by comprehension. Both readings are nonetheless recovered from the minimal embedding, differing only in the admitted interpretations: all of them for the general reading, only the elementary substructures of the full model for the standard. We exercise the embeddings on classical MSO landmarks: the Boolean-closure and graph schemata hold under the full second-order domain yet fail in the minimal embedding, making the dichotomy concrete, while reachability and 2-colorability are refuted throughout.
ER  -