[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-730145-105":59,"doc-detail-730145-en":130,"doc-similar-730145":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","on-knowledge-compilation-for-two-variable-first-order-logic","On Knowledge Compilation For Two-Variable First-Order Logic","","Knowledge compilation transforms logical theories into circuit representations that enable efficient reasoning. The work studies compact representations for propositional groundings of the two-variable fragment FO2 of first-order logic over finite domains. For an FO2 sentence and domain size n, the grounding produces a propositional theory over ground atoms. The paper proves that compact compilation is impossible in general, requiring DNNF size 2^{Omega(n)} for some FO2 sentence. It also proposes a symmetry-exploiting two-stage compiler with efficient caching of equivalent residual subproblems, showing strong experimental speed and circuit-size improvements.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/on-knowledge-compilation-for-two-variable-first-order-logic/730145/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/on-knowledge-compilation-for-two-variable-first-order-logic/730145.png","ImageObject",300,407,{"name":92,"@type":93},"Đào","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-11-21",true,{"@type":102,"interactionType":103,"userInteractionCount":14},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does the document study in knowledge compilation?","Question",{"text":112,"@type":113},"It studies whether propositional theories obtained by grounding FO2 sentences admit compact representations in DNNF-based knowledge compilation languages, and whether such representations can be built efficiently with respect to domain size n.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What is the main negative result?",{"text":117,"@type":113},"For general cases, there exists an FO2 sentence whose grounding on a domain of size n requires DNNF size 2^{Omega(n)}, making polynomial-size compilation impossible in general.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the proposed compiler improve efficiency?",{"text":121,"@type":113},"It uses a two-stage approach that branches on unary and binary types instead of individual ground atoms, and it optimizes compilation by identifying and caching equivalent residual subproblems for future extensions.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},730145,1795304391,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":14,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":19,"preview_urls":145},1374402968488,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","arXiv :2605 . 11796v1 [ cs .LO] 12 May 2026  \nOn Knowledge Compilation For Two-Variable First-Order Logic  \nQiaolan Meng \\#  Beihang University, China Juhua Pu \\#  Beihang University, China Hongting Niu \\#  Beihang University, China Yuyi Wang \\#   \nCRRC Zhuzhou Institute, China Yuanhong Wang \\#  Jilin University, China Ondřej Kuželka \\#   \nCzech Technical University in Prague, Czech Republic  \n~~ Abstract ~~  \nKnowledge compilation transforms logical theories into circuit representations that support efficient reasoning. We study this problem for propositional groundings of FO2 , the two-variable fragment of first-order logic over finite domains. Given an FO2 sentence and a domain of size n, its grounding yields a propositional theory over ground atoms. We ask whether such theories admit compact representations in DNNF-based and related knowledge compilation languages, and whether these can be constructed efficiently, both with respect to the domain size n for a fixed sentence. We show first that compact compilation is impossible in general: there exists an FO2 sentence whose grounding over a domain of size n requires DNNF size 2Ω(n) . On the positive side, we develop a two-stage compiler that exploits the symmetries inherent in the propositional groundings of FO2 sentences. It branches on unary and binary types rather than individual ground atoms, in a similar spirit to lifted inferences for probabilistic relational models. Moreover, it optimizes the compilation process by efficiently identifying and caching residual subproblems that are equivalent with respect to future extensions. Experiments show the practical efficiency of our approach, which often produces smaller circuits and compiles faster than straightforward grounding-based baselines.  \n2012 ACM Subject Classification Theory of computation → Automated reasoning Keywords and phrases Knowledge Compilation, First-order Logic, SAT  \nAcknowledgements We thank the anonymous reviewers for their helpful comments and suggestions.  \n 1  Introduction  \nKnowledge compilation (KC) studies how to transform a logical theory into a target representation that supports efficient downstream reasoning. Prominent target languages include the decomposable negation normal form (DNNF), which admits tractable queries such as satisfiability and conditioning, and its deterministic variant d-DNNF, which additionally supports efficient model counting and related inference tasks [12, 8] .  \nIn this paper, we study knowledge compilation for groundings of first-order theories, focusing on the two-variable fragment FO2 over finite domains. Given a fixed FO2 sentence Γ and a finite domain ∆, grounding Γ over ∆ yields a propositional theory whose variables correspond to ground atoms. We ask two basic questions: whether these grounded theories admit compact representations in DNNF-based languages, and whether such representations  \n2 On Knowledge Compilation For Two-Variable First-Order Logic  \ncan be constructed efficiently, both with respect to the domain size n for a fixed sentence.  \nAnswering these questions has immediate practical value. For instance, d-DNNF admits linear-time conditioning [12] and model sampling [15, 20], which naturally enables exact conditional sampling to complete partially observed relational data while strictly respecting universal and existential constraints. Furthermore, when the compiled circuit is organized asa structured d-DNNF with respect to a fixed variable tree, it can be composed with other structured circuits over the same variables, enabling modular integration with probabilistic or neurosymbolic architectures [3, 2 , 1] . Particularly, neurosymbolic learning systems usually reason over complex relational domains, and their symbolic knowledge bases are inherently specified in first-order logic (FOL) rather than propositional logic. Targeting the knowledge compilation of the FO2 fragment, a well-studied subset of FOL with balanced expressivity and decidability [","cbCaif3V16eLKMAs","https://ap.wps.com/l/cbCaif3V16eLKMAs","pdf",906463,37,"English","# Introduction\n## Knowledge compilation overview\n## Problem setting and core questions","[{\"question\":\"What problem does the document study in knowledge compilation?\",\"answer\":\"It studies whether propositional theories obtained by grounding FO2 sentences admit compact representations in DNNF-based knowledge compilation languages, and whether such representations can be built efficiently with respect to domain size n.\"},{\"question\":\"What is the main negative result?\",\"answer\":\"For general cases, there exists an FO2 sentence whose grounding on a domain of size n requires DNNF size 2^{Omega(n)}, making polynomial-size compilation impossible in general.\"},{\"question\":\"How does the proposed compiler improve efficiency?\",\"answer\":\"It uses a two-stage approach that branches on unary and binary types instead of individual ground atoms, and it optimizes compilation by identifying and caching equivalent residual subproblems for future extensions.\"}]","On Knowledge Compilation For Two-Variable First-Order Logic | PDF",93,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/86a64d75e86abf9f21ec07d782ac1df5.webp",983,1390,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/8488c41185bbf69e6ede99e41aafc1a6.webp",982,1388,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/0d1108ac1158f431b8ae772b29a1729a.webp",981,1387,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/1e92a73584142847b512fd230043ef43.webp",980,1385,{"list":163,"token":66},[164,170,176,183,189,195,200,206,212,219],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":34,"category_name":40,"create_tm":169},443818,"On Knowledge Compilation for Two-Variable First-Order Logic - Article No. 26","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229924648879/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=4N%2FLV67CiMC%2Fhbt60FePeXVhB%2Fw%3D","on-knowledge-compilation-for-two-variable-first-order-logic-article-no-26",1790705550,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":39,"category_name":40,"create_tm":175},655836,"Decision Diagrams for Optimization - Doctoral Dissertation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974778545/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=nmwGWKqGtQaq3McXvT3GrbTQfk4%3D","decision-diagrams-for-optimization-doctoral-dissertation",1792964171,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":40,"create_tm":182},150471,"SAS: Simulated Attention Score - Paper Conference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229869937793/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=U0UrMUJjRoBn2pMPVuxKcesgUhc%3D","sas-simulated-attention-score-paper-conference",11,1787820912,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":52,"category_name":40,"create_tm":188},505015,"Optimizing SAT Encodings for Arithmetic - Constraints - Equivalence Reasoning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229932011508/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=PNS7nWbQrYpY4dfHyTzidM6MrqI%3D","optimizing-sat-encodings-for-arithmetic-constraints-equivalence-reasoning",1791086097,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":34,"category_name":40,"create_tm":194},665378,"Dynamic programming in influence diagrams with decision circuits - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983848313/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=ZwkkNnNyF5p5IJuOpF2jnNRGUIE%3D","dynamic-programming-in-influence-diagrams-with-decision-circuits-read-online-free",1793301842,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":181,"category_name":40,"create_tm":188},505014,"The SAT Compiler in Picat","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229932011507/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=FxOB99hhobiCcazsUdGGhKYjY8g%3D","the-sat-compiler-in-picat",{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":56,"category_name":40,"create_tm":205},127018,"Leveraging Quantum Machine Learning Generalization to Significantly Speed-up Quantum Compilation - Abstract and Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229839520827/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=8rr4dhixiLUjMh5OvITmBrp0jow%3D","leveraging-quantum-machine-learning-generalization-to-significantly-speed-up-quantum-compilation-abstract-and-overview",1785936356,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":46,"category_name":40,"create_tm":211},84414,"Walking on Spheres and Talking to Neighbors Variance Reduction for Laplace’s Equation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809170561/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=AgDIYjuD%2BYdRiblxuqYnkHYxfvE%3D","walking-on-spheres-and-talking-to-neighbors-variance-reduction-for-laplaces-equation",1784195475,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":40,"create_tm":218},150473,"Simulated Attention Score (SAS) - Parameter-Efficient Attention Aggregation (PEAA)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229869937794/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=ANGkpwtVGG6vcaqeZCEE8K5xk6M%3D","simulated-attention-score-sas-parameter-efficient-attention-aggregation-peaa",13,1787820925,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":24,"category_name":40,"create_tm":224},686414,"Learning to Rank Tensor Network Contraction Plans for GPU-Accelerated Quantum Circuit Simulation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000814276/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=UMeKrwVKEOGPuGtMkDL1S47JYbg%3D","learning-to-rank-tensor-network-contraction-plans-for-gpu-accelerated-quantum-circuit-simulation",1794042475]