[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-730153-105":59,"doc-detail-730153-en":130,"doc-similar-730153":166},{"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","two-variable-logic-on-data-trees-and-xml-reasoning","Two-Variable Logic on Data Trees and XML Reasoning","","Motivated by reasoning tasks for XML languages, the satisﬁability problem of logic on data trees is investigated. Nodes carry labels from a ﬁnite set and data values from a possibly inﬁnite set. It is proved that satisﬁability for two-variable ﬁrst-order logic is decidable when tree structure is accessed only via child and next-sibling predicates and data access is limited to equality tests. Consequences cover decidability for two data-aware XPath fragments and the implication problem under unary key and inclusion constraints.",{"@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/two-variable-logic-on-data-trees-and-xml-reasoning/730153/",{"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/two-variable-logic-on-data-trees-and-xml-reasoning/730153.png","ImageObject",300,407,{"name":92,"@type":93},"Stanley","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-22","2026-11-21",true,{"@type":102,"interactionType":103,"userInteractionCount":8},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the main problem studied for data trees and XML reasoning?","Question",{"text":112,"@type":113},"The document studies the satisﬁability problem for logical formulas interpreted on data trees used to model XML, where nodes have ﬁnite labels and possibly inﬁnite data values.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Under what restrictions is satisﬁability for two-variable ﬁrst-order logic shown decidable?",{"text":117,"@type":113},"Decidability holds when the tree structure is accessed only through child and next-sibling predicates, and data values are accessed only via equality tests.",{"name":119,"@type":110,"acceptedAnswer":120},"What logical fragments and applications are concluded from the main result?",{"text":121,"@type":113},"The work derives decidability of satisﬁability and containment for a data-aware fragment of XPath, and addresses the implication problem for unary key and inclusion constraints.","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},730153,1795304450,{"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":8,"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":24,"preview_urls":145},2336477405376,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Two-Variable Logic on Data Trees and XML Reasoning  \nMikolaj Boja´nczyk Warsaw University and  \nAnca Muscholl  \nLABRI & Universit´e Bordeaux 1 and  \nThomas Schwentick Universit¨at Dortmund  \nand Luc Segouﬁn INRIA & LSV  \nabstract  \nMotivated by reasoning tasks for XML languages, the satis􀀌ability problem of logicson data trees is investigated. The nodes of a data tree have a label from a 􀀌nite set and a data value from a possibly in􀀌nite set. It is shown that satis􀀌ability for two-variable 􀀌rst-order logic is decidable if the tree structure can be accessed only through the child and the next sibling predicates and the access to data values is restricted to equality tests. From this main result, decidability of satis􀀌ability and containment for a data-aware fragment of XPath and of the implication problem for unary key and inclusion constraints is concluded.  \n1. INTRODUCTION  \nMost theoretical work on XML and its query languages models XML documents by labeled ordered unranked trees, where the labels are from a 􀀌nite set. Attribute values are usually ignored. This has basically two reasons, which are not independent. First, the modeling allows to apply automata based techniques, as automata operate on trees of this kind. Second, extending the model by attribute values (data values) quickly leads to languages with undecidable static analysis (see, for instance [Alon et al. 2003; Neven and Schwentick 2003; Benedikt et al. 2005; Geertsand Fan 2005]) .  \nNevertheless, there are examples of decidable static reasoning tasks involving attribute values [Arenas et al. 2005; Buneman et al. 2003] . The motivation for our work was to 􀀌nd a logical approach for such tasks.  \nIt is immediately clear that full 􀀌rst-order logic is far too powerful for this purpose. Satis􀀌ability for 􀀌rst-order logic with a predicate for data values equality is undecidable already on strings [Boja􀀓nczyk et al. 2006] . There are several possible candidates for more appropriate logics, including temporal logics or fragments of 􀀌rst-order logic. In this work, we concentrate on a (classical) fragment of 􀀌rst-order logic, two-variable logic. There are several good reasons to consider this fragment.  \n2 ·  \nIt is known that on many kinds of structures this fragment is decidable [Gr¨adeland Otto 1999] . On ordered, unranked trees, it corresponds in a natural way to the navigational behavior of XPath1 , and it can express many interesting integrity constraints.  \nBefore we describe the technical contributions of the paper, we 􀀌rst discuss the connections with XML processing in more detail.  \nCore-XPath, the fragment of XPath capturing its navigational behavior introduced by Gottlob et al. [Gottlob et al. 2002], is by now well understood. In particular, it corresponds to FO2 (\u003C, +1) on unranked ordered trees [Marx 2005] . Here, FO2 (\u003C, +1) is the two-variable fragment of 􀀌rst-order logic that uses the order \u003C and successor +1 relations, along with the labels of the nodes. The labels are encoded by unary relations, one for each of the (􀀌nitely many) possible labels. The symbol “\u003C” refers to two binary predicates: one for comparing the descendant/ancestor relationship of two nodes and one for the preceding/following relationship of two siblings. Similarly, “+1” also refers to two binary predicates: one for comparing the parent/child relationship of two nodes and one for comparing the next/previous sibling relationship of two siblings. Core-XPath is decidable even in the presence of DTDs and the complexity of many of its fragments has been studied in the literature. We refer to [Benedikt et al. 2005; Geerts and Fan 2005] and the references therein for a comprehensive survey.  \nIn the presence of data values a simple extension of Core-XPath is to allow (in)equalities of the form p/@A op q/@B , op ∈ {= , }, inside quali􀀌ers, meaning that the value of the A attribute of some node accessible by a path matching p equals the B attribute value of some node accessible by a path m","cbCaikqei5NLPBiw","https://ap.wps.com/l/cbCaikqei5NLPBiw","pdf",502095,48,"English","# Introduction\n## Modeling XML with labeled unranked trees and ignored attributes\n## Two-variable logic as a foundation for XPath navigation behavior\n## Extending XML logic with data-value equality (Core-Data-XPath / FOXPath)\n## Main result: decidability of FO2 with successor and data equality","[{\"question\":\"What is the main problem studied for data trees and XML reasoning?\",\"answer\":\"The document studies the satisﬁability problem for logical formulas interpreted on data trees used to model XML, where nodes have ﬁnite labels and possibly inﬁnite data values.\"},{\"question\":\"Under what restrictions is satisﬁability for two-variable ﬁrst-order logic shown decidable?\",\"answer\":\"Decidability holds when the tree structure is accessed only through child and next-sibling predicates, and data values are accessed only via equality tests.\"},{\"question\":\"What logical fragments and applications are concluded from the main result?\",\"answer\":\"The work derives decidability of satisﬁability and containment for a data-aware fragment of XPath, and addresses the implication problem for unary key and inclusion constraints.\"}]","Two-Variable Logic on Data Trees and XML Reasoning | PDF",121,[146,150,154,158,162],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/af1ea79dfe7c5c44e02810dde3caaf84.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/57b84615834028ee0d933328a737fad1.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/1155b4ffac2dcffbbd6684b00634eccf.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/b39b977ca1ae062547d9e4a5974211a1.webp",980,1268,{"page_no":24,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/88719e1fbb915a4de7990afd2e76e4f5.webp",979,1267,{"list":167,"token":66},[168,174,180,187,194,200,206,213,219,226],{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":14,"category_name":40,"create_tm":173},726295,"Computation_Complexity - 2015 - overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230028837613/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796107559&Signature=BMsdaLfoNRDvffWhb%2BboeZqk9jM%3D","computation_complexity-2015-overview",1795212001,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":39,"category_name":40,"create_tm":179},496362,"A Subsumption Hierarchy of Test Case Prioritization for Composite Services","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229929459780/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796107559&Signature=b8znQAeCm5mFm8Cvv%2BTVvK094k8%3D","a-subsumption-hierarchy-of-test-case-prioritization-for-composite-services",1790931160,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":185,"category_name":40,"create_tm":186},117515,"A Modal Logic for Uncertainty - a Completeness Theorem","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834686674/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796107559&Signature=pIU0a8ci85ach7xHtlcivVK4b80%3D","a-modal-logic-for-uncertainty-a-completeness-theorem",18,1785676509,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":192,"category_name":40,"create_tm":193},82437,"Kleene Algebra with Transitive Commutativity Conditions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808892767/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796107559&Signature=E0DveqLwBzkPGMyzVMqDoaL4T%2Fs%3D","kleene-algebra-with-transitive-commutativity-conditions",17,1784180375,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":39,"category_name":40,"create_tm":199},504882,"Picat - A Logic-based Multi-paradigm Language - Personal Discussion","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229932145436/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796107559&Signature=B0bn96MkKOQes8DEWeoR4JTzZFY%3D","picat-a-logic-based-multi-paradigm-language-personal-discussion",1791077225,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":185,"category_name":40,"create_tm":205},82626,"ADVENT: LLM-Driven Automatic Predicate Invention for ILP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808770829/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796107559&Signature=ERUt%2F54tA1Q68zrz48KJjUsRdOM%3D","advent-llm-driven-automatic-predicate-invention-for-ilp",1784181894,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":211,"category_name":40,"create_tm":212},127691,"Stress and Emotion Detection System Using IoT and Machine Learning with a Fuzzy Inference-Based Mental Health Risk Assessment Module - Research","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229839445188/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796107559&Signature=fj23Ri%2F6utZViaYfN%2Fxxna7XYrk%3D","stress-and-emotion-detection-system-using-iot-and-machine-learning-with-a-fuzzy-inference-based-mental-health-risk-assessment-module-research",15,1785940907,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":19,"category_name":40,"create_tm":218},699322,"Evaluating Large Reasoning Models on Belief Revision","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010892756/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796107559&Signature=q9lKLCgzfcmvYzm%2Flw27U2vLpVI%3D","evaluating-large-reasoning-models-on-belief-revision",1794464721,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":40,"create_tm":225},83742,"A Modern View on MCSat","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809091185/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796107559&Signature=fDwhU%2BoGdQsA5stXuxzZt8OwXKc%3D","a-modern-view-on-mcsat",24,1784190150,{"doc_id":227,"doc_title":228,"file_type":137,"home_preview_img_url":229,"slug":230,"view_count":29,"category_name":40,"create_tm":231},505116,"2P-Kt - logic programming with objects & functions in Kotlin","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229932245444/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796107559&Signature=yaVnkM6tWrv5lcKOvFrqDEldSYk%3D","2p-kt-logic-programming-with-objects-functions-in-kotlin",1791090507]