reasoning with sets and sums of sets
play

Reasoning with Sets and Sums of Sets Markus Bender - PowerPoint PPT Presentation

Reasoning with Sets and Sums of Sets Markus Bender mbender@uni-koblenz.de Universitt Koblenz-Landau Motivation Ways for Reasoning with Complex Systems Introduce calculus/reasoner specifically tailored to the complex system Reduce


  1. Reasoning with Sets and Sums of Sets Markus Bender mbender@uni-koblenz.de Universität Koblenz-Landau

  2. Motivation Ways for Reasoning with Complex Systems ◮ Introduce calculus/reasoner specifically tailored to the complex system ◮ Reduce complex system to an established problem (abstraction) 2 / 30

  3. Motivation Ways for Reasoning with Complex Systems ◮ Introduce calculus/reasoner specifically tailored to the complex system ◮ Reduce complex system to an established problem (abstraction) 2 / 30

  4. Motivation Boolean Algebra with Presburger Arithmetic ◮ Introduced by Kuncak et al. ◮ Transform to equisatisfiable problem in pure arithmetic ◮ Proven useful for many reasoning task ◮ Good tool support 3 / 30

  5. Contributions Boolean Algebra with Presburger Arithmetic and Sums ◮ Add sum as new bridging function ◮ Arbitrary mixture of quantified and free set variables 4 / 30

  6. Syntax F ::= A | F ∧ F | F ∨ F | ¬ F | ∃ x . F | ∀ x . F | ∃ k . F | ∀ k . F A ::= B ≈ B | B ⊆ B | T ≈ T | T < T | B ::= x | ∅ | U | B ∪ B | B ∩ B | B T ::= k | K | MAXC | T + T | K · T | card ( B ) K ::= . . . | − 2 | − 1 | 0 | 1 | 2 | . . . 5 / 30

  7. Syntax F ::= A | F ∧ F | F ∨ F | ¬ F | ∃ x . F | ∀ x . F | ∃ k . F | ∀ k . F A ::= B ≈ B | B ⊆ B | T ≈ T | T < T | B ::= x | ∅ | U | B ∪ B | B ∩ B | B T ::= k | K | MAXC | T + T | K · T | card ( B ) | MAXS | sum ( B ) K ::= a number 5 / 30

  8. Syntax F ::= A | F ∧ F | F ∨ F | ¬ F | ∃ x . F | ∀ x . F | ∃ k . F | ∀ k . F A ::= B ≈ B | B ⊆ B | T ≈ T | T < T | B ::= x | ∅ | U | B ∪ B | B ∩ B | B T ::= k | K | MAXC | T + T | K · T | card ( B ) | MAXS | sum ( B ) K ::= a number Sets are finite. 5 / 30

  9. Extension BAPA card with sort: α set �→ N , where α : an arbitrary sort Specific members of the involved sets do not matter. 6 / 30

  10. Extension BAPA card with sort: α set �→ N , where α : an arbitrary sort Specific members of the involved sets do not matter. BAPA S sum with sort: β set �→ β , where β : a numerical sort Specific members of the involved sets do matter. 6 / 30

  11. Semantics Structures A := ( N , F , Ω A , Π A ) N : only codomain for card F : element support ; elements of sets ( F ⊆ R ) Ω A : (more or less) common semantics of functions Π A : common semantics of predicates 7 / 30

  12. Overview Transformation: Original Formula (OF) 1. Eliminate ≈ set 2. Eliminate ⊆ Transformation 3. Introduce atomic decompositions Transformed Formula (TF) 4. Distribute cardinality 5. Purify cardinality Arith. Solver 6. Distribute sum Model for TF 7. Purify sum 8. Eliminate quantifiers and add axioms Model for OF 8 / 30

  13. Example Given Formula ∃ x 1 ( x 0 ⊆ x 1 → sum ( x 0 ) ≈ sum ( x 0 ∩ x 1 )) 9 / 30

  14. Example Eliminate ≈ set , and eliminate ⊆ ∃ x 1 ( x 0 ⊆ x 1 → sum ( x 0 ) ≈ sum ( x 0 ∩ x 1 )) 10 / 30

  15. Example Eliminate ≈ set , and eliminate ⊆ ∃ x 1 ( x 0 ⊆ x 1 → sum ( x 0 ) ≈ sum ( x 0 ∩ x 1 )) 10 / 30

  16. Example Eliminate ≈ set , and eliminate ⊆ ∃ x 1 ( x 0 ⊆ x 1 → sum ( x 0 ) ≈ sum ( x 0 ∩ x 1 )) � ∃ x 1 ( card ( x 0 ∩ x 1 ) ≈ 0 → sum ( x 0 ) ≈ sum ( x 0 ∩ x 1 )) 10 / 30

  17. Atomic Sets and Atomic Decompositions 1 x 0 ∩ x 1 x 0 ∩ x 1 x 0 ∩ x 1 x 0 ∩ x 1 1 Ohlbach, Kuncak 11 / 30

  18. Atomic Sets and Atomic Decompositions 1 x 0 ∩ x 1 x 0 ∩ x 1 x 0 ∩ x 1 x 0 ∩ x 1 S 00 := x 0 ∩ x 1 , S 01 := x 0 ∩ x 1 , S 10 := x 0 ∩ x 1 , S 11 := x 0 ∩ x 1 1 Ohlbach, Kuncak 11 / 30

  19. Atomic Sets and Atomic Decompositions 1 x 0 ∩ x 1 x 0 ∩ x 1 x 0 ∩ x 1 x 0 ∩ x 1 S 00 := x 0 ∩ x 1 , S 01 := x 0 ∩ x 1 , S 10 := x 0 ∩ x 1 , S 11 := x 0 ∩ x 1 x 0 := S 10 ∪ S 11 = ( x 0 ∩ x 1 ) ∪ ( x 0 ∩ x 1 ) x 1 := S 01 ∪ S 11 = ( x 0 ∩ x 1 ) ∪ ( x 0 ∩ x 1 ) . 1 Ohlbach, Kuncak 11 / 30

  20. Example Introduce Atomic Decompositions ∃ x 1 ( card ( x 0 ∩ x 1 ) ≈ 0 → sum ( x 0 ) ≈ sum ( x 0 ∩ x 1 )) 12 / 30

  21. Example Introduce Atomic Decompositions ∃ x 1 ( card ( x 0 ∩ x 1 ) ≈ 0 → sum ( x 0 ) ≈ sum ( x 0 ∩ x 1 )) � ∃ x 1 ( card ( S 10 ) ≈ 0 → sum ( S 10 ∪ S 11 ) ≈ sum ( S 11 )) 12 / 30

  22. Example Distribute card, purify card ∃ x 1 ( card ( S 10 ) ≈ 0 → sum ( S 10 ∪ S 11 ) ≈ sum ( S 11 )) 13 / 30

  23. Example Distribute card, purify card ∃ x 1 ( card ( S 10 ) ≈ 0 → sum ( S 10 ∪ S 11 ) ≈ sum ( S 11 )) � ∃ x 1 ∃ l 00 , l 01 , l 10 , l 11 card ( S 00 ) ≈ l 00 ∧ · · · ∧ card ( S 11 ) ≈ l 11 ∧ ( l 10 ≈ 0 → sum ( S 10 ∪ S 11 ) ≈ sum ( S 11 )) 13 / 30

  24. Example Distribute sum ∃ x 1 ∃ l 00 , l 01 , l 10 , l 11 card ( S 00 ) ≈ l 00 ∧ · · · ∧ card ( S 11 ) ≈ l 11 ∧ ( l 10 ≈ 0 → sum ( S 10 ∪ S 11 ) ≈ sum ( S 11 )) 14 / 30

  25. Example Distribute sum ∃ x 1 ∃ l 00 , l 01 , l 10 , l 11 card ( S 00 ) ≈ l 00 ∧ · · · ∧ card ( S 11 ) ≈ l 11 ∧ ( l 10 ≈ 0 → sum ( S 10 ∪ S 11 ) ≈ sum ( S 11 )) � ∃ x 1 ∃ l 00 , l 01 , l 10 , l 11 card ( S 00 ) ≈ l 00 ∧ · · · ∧ card ( S 11 ) ≈ l 11 ∧ ( l 10 ≈ 0 → sum ( S 10 ) + sum ( S 11 ) ≈ sum ( S 11 )) 14 / 30

  26. Example Purify sum ∃ x 1 ∃ l 00 , l 01 , l 10 , l 11 card ( S 00 ) ≈ l 00 ∧ · · · ∧ card ( S 11 ) ≈ l 11 ∧ ( l 10 ≈ 0 → sum ( S 10 ) + sum ( S 11 ) ≈ sum ( S 11 )) 15 / 30

  27. Example Purify sum ∃ x 1 ∃ l 00 , l 01 , l 10 , l 11 card ( S 00 ) ≈ l 00 ∧ · · · ∧ card ( S 11 ) ≈ l 11 ∧ ( l 10 ≈ 0 → sum ( S 10 ) + sum ( S 11 ) ≈ sum ( S 11 )) � ∃ x 1 ∃ l 00 , l 01 , l 10 , l 11 ∃ s 00 , s 01 , s 10 , s 11 card ( S 00 ) ≈ l 00 ∧ · · · ∧ card ( S 11 ) ≈ l 11 ∧ sum ( S 00 ) ≈ s 00 ∧ · · · ∧ sum ( S 11 ) ≈ s 11 ∧ ( l 10 ≈ 0 → s 10 + s 11 ≈ s 11 ) 15 / 30

  28. Example ∃ x 1 ∃ l 00 , l 01 , l 10 , l 11 ∃ s 00 , s 01 , s 10 , s 11 card ( S 00 ) ≈ l 00 ∧ · · · ∧ card ( S 11 ) ≈ l 11 ∧ sum ( S 00 ) ≈ s 00 ∧ · · · ∧ sum ( S 11 ) ≈ s 11 ∧ ( l 10 ≈ 0 → s 10 + s 11 ≈ s 11 ) 16 / 30

  29. Quantifier Elimination 2 x 2 Kuncak 17 / 30

  30. Quantifier Elimination 2 x l , k natural numbers card ( x ) = k + l . 2 Kuncak 17 / 30

  31. Quantifier Elimination 2 y y x ∩ y x ∩ y l , k natural numbers card ( x ) = k + l . 2 Kuncak 17 / 30

  32. Quantifier Elimination 2 y y x ∩ y x ∩ y l , k natural numbers card ( x ) = k + l . ⇔ ∃ y ( card ( x ∩ y ) = k ∧ card ( x ∩ y ) = l ) , with y a finite set. 2 Kuncak 17 / 30

  33. Example Remove Quantifier (Use Equivalence) ∃ x 1 ∃ l 00 , l 01 , l 10 , l 11 ∃ s 00 , s 01 , s 10 , s 11 card ( S 00 ) ≈ l 00 ∧ · · · ∧ card ( S 11 ) ≈ l 11 ∧ sum ( S 00 ) ≈ s 00 ∧ · · · ∧ sum ( S 11 ) ≈ s 11 ∧ ( l 10 ≈ 0 → s 10 + s 11 ≈ s 11 ) 18 / 30

  34. Example Remove Quantifier (Use Equivalence) ∃ x 1 ∃ l 00 , l 01 , l 10 , l 11 ∃ s 00 , s 01 , s 10 , s 11 card ( S 00 ) ≈ l 00 ∧ · · · ∧ card ( S 11 ) ≈ l 11 ∧ sum ( S 00 ) ≈ s 00 ∧ · · · ∧ sum ( S 11 ) ≈ s 11 ∧ ( l 10 ≈ 0 → s 10 + s 11 ≈ s 11 ) � ∃ l 00 , l 01 , l 10 , l 11 ∃ s 00 , s 01 , s 10 , s 11 card ( x 0 ) ≈ l 00 + l 01 ∧ card ( x 0 ) ≈ l 10 + l 11 ∧ sum ( x 0 ) ≈ s 00 + s 01 ∧ sum ( x 0 ) ≈ s 10 + s 11 ∧ ( l 10 ≈ 0 → s 10 + s 11 ≈ s 11 ) 18 / 30

  35. Example Remove Quantifier (Purify) ∃ l 00 , l 01 , l 10 , l 11 ∃ s 00 , s 01 , s 10 , s 11 card ( x 0 ) ≈ l 00 + l 01 ∧ card ( x 0 ) ≈ l 10 + l 11 ∧ sum ( x 0 ) ≈ s 00 + s 01 ∧ sum ( x 0 ) ≈ s 10 + s 11 ∧ ( l 10 ≈ 0 → s 10 + s 11 ≈ s 11 ) 19 / 30

  36. Example Remove Quantifier (Purify) ∃ l 00 , l 01 , l 10 , l 11 ∃ s 00 , s 01 , s 10 , s 11 card ( x 0 ) ≈ l 00 + l 01 ∧ card ( x 0 ) ≈ l 10 + l 11 ∧ sum ( x 0 ) ≈ s 00 + s 01 ∧ sum ( x 0 ) ≈ s 10 + s 11 ∧ ( l 10 ≈ 0 → s 10 + s 11 ≈ s 11 ) � ∃ l 0 , l 1 , ∃ s 0 , s 1 , card ( x 0 ) ≈ l 0 ∧ card ( x 0 ) ≈ l 1 ∧ sum ( x 0 ) ≈ s 0 ∧ sum ( x 0 ) ≈ s 1 ∃ l 00 , l 01 , l 10 , l 11 ∃ s 00 , s 01 , s 10 , s 11 l 0 ≈ l 00 + l 01 ∧ l 1 ≈ l 10 + l 11 ∧ s 0 ≈ s 00 + s 01 ∧ s 1 ≈ s 10 + s 11 ∧ ( l 10 ≈ 0 → s 10 + s 11 ≈ s 11 ) 19 / 30

  37. Example Remove Quantifier (Delete Quantifier) ∃ l 0 , l 1 , ∃ s 0 , s 1 , card ( x 0 ) ≈ l 0 ∧ card ( x 0 ) ≈ l 1 ∧ sum ( x 0 ) ≈ s 0 ∧ sum ( x 0 ) ≈ s 1 ∃ l 00 , l 01 , l 10 , l 11 ∃ s 00 , s 01 , s 10 , s 11 l 0 ≈ l 00 + l 01 ∧ l 1 ≈ l 10 + l 11 ∧ s 0 ≈ s 00 + s 01 ∧ s 1 ≈ s 10 + s 11 ∧ ( l 10 ≈ 0 → s 10 + s 11 ≈ s 11 ) 20 / 30

  38. Example Remove Quantifier (Delete Quantifier) ∃ l 0 , l 1 , ∃ s 0 , s 1 , card ( x 0 ) ≈ l 0 ∧ card ( x 0 ) ≈ l 1 ∧ sum ( x 0 ) ≈ s 0 ∧ sum ( x 0 ) ≈ s 1 ∃ l 00 , l 01 , l 10 , l 11 ∃ s 00 , s 01 , s 10 , s 11 l 0 ≈ l 00 + l 01 ∧ l 1 ≈ l 10 + l 11 ∧ s 0 ≈ s 00 + s 01 ∧ s 1 ≈ s 10 + s 11 ∧ ( l 10 ≈ 0 → s 10 + s 11 ≈ s 11 ) � card ( x 0 ) ≈ l 0 ∧ card ( x 0 ) ≈ l 1 ∧ sum ( x 0 ) ≈ s 0 ∧ sum ( x 0 ) ≈ s 1 ∃ l 00 , l 01 , l 10 , l 11 ∃ s 00 , s 01 , s 10 , s 11 l 0 ≈ l 00 + l 01 ∧ l 1 ≈ l 10 + l 11 ∧ s 0 ≈ s 00 + s 01 ∧ s 1 ≈ s 10 + s 11 ∧ ( l 10 ≈ 0 → s 10 + s 11 ≈ s 11 ) 20 / 30

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