[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-671776-105":59,"doc-detail-671776-en":130,"doc-similar-671776":152},{"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","exercise-sheet-2-logic-and-proof","Exercise Sheet 2 - Logic and Proof","","Logic and Proof Exercise Sheet 2 presents ten formal logic and complexity exercises centered on satisfiability of CNF and related fragments. Topics include resolution and DPLL with clause learning, pseudorefutations for PHP, reductions between renamable Horn formulas and 2-CNF, runtime bounds for Walk-SAT on Horn-CNF, polynomial-time satisfiability for variables occurring at most twice, and learned clauses in DPLL for 2-CNF. Additional proofs cover positive resolution completeness, derivability from semantical entailment via finite subsets (compactness), and Ramsey-type implications using the Compactness Theorem.",{"@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/exercise-sheet-2-logic-and-proof/671776/",{"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/exercise-sheet-2-logic-and-proof/671776.png","ImageObject",300,407,{"name":92,"@type":93},"Đào","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-12","2026-11-02",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"How should resolution be used to show that P1 ∧ P2 ∧ P3 is a consequence of the given formula F?","Question",{"text":112,"@type":113},"Construct the appropriate resolution refutations/derivations from F to obtain clauses entailed by P1 ∧ P2 ∧ P3, using the resolution rule to eliminate complementary literals until the required consequence clause is derived.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What reduction turns a renamable Horn CNF formula into a 2-CNF formula, preserving satisfiability?",{"text":117,"@type":113},"For each variable, introduce a structure encoding whether the variable is negated in the renaming and construct a 2-CNF formula G that enforces the Horn-renaming constraints. Then show G is satisfiable exactly when the original CNF is renamable Horn, and reconstruct a valid renaming from any satisfying assignment to G.",{"name":119,"@type":110,"acceptedAnswer":120},"Why do learned clauses in DPLL for 2-CNF end up being either empty or singletons?",{"text":121,"@type":113},"Compare DPLL’s clause learning mechanism on 2-CNF with the standard 2-SAT propagation/implication structure. Since original clauses have size at most two, the learning process can only produce resolvents/implications that collapse to either a contradiction (empty clause) or a unit clause (singleton).","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},671776,1793579954,{"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":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":14,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":24,"preview_page_count":14,"preview_urls":143},1374402968488,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Logic and Proof Hilary 2024  \nExercise Sheet 2  \nJames Worrell  \nAnswers to questions marked with 􀀃 will be posted on the course website.  \n1􀀃 . Using resolution, show that P1 ^ P2 ^ P3 is a consequence of  \nF := (:P1 _ P2 ) ^ (:P2 _ P3 ) ^ (P1 _ :P3 ) ^ (P1 _ P2 _ P3 ) :  \n2􀀃 . Simulate a run of the DPLL algorithm with clause learning on the following formula. Use the decision strategy assign true to the currently unassigned variable of least index.  \n|(:p 1  _  :p2 ) ^ |(:p 1 _p3 ) ^ |(:p3  _  :p4 ) ^ |(p2 _p4 _p5 ) ^ |(:p5 _ :p6 _ :p7 )  \n{z } {z } {z } {z } {z }  \nC1 C2 C3 C4  \n^ |(:p6 _p7 _ :p8 ) ^ (p8 _ :p9 ) ^ (p8 _p9 _ :p 1 )  \n{z } | {z } | {z }  \nC6 C7 C8  \nC5  \n3􀀃 . As suggested in Footnote 1 of Lecture 7, give a formal proof that C01; : : : ; C0m0 is a pseudorefutation of PHP n􀀀1 .  \n4. A renamable Horn formula is a CNF formula that can be turned into a Horn formula by negating (all occurrences of) some of its variables. For example,  \n(P1 _ :P2 _ :P3 ) ^ (P2 _ P3 ) ^ (:P1 )  \ncan be turned into a Horn formula by negating P1 and P2 .  \nGiven a CNF-formula F , show how to derive a 2-CNF formula G such that G is satis􀀌able if and only if F is a renamable Horn formula. Show moreover that one can derive a renaming that turns F into a Horn formula from a satisfying assignment for G.  \n5. Let F be a Horn-CNF formula, with n variables, in which all clauses contains at least two literals. Argue that when run on F , the Walk-SAT algorithm 􀀌nds a satisfying assignment for F with probabilty at least 1=2 after 2n2 steps.  \n6. Using resolution, or otherwise, show that there is a polynomial-time algorithm to decide satis􀀌ability of those CNF formulas F in which each propositional variable occurs at most twice. Justify your answer.  \n(Hint: Show how to eliminate a variable from the formula without a􀀋ecting satis􀀌ability or increasing the number of clauses.)  \n7. Argue that if the DPLL algorithm is run on a 2-CNF formula then every clause that is learned is either empty or a singleton.  \n(Hint: Compare the DPLL algorithm with the algorithm for 2-SAT in Figure 2, Lecture 4.)  \n8. Positive resolution is a restriction of ordinary resolution, which is de􀀌ned as follows: derive a resolvent from C1 and C2 only if C1 is a positive clause, i.e., it consists only of positive literals. Show that if F is an unsatis􀀌able CNF formula then one can derive the empty clause from F using only positive resolution.  \n9. Suppose that S j= F for some formula F and set of formulas S. Show that there is a 􀀌nite set S0 􀀒 S such that S0 j= F.  \n10. Given an undirected graph G = (V; E), a set of vertices S 􀀒 V is a clique if every pair of distinct vertices u; v 2 S is connected by an edge and S is an independent set if no pair of distinct vertices u; v 2 S is connected by an edge. Now consider the following two statements:  \n(A) Every in􀀌nite graph either has an in􀀌nite clique or an in􀀌nite independent set.  \n(B) For all k there exists n such that any graph with n vertices has a clique of size k or an independent set of size k.  \nThe goal of this question is to show that (A) implies (B) .1  \n(a) Carefully formulate the negation of (B) .  \n(b) Assuming the negation of (B), use the Compactness Theorem to prove the negation of  \n(A), i.e., that there is an in􀀌nite graph with no in􀀌nite clique and no in􀀌nite independent set.  \n1 As an optional exercise, beyond the scope of the course, you can try to prove (A) . This result is Theorem 1 in [https://www.dpmms.cam.ac.uk/](https://www.dpmms.cam.ac.uk/) ~par31/notes/ramsey.pdf. Combining this with 7(b) we obtain a proof of (B).","cbCaitlYIQUrFo9u","https://ap.wps.com/l/cbCaitlYIQUrFo9u","pdf",158744,"English","# Exercise Sheet 2\n## Resolution and consequences\n## DPLL with clause learning simulation\n## Pseudorefutation and PHPn-1\n## Renamable Horn to 2-CNF reduction\n## Walk-SAT runtime on Horn-CNF\n## Satisfiability with limited variable occurrences\n## Learned clauses in DPLL for 2-CNF\n## Positive resolution for unsatisfiable CNF\n## Finite subsets from entailment\n## Ramsey property via Compactness Theorem","[{\"question\":\"How should resolution be used to show that P1 ∧ P2 ∧ P3 is a consequence of the given formula F?\",\"answer\":\"Construct the appropriate resolution refutations/derivations from F to obtain clauses entailed by P1 ∧ P2 ∧ P3, using the resolution rule to eliminate complementary literals until the required consequence clause is derived.\"},{\"question\":\"What reduction turns a renamable Horn CNF formula into a 2-CNF formula, preserving satisfiability?\",\"answer\":\"For each variable, introduce a structure encoding whether the variable is negated in the renaming and construct a 2-CNF formula G that enforces the Horn-renaming constraints. Then show G is satisfiable exactly when the original CNF is renamable Horn, and reconstruct a valid renaming from any satisfying assignment to G.\"},{\"question\":\"Why do learned clauses in DPLL for 2-CNF end up being either empty or singletons?\",\"answer\":\"Compare DPLL’s clause learning mechanism on 2-CNF with the standard 2-SAT propagation/implication structure. Since original clauses have size at most two, the learning process can only produce resolvents/implications that collapse to either a contradiction (empty clause) or a unit clause (singleton).\"}]","Exercise Sheet 2 - Logic and Proof | PDF",[144,148],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/35b0bb8853d4090a1ac53d7f03f99f57.webp",983,1272,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/81e4f0daacb6ff15ff42fc6a2e5c0101.webp",982,1270,{"list":153,"token":66},[154,160,167,174,181,187,194,201,207,214],{"doc_id":155,"doc_title":156,"file_type":137,"home_preview_img_url":157,"slug":158,"view_count":16,"category_name":40,"create_tm":159},12756,"An Introduction to Formal Logic","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229697812812/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=Lw8oeLrKcypyJuy%2BG5kC1eFxr8M%3D","an-introduction-to-formal-logic",1776416295,{"doc_id":161,"doc_title":162,"file_type":137,"home_preview_img_url":163,"slug":164,"view_count":165,"category_name":40,"create_tm":166},83779,"CSB A Counting and Sampling Tool for Bit vectors","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809094734/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=gbsNVrcRNInG3MW0O4E1FNNPltg%3D","csb-a-counting-and-sampling-tool-for-bit-vectors",23,1784190355,{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":172,"category_name":40,"create_tm":173},271969,"Solving Stochastic Boolean Satisfiability under Random-Exist Quantification","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899079308/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=Xr4dwm87Omjo3voom6GT46NuRRc%3D","solving-stochastic-boolean-satisfiability-under-random-exist-quantification",17,1789462537,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":179,"category_name":40,"create_tm":180},45476,"A First Course in Geometric Topology and Differential Geometry","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229797732331/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=GTIRpFNPBWZ9oRLAPyEJOEZFu2M%3D","a-first-course-in-geometric-topology-and-differential-geometry",28,1783460055,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":19,"category_name":40,"create_tm":186},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=1796108879&Signature=IcqDsHCsf%2BdRkQZuip2zjEwNWCY%3D","evaluating-large-reasoning-models-on-belief-revision",1794464721,{"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},505060,"Semi-declarative Language for Combinatorial Search","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229932224677/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=TnWn3nURjVHd7guR9j7wtYKI%2F0Q%3D","semi-declarative-language-for-combinatorial-search",16,1791087813,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":40,"create_tm":200},267020,"On the Satisfiability of Random 3-SAT Formulas with k-Wise Independent Clauses - Abstract","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229898554531/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=glLSJ6WQbkeKNyF8bRwBbweXKcw%3D","on-the-satisfiability-of-random-3-sat-formulas-with-k-wise-independent-clauses-abstract",14,1789413987,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":14,"category_name":40,"create_tm":206},699246,"PROPERTIES OF SCHEMES - Introduction - Stacks Project chapter","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010651722/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=46OuF6WjGhy3r6t1aCFWh%2B6uMtE%3D","properties-of-schemes-introduction-stacks-project-chapter",1794463360,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":40,"create_tm":213},505117,"Dsat - A Native SAT Solver for Discrete Logic - paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229932245435/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=bE7cwoTS3Cv0LNsp0EeEgDES28U%3D","dsat-a-native-sat-solver-for-discrete-logic-paper",11,1791090507,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":219,"category_name":40,"create_tm":220},267025,"Beating Exhaustive Search for Quantiﬁed Boolean Formulas and Connections to Circuit Complexity","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229898554544/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=TvAO539ILiyEbRx80TBHTuNtk10%3D","beating-exhaustive-search-for-quantied-boolean-formulas-and-connections-to-circuit-complexity",13,1789414002]