extensional crisis
play

Extensional Crisis and Proving Identity Ashutosh Gupta Laura Kovcs - PowerPoint PPT Presentation

Extensional Crisis and Proving Identity Ashutosh Gupta Laura Kovcs Bernhard Kragl Andrei Voronkov Theories + Quantifiers Applications require theories and quantifiers Example: verification of sorting algorithm Sortedness


  1. Extensional Crisis and Proving Identity Ashutosh Gupta Laura Kovács Bernhard Kragl Andrei Voronkov

  2. Theories + Quantifiers • Applications require theories and quantifiers • Example: verification of sorting algorithm – Sortedness ∀𝑗∀𝑘 𝑗 ≤ 𝑘 → 𝑃𝑉𝑈 𝑗 ≤ 𝑃𝑉𝑈 𝑘 – Value preservation ∀𝑗∃𝑘 𝐽𝑂 𝑗 = 𝑃𝑉𝑈 𝑘 ∀𝑗∃𝑘 𝑃𝑉𝑈 𝑗 = 𝐽𝑂 𝑘 • Major challenge in automated reasoning

  3. Efforts to combine both techniques: E- matching [DNS,J.ACM’05][R,LPAR’12] Hierarchic Superposition [ BGW,AAECC‘94][BW,CADE‘13] Array fragments [BMS,VMCAI’06][HIV,FoSSaCS’08] Instantiation- based TP [GK,LICS’03][GK,LPAR’06] Model based quantifier instantiation [GdM,CAV’09] …

  4. Efforts to combine both techniques: E- matching [DNS,J.ACM’05][R,LPAR’12] Hierarchic Superposition [ BGW,AAECC‘94][BW,CADE‘13] Array fragments [BMS,VMCAI’06][HIV,FoSSaCS’08] Instantiation- based TP [GK,LICS’03][GK,LPAR’06] Model based quantifier instantiation [GdM,CAV’09] …

  5. Contribution 1. Observation: state-of-the-art theorem provers can not handle problems with extensionality axioms 2. Solution: new inference rule extensionality resolution 3. Implementation in the Vampire theorem prover

  6. First-Order Theorem Proving Questions Input Output 𝐵 ⊨ 𝐶 Proof Theorem Set of 𝐵 → 𝐶 valid (of unsat) clauses Prover 𝐵 ∧ ¬𝐶 unsat

  7. Superposition Theorem Proving Superposition calculus + Saturation Algorithm input clauses

  8. Superposition Theorem Proving Superposition calculus + Saturation Algorithm 1. pick clause input clauses

  9. Superposition Theorem Proving Superposition calculus + Saturation Algorithm 1. pick clause input clauses search space 2. find candidates

  10. Superposition Theorem Proving Superposition calculus + Saturation Algorithm 1. pick clause input clauses search space 2. find candidates 3. perform inferences

  11. Superposition Theorem Proving Superposition calculus + Saturation Algorithm 1. pick clause input clauses search space 2. find candidates 3. perform inferences

  12. Superposition Theorem Proving Superposition calculus + Saturation Algorithm 1. pick clause P(X) ∨ Q(X) input clauses search space 2. find candidates ¬P(a) ∨ f(b) = b 3. perform inferences Q(a) ∨ f(b) = b

  13. Superposition Theorem Proving Superposition calculus + Saturation Algorithm input clauses search space

  14. Superposition Theorem Proving Superposition calculus + Saturation Algorithm input clauses search space 1. pick clause

  15. Superposition Theorem Proving Superposition calculus + Saturation Algorithm input clauses search space 2. find candidates 1. pick clause

  16. Superposition Theorem Proving Superposition calculus + Saturation Algorithm 3. perform inferences input clauses search space 2. find candidates 1. pick clause

  17. Superposition Theorem Proving Superposition calculus + Saturation Algorithm 3. perform inferences input clauses search space 2. find candidates false 1. pick clause

  18. Superposition Theorem Proving Superposition calculus + Saturation Algorithm 3. perform inferences input clauses search space 2. find candidates 1. pick clause

  19. Superposition Theorem Proving Superposition calculus + Saturation Algorithm 3. perform inferences input clauses search space 2. find candidates 1. pick clause

  20. Superposition Theorem Proving Superposition calculus + Saturation Algorithm

  21. Superposition Theorem Proving Superposition calculus + Saturation Algorithm Memory

  22. ATP Research

  23. How to organize proof search?

  24. How to organize proof search? Intuition “Generally” pick “small” clauses, select only “most complex” literals in picked clause and candidate clauses, and “simplify” them.

  25. How to organize proof search? Intuition Formal concepts “Generally” Fair inference process pick “small” clauses, Simplification ordering (e.g. KBO) select only “most complex” Literal selection literals in picked clause and candidate clauses, and “simplify” them. Constraints on inference rules

  26. How to organize proof search? Intuition Formal concepts “Generally” Fair inference process pick “small” clauses, Simplification ordering (e.g. KBO) select only “most complex” Literal selection literals in picked clause and candidate clauses, and “simplify” them. Constraints on inference rules Not always optimal, e.g. for theories with extensionality!

  27. Extensionality • An extensionality axiom defines the meaning of equality for certain objects • Examples – Set Extensionality Axiom ∀𝑌∀𝑍 ∀𝑓 𝑓 ∈ 𝑌 ↔ 𝑓 ∈ 𝑍 → 𝑌 = 𝑍 – Array Extensionality Axiom ∀𝑌∀𝑍 ∀𝑗 𝑌 𝑗 = 𝑍[𝑗] → 𝑌 = 𝑍

  28. Reasoning with Extensionality Prove: ∀𝑌∀𝑍 (𝑌 ∪ 𝑍 = 𝑍 ∪ 𝑌) Take two arbitrary sets 𝑏 and 𝑐 . By extensionality, show for arbitrary element 𝑓 : 𝑓 ∈ 𝑏 ∪ 𝑐 ↔ 𝑓 ∈ 𝑐 ∪ 𝑏 • Assume 𝑓 ∈ 𝑏 ∪ 𝑐 , then 𝑓 ∈ 𝑏 or 𝑓 ∈ 𝑐 , (def. of ∪ ) and in both cases 𝑓 ∈ 𝑐 ∪ 𝑏. (commut . of “or”) (def. of ∪ ) • Assume 𝑓 ∈ 𝑐 ∪ 𝑏 ; symmetric. Almost trivial, but …

  29. Extensional Crisis … hard for FO theorem provers. Top provers from CASC-24 competition last year: 𝑌 ∪ 𝑍 = 𝑍 ∪ 𝑌 all tools timeout (1 minute) 𝑌 ∩ 𝑍 ⊆ 𝑎 ⊆ 𝑌 ∪ 𝑍 → 𝑌 ∪ 𝑍 ∩ 𝑌 ∪ 𝑎 = 𝑍 ∪ 𝑎 all tools timeout (1 hour)

  30. Why do all top provers fail?

  31. Why do all top provers fail? Extensionality axioms as clauses Array: ∀𝑌∀𝑍 ∀𝑗 𝑌 𝑗 = 𝑍[𝑗] → 𝑌 = 𝑍 𝑦 𝑕 𝑦, 𝑧 ≠ 𝑧 𝑕 𝑦, 𝑧 ∨ 𝑦 = 𝑧 Clause form

  32. Why do all top provers fail? Extensionality axioms as clauses Array: ∀𝑌∀𝑍 ∀𝑗 𝑌 𝑗 = 𝑍[𝑗] → 𝑌 = 𝑍 𝑦 𝑕 𝑦, 𝑧 ≠ 𝑧 𝑕 𝑦, 𝑧 ∨ 𝑦 = 𝑧 Clause form Set: ∀𝑌∀𝑍 ∀𝑓 𝑓 ∈ 𝑌 ↔ 𝑓 ∈ 𝑍 → 𝑌 = 𝑍 𝑔 𝑦, 𝑧 ∉ 𝑦 ∨ 𝑔 𝑦, 𝑧 ∉ 𝑧 ∨ 𝑦 = 𝑧

  33. Why do all top provers fail? • Extensionality axioms as clauses 𝑦 𝑕 𝑦, 𝑧 ≠ 𝑧 𝑕 𝑦, 𝑧 ∨ 𝑦 = 𝑧 Array: Set: 𝑔 𝑦, 𝑧 ∉ 𝑦 ∨ 𝑔 𝑦, 𝑧 ∉ 𝑧 ∨ 𝑦 = 𝑧

  34. Why do all top provers fail? • Extensionality axioms as clauses 𝑦 𝑕 𝑦, 𝑧 ≠ 𝑧 𝑕 𝑦, 𝑧 ∨ 𝑦 = 𝑧 Array: Set: 𝑔 𝑦, 𝑧 ∉ 𝑦 ∨ 𝑔 𝑦, 𝑧 ∉ 𝑧 ∨ 𝑦 = 𝑧

  35. Why do all top provers fail? • Extensionality axioms as clauses 𝑦 𝑕 𝑦, 𝑧 ≠ 𝑧 𝑕 𝑦, 𝑧 ∨ 𝑦 = 𝑧 Array: Set: 𝑔 𝑦, 𝑧 ∉ 𝑦 ∨ 𝑔 𝑦, 𝑧 ∉ 𝑧 ∨ 𝑦 = 𝑧 • 𝑦 = 𝑧 is always the smallest literal  will not be selected

  36. Why do all top provers fail? • Extensionality axioms as clauses 𝑦 𝑕 𝑦, 𝑧 ≠ 𝑧 𝑕 𝑦, 𝑧 ∨ 𝑦 = 𝑧 Array: Set: 𝑔 𝑦, 𝑧 ∉ 𝑦 ∨ 𝑔 𝑦, 𝑧 ∉ 𝑧 ∨ 𝑦 = 𝑧 • 𝑦 = 𝑧 is always the smallest literal  will not be selected • Prover searches in the wrong direction

  37. Why do all top provers fail? Just select 𝑦 = 𝑧 !?! • Extensionality axioms as clauses 𝑦 𝑕 𝑦, 𝑧 ≠ 𝑧 𝑕 𝑦, 𝑧 ∨ 𝑦 = 𝑧 Array: Set: 𝑔 𝑦, 𝑧 ∉ 𝑦 ∨ 𝑔 𝑦, 𝑧 ∉ 𝑧 ∨ 𝑦 = 𝑧 • 𝑦 = 𝑧 is always the smallest literal  will not be selected • Prover searches in the wrong direction

  38. OUR SOLUTION Extensionality resolution inference rule Extensionality axiom Selected inequality

  39. OUR SOLUTION Extensionality resolution inference rule Extensionality axiom Selected inequality 𝜄 = {𝑦 ↦ 𝑡, 𝑧 ↦ 𝑢}

  40. OUR SOLUTION Extensionality resolution inference rule Extensionality axiom Selected inequality 𝜄 = {𝑦 ↦ 𝑡, 𝑧 ↦ 𝑢} Example: 𝑦 = 𝑧 ∨ 𝑔 𝑦, 𝑧 ∉ 𝑦 ∨ 𝑔 𝑦, 𝑧 ∉ 𝑧 𝑏 ∪ 𝑐 ≠ 𝑐 ∪ 𝑏 𝑔 𝑏 ∪ 𝑐, 𝑐 ∪ 𝑏 ∉ 𝑏 ∪ 𝑐 ∨ 𝑔 𝑏 ∪ 𝑐, 𝑐 ∪ 𝑏 ∉ 𝑐 ∪ 𝑏

  41. Integration into saturation algorithms Extensionality resolution Super- Reso- . . . . . . position lution Search space

  42. Integration into saturation algorithms Extensionality resolution Super- Reso- . . . . . . Selected position lution Extensionality inequality store store Search space Selected Extensionality inequality axiom? literal?

  43. Integration into saturation algorithms Extensionality resolution Super- Reso- . . . . . . Selected position lution Extensionality inequality store store Search space Selected Extensionality inequality axiom? literal?

  44. Integration into saturation algorithms Extensionality resolution Super- Reso- . . . . . . Selected position lution Extensionality inequality store store Search space Selected Extensionality inequality axiom? literal?

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend