[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-86066-en":3,"doc-seo-86066-105":30,"detail-sidebar-cat-0-en-105":83},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":21,"is_downloadable":21,"audit_status":21,"page_count":22,"language":23,"language_code":24,"site_id":25,"html_lang":24,"table_of_contents":26,"faqs":27,"seo_title":13,"seo_description":14,"update_tm":28,"read_time":29},86066,687197207057,"Sage","https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0",8,"Research & Report","First Order Modal Logic in HOL Deep and Shallow Embeddings with Automated Faithfulness","The extended preprint develops, in Isabelle/HOL, deep-and-shallow embedding techniques for first-order modal logic with constant-domain Kripke semantics. Three side-by-side embeddings are provided: a deep embedding, a heavyweight maximal-shallow embedding, and a lightweight minimal-shallow embedding. The minimal-shallow embedding is formalized as an Isabelle/HOL locale with a global faithfulness theorem showing that quantifying over all minimal-shallow interpretations exactly recovers deep validity. Faithfulness automation relies on a mechanized downward Löwenheim–Skolem theorem and new substitution machinery for first-order quantifiers.","First-Order Modal Logic in HOL: Deep and Shallow Embeddings with Automated Faithfulness (Extended Preprint)  \nChristoph Benzmüller1,2, * , Daniel Kirchner1  \n1 University of Bamberg, Bamberg, Germany 2 Freie Universität Berlin, Berlin, Germany  \nAbstract  \nWe extend, in Isabelle/HOL, the deep-and-shallow embedding methodology of our prior work from propositionalto first-order modal logic (FML) with constant-domain Kripke semantics. Three embeddings ofFML into classical higher-order logic (HOL) are provided side by side: a deep embedding, a heavyweight maximal-shallow embedding, and a lightweight minimal-shallow embedding. The minimal-shallow embedding is presented as an Isabelle/HOL locale, parametrised by an accessibility relation, a world-indexed interpretation, a universe of worlds, and a variable assignment; the locale form admits a global faithfulness theorem, stating that quantifying over all minimal-shallow interpretations recovers exactly deep validity.  \nA central technical contribution is a mechanisation, for FML under constant-domain Kripke semantics, of the (countable) downward Löwenheim–Skolem theorem, which underpins the automation of our faithfulness proof between the deep and minimal-shallow embeddings. Deploying it inside an extension of the minimal-shallow locale resolves the surjectivity problem that arises against an uncountable domain of individuals —where the locale’s variable assignment, having countable domain 􀁖 = nat, cannot be surjective onto the domain — and thereby yields faithfulness over the full domain.  \nSince prior work treats only the propositional fragment, we develop here the substitution machinery (free/bound-variable predicates, the fresh-variable function, capture-avoiding substitution, alphabetic renaming, the substitutability predicate, the substitution lemma, and size-based induction principles) needed for the first-order quantifiers.  \nKeywords  \nfirst-order modal logic, Kripke semantics, shallow embedding, deep embedding, Isabelle/HOL, locales, elementary substructure, Löwenheim–Skolem theorem, Tarski–Vaught test, faithfulness automated  \n1. Motivation and Introduction  \nFirst-order modal logic (FML) sits at the intersection of two of the most pervasive sources of expressive power in symbolic logic: quantification and modality. It is a natural setting for many applications of logic in artificial intelligence, computer science, and philosophy. Embeddings into classical higher-order logic (HOL) [1, 2] have repeatedly been shown to provide a fruitful host environment for such logics; see [3, 4] and the references therein.  \nShallow embeddings, which identify object-level formulae with HOL terms via the standard translation, give immediate access to Isabelle/HOL’s proof automation, including sledgehammer, nitpick, and auto. Deep embeddings, in which formulae are represented as elements of an inductively defined datatype, are needed for metalogical reasoning about syntax, substitution, or proof systems.  \nWe have recently shown [5] that both approaches can be carried out simultaneously, in a single HOL theory, in such a way that mutual faithfulness proofs can be automated. That paper focuses on propositional modal logic (PML), where modality is the only complication. The natural next step, which we take in this paper, is to add quantification in order to move from PML to FML.  \nARQNL’26: International Workshop on Automated Reasoning in Quantified Non-Classical Logics, 2026  \n* Corresponding author.  \n$ [christoph.benzmueller@uni-bamberg.de](christoph.benzmueller@uni-bamberg.de) (C. Benzmüller); [daniel.kirchner@uni-bamberg.de](daniel.kirchner@uni-bamberg.de) (D. Kirchner)  \n􀀚 0000-0002-3392-3093 (C. Benzmüller); 0000-0001-9229-1148 (D. Kirchner)  \n © 2026 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0) .  \nContributions. We contribute MinFMLinHOL,1 an Isabelle/HOL development covering FML with binary relationa","cbCaiiXDS77Mp13w","https://ap.wps.com/l/cbCaiiXDS77Mp13w","pdf",4462338,2,1,21,"English","en",105,"# Abstract\n# Motivation and Introduction\n# Contributions\n## Embeddings (Deep and Shallow)\n## Faithfulness via Locales\n## Substitution Machinery for Quantifiers\n## Downward Löwenheim–Skolem and Faithfulness Automation","[{\"question\":\"What technical results support the automated faithfulness proof?\",\"answer\":\"A mechanization of the (countable) downward Löwenheim–Skolem theorem for FML under constant-domain semantics provides the key bridge between deep validity and minimal-shallow interpretations, while new first-order substitution machinery supports quantifier reasoning.\"}]",1784208247,53,{"code":4,"msg":31,"data":32},"ok",{"site_id":25,"language":24,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":78,"head_meta":80,"extra_data":82,"updated_unix":28},"first-order-modal-logic-in-hol-deep-and-shallow-embeddings-with-automated-faithfulness","",{"@graph":36,"@context":77},[37,53,68],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,47,50],{"item":41,"name":42,"@type":43,"position":21},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":20},"https://docshare.wps.com/document/","Document",{"item":48,"name":12,"@type":43,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":43,"position":52},"https://docshare.wps.com/document/first-order-modal-logic-in-hol-deep-and-shallow-embeddings-with-automated-faithfulness/86066/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":24,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":41,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-25","2026-07-16",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71],{"name":72,"@type":73,"acceptedAnswer":74},"What technical results support the automated faithfulness proof?","Question",{"text":75,"@type":76},"A mechanization of the (countable) downward Löwenheim–Skolem theorem for FML under constant-domain semantics provides the key bridge between deep validity and minimal-shallow interpretations, while new first-order substitution machinery supports quantifier reasoning.","Answer","https://schema.org",{"og:url":51,"og:type":79,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":81,"canonical":51},"index,follow",{"doc_id":7,"site_id":25},{"code":4,"msg":5,"data":84},[85,89,93,97,102,107,112,115,120,123,127],{"id":21,"doc_module":4,"doc_module_name":46,"category_name":86,"show_sort_weight":87,"slug":88},"Story & Novel",90,"story-novel",{"id":20,"doc_module":4,"doc_module_name":46,"category_name":90,"show_sort_weight":91,"slug":92},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":46,"category_name":94,"show_sort_weight":95,"slug":96},"Exam",70,"exam",{"id":98,"doc_module":4,"doc_module_name":46,"category_name":99,"show_sort_weight":100,"slug":101},5,"Comic",60,"comic",{"id":103,"doc_module":4,"doc_module_name":46,"category_name":104,"show_sort_weight":105,"slug":106},6,"Technology",50,"technology",{"id":108,"doc_module":4,"doc_module_name":46,"category_name":109,"show_sort_weight":110,"slug":111},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":113,"slug":114},30,"research-report",{"id":116,"doc_module":4,"doc_module_name":46,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":46,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":46,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":46,"category_name":129,"show_sort_weight":98,"slug":130},19,"General","general"]