compacted binary trees
play

Compacted Binary Trees: A preliminary work on Implication Boolean - PowerPoint PPT Presentation

Compacted Binary Trees: A preliminary work on Implication Boolean formulas represented as Directed Acyclic Graphs Antoine Genitrini joint work with Bernhard Gittenberger, Manuel Kauers and Michael Wallner Sorbonne Universit Laboratoire


  1. Compacted Binary Trees: A preliminary work on Implication Boolean formulas represented as Directed Acyclic Graphs Antoine Genitrini joint work with Bernhard Gittenberger, Manuel Kauers and Michael Wallner Sorbonne Université Laboratoire d’Informatique de Paris 6 May 24th 2018

  2. In Mathematical Structures in Computer Science (2000) Abstract: . . . . . . 2

  3. In Mathematical Structures in Computer Science (2000) Outline Abstract: Propositional logic with → and a single variable α . . . 1 Boolean formulas represented by trees 2 The unranking method for exhaustive or random generation 3 Boolean formulas represented by circuits . . . 2

  4. Formulas in the implication system A Boolean formula is seen as a binary tree, with the internal nodes decorated with the connective → and the leaves with the single variable α : → → → → → α α → α α α α α (( α → α ) → α ) → ( α → (( α → α ) → α )) 3

  5. Formulas in the implication system A Boolean formula is seen as a binary tree, with internal nodes decorated with the connective → and the leaves with the single variable α : → → → → → α α → α α α α α (( α → α ) → α ) → ( α → (( α → α ) → α )) A canonical decomposition along the rightmost branch. 3

  6. Formulas in the implication system A Boolean formula is seen as a binary tree, with internal nodes decorated with the connective → and the leaves with the single variable α : → → → → → α α → α α α α α A canonical decomposition along the rightmost branch. The premises are the left subtrees of the righmost branch. 3

  7. Formulas in the implication system A Boolean formula is seen as a binary tree, with internal nodes decorated with the connective → and the leaves with the single variable α : → → → → → α α → α α α α α A canonical decomposition along the rightmost branch. The premises are the left subtrees of the righmost branch. The size of a tree is its number of leaves. 3

  8. Boolean functions in the implication system [S80,MTZ00] In the implication system with one variable α , formulas are representing the function α �→ true or the function α �→ α . All tautologies are intuitionistic tautologies in this context. → → → → → → → → α α α α → α → α α α α α α α A tautology : it represents the It represents the function function α �→ true . α �→ α . The asymptotic ratio of tautologies is the limit of the proportion of tautologies of size n among all formulas of size n , when n tends to infinity. 4

  9. Asymptotic ratio of tautologies Theorem: [MTZ00] The asymptotic ratio of tautologies in the implication system with √ one variable is 1 5 2 + 10 ≈ 0 . 72361 . . . → → → → α → α α α → → α α → α α α α α α α → → → α → → α → α → → → → → → α α α α α α α α α α α α α 5

  10. Asymptotic ratio of tautologies Theorem: [MTZ00] The asymptotic ratio of tautologies in the implication system with √ one variable is 1 5 2 + 10 ≈ 0 . 72361 . . . 5

  11. Asymptotic ratio of tautologies Lemma: [MTZ00] A formula τ → µ is not a tautology iff τ is a tautology and µ is not a tautology. Let Cat n − 1 , T n and N n be respectively the number of formulas (resp. tautologies and non-tautologies) of size n , n − 1 � N n = T k · N n − k ; N 1 = 1 ; T n = Cat n − 1 − N n . k = 1 6

  12. Simple tautologies A simple tautology has one of its premises reduced to α . → → → → → → → → → → → α α α α → → → α α α α α → → α α α α → → α α → → α α α α α α 7

  13. Simple tautologies A simple tautology has one of its premises reduced to α . Theorem: [MTZ00] The asymptotic ratio of simple tautologies in the implication system with one variable is 5 9 ≈ 0 . 55556 . . . 7

  14. What about if we change the notion of formula ? → → → → → → → → → → → → → → → α α α α → → α α α α α → → → → α α α α → → → α α → → → → α α α α α α → α 8

  15. What about if we change the notion of formula ? → → → In the compacted context: → → → Both children of a node are not of the same nature. → → → → → At each internal node, the pointers in the left substructure are → α α → → → α α deeply related to the right substructure. → → → → α α α α α The distribution of the size is completely disturbed. → → α α α α → We want an exhaustive study for small compacted trees. → → α α α α → → → → α α α α → α 8

  16. The Unranking method for binary trees [NW75,MM03] 1 Defining a total order over trees (of the same size). 2 Constructing the tree only by using its rank number. ( 0 , 1 ) ( 0 , 2 ) ( 0 , 3 ) ( 1 , 3 ) ( 0 , 4 ) → → → → α α → α α α → → α → α α α α α α α ( 1 , 4 ) ( 2 , 4 ) ( 3 , 4 ) ( 4 , 4 ) → → → → → → → → → α α α α α α α → α α → → α α α α α α α 9

  17. Boustrophedon text[FZVC94] Instead of reading the formula from left to right (increasing k ): n − 1 � B ( k ) · B ( n − k ) B ( n ) = k = 1 We read it as a Boustrophedon text https://en.wikipedia.org/wiki/Boustrophedon B ( n ) as : B ( 1 ) B ( n − 1 )+ B ( n − 1 ) B ( 1 )+ B ( 2 ) B ( n − 2 )+ B ( n − 2 ) B ( 2 )+ B ( 3 ) B ( n − 3 )+ . . . 10

  18. Composition of trees Boustrophedonic order [FZVC94] Read B ( n ) as : B ( 1 ) B ( n − 1 )+ B ( n − 1 ) B ( 1 )+ B ( 2 ) B ( n − 2 )+ B ( n − 2 ) B ( 2 )+ B ( 3 ) B ( n − 3 )+ . . . α and β being two trees of sizes resp. s α < s β then α < β α and β being two trees of size n : α < β iif α decomposes as B ( i ) B ( n − i ) and β as B ( j ) B ( n − j ) with min ( i , n − i ) < min ( j , n − j ) or min ( i , n − i ) = min ( j , n − j ) and ( α ℓ < β ℓ or α ℓ = β ℓ and α r < β r ) ( 0 , 4 ) ( 1 , 4 ) ( 2 , 4 ) ( 3 , 4 ) ( 4 , 4 ) → → → → → → → → → α α α → → α α α α α → → α → α α → α α α α α α α α α 11

  19. After 1 hour computations. . . An complete description of all trees of size at most 17: > 48 million objects. proportion of tautologies proportion of simple tautologies 12

  20. Examples / Random Sampling ( 0 , 50 ) is a tautology (computed without my computer). 13

  21. Examples / Random Sampling ( 0 , 50 ) is a tautology (computed without my computer). ( 340366701794652049424185611 , 50 ) is a tautology: n = 340366701794652049424185611 n > B(1)*B(49) ? True n = n - B(1)*B(49) n > B(49)*B(1) ? True n = n - B(49)*B(1) n > B(2)*B(48) + B(48)*B(2) ? True n = n - B(2)*B(48) - B(48)*B(2) n > B(3)*B(47) ? False 13

  22. Examples / Random Sampling ( 0 , 50 ) is a tautology (computed without my computer). ( 340366701794652049424185611 , 50 ) is a tautology: n = 340366701794652049424185611 n > B(1)*B(49) ? True n = n - B(1)*B(49) n > B(49)*B(1) ? True n = n - B(49)*B(1) n > B(2)*B(48) + B(48)*B(2) ? True n = n - B(2)*B(48) - B(48)*B(2) n > B(3)*B(47) ? False size decomposition: 50 → 3 × 47 13

  23. Examples / Random Sampling ( 0 , 50 ) is a tautology (computed without my computer). ( 340366701794652049424185611 , 50 ) is a tautology: Euclidean division: n = 340366701794652049424185611 define p and r such that n > B(1)*B(49) ? True n = p ∗ B ( 47 ) + r n = n - B(1)*B(49) the tree n > B(49)*B(1) ? ( 340366701794652049424185611 , 50 ) True corresponds to n = n - B(49)*B(1) ( 1 , 3 ) × ( 1233029084398051305296511 , 47 ) n > B(2)*B(48) + B(48)*B(2) ? ( 1 , 3 ) : True → n = n - B(2)*B(48) - B(48)*B(2) → α n > B(3)*B(47) ? False α α size decomposition: 50 → 3 × 47 The tree is a tautology. 13

  24. The tree ( 340366701794652049424185611 , 50 ) → → → → α α → α α → → α α → α → → → α → α → → α α α α → → α → α α → α α → α → α → α → → α → → → → → α → → → α α α → α → α α α → → → α → → → α → α → α α α → → α → α α → α → α → α α α α α α → α → 14 α α

  25. Let us turn to compacted formulas Implication (relaxed) circuit → An implication circuit with one variable is a → relaxed compacted binary tree whose internal → nodes are decorated with the → connective → and the leaf by the unique variable α . → Implication compacted circuit → An implication compacted circuit with one → → variable is a compacted binary tree whose internal nodes are decorated with the → → connective and the leaf by the unique α variable α . The size of the circuit is its total number of nodes. 15

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