canonical inference for implicational systems
play

Canonical Inference for Implicational Systems Maria Paola Bonacina 1 - PowerPoint PPT Presentation

Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Canonical Inference for Implicational Systems Maria Paola Bonacina 1 Dipartimento di Informatica Universit` a


  1. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Canonical Inference for Implicational Systems Maria Paola Bonacina 1 Dipartimento di Informatica Universit` a degli Studi di Verona Verona, Italy, EU 4th Int. Joint Conf. on Automated Reasoning (IJCAR), Sydney, Australia 14 August 2008 1 Joint work with Nachum Dershowitz Maria Paola Bonacina Canonical Inference for Implicational Systems

  2. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Motivation ◮ Knowledge compilation: make efficient reasoning possible ◮ Completion of equational theories: ◮ Canonical presentation ◮ Normal-form proofs ◮ Implicational systems: simple and relevant (e.g., relational databases, abstract interpretations) ◮ Computing with an implicational system: applying a closure operator or computing minimal model ◮ Question: investigate canonicity of implicational systems Maria Paola Bonacina Canonical Inference for Implicational Systems

  3. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Implicational systems V : vocabulary of propositional variables Implicational system S : a set of implications S = { a 1 · · · a n ⇒ c 1 · · · c m : a i , c j ∈ V } where antecedent and consequent are conjunctions of (distinct) propositions Notation: A ⇒ S B for A ⇒ B ∈ S Maria Paola Bonacina Canonical Inference for Implicational Systems

  4. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Example S = { a ⇒ b , ac ⇒ d , e ⇒ a } Unary implicational system : all its implications are unary , e.g., ac ⇒ d A non-negative Horn clause is a unary implication and vice-versa Non-unary implications can be decomposed, e.g.: a ⇒ bf into a ⇒ b and a ⇒ f Consider only unary implicational systems Maria Paola Bonacina Canonical Inference for Implicational Systems

  5. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Moore families V : vocabulary of propositional variables Moore family F : a family of subsets of V ◮ that contains V and ◮ is closed under intersection A subset X ⊆ V represents a propositional interpretation A Moore family is a family of models: Moore families ∼ Horn theories Maria Paola Bonacina Canonical Inference for Implicational Systems

  6. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Closure operators Moore families ∼ Closure operators Closure operator ϕ : P ( V ) → P ( V ) is an operator that is ◮ monotone : X ⊆ X ′ implies ϕ ( X ) ⊆ ϕ ( X ′ ) ◮ extensive : X ⊆ ϕ ( X ) ◮ idempotent : ϕ ( ϕ ( X )) = ϕ ( X ) Maria Paola Bonacina Canonical Inference for Implicational Systems

  7. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Moore families and closure operators Given ϕ , its associated Moore family F ϕ is the set of its fixed points: F ϕ = { X ⊆ V : X = ϕ ( X ) } Given F , its associated closure operator ϕ F maps X ⊆ V to the least element of F that contains X : ϕ F ( X ) = ∩ { Y ∈ F : X ⊆ Y } Maria Paola Bonacina Canonical Inference for Implicational Systems

  8. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Implicational systems, Moore families and closure operators Given implicational system S ◮ its associated Moore family F S is the family of its models : F S = { X ⊆ V : X | = S } ◮ its associated closure operator ϕ S maps X ⊆ V to the least model of S that satisfies X : ϕ S ( X ) = ∩ { Y ⊆ V : Y ⊇ X ∧ Y | = S } Computing with an implicational system S : given X compute ϕ S ( X ) Maria Paola Bonacina Canonical Inference for Implicational Systems

  9. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Example Implicational system: S = { a ⇒ b , ac ⇒ d , e ⇒ a } Its Moore family: F S = {∅ , b , c , d , ab , bc , bd , cd , abd , abe , bcd , abcd , abde , abcde } Applying its closure operator, e.g.: ϕ S ( ae ) = abe Maria Paola Bonacina Canonical Inference for Implicational Systems

  10. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Questions A Moore family : different implicational systems (In general: a theory may have different presentations) S and S ′ such that F S = F S ′ are equivalent Questions: ◮ What does it mean for an implicational system to be canonical ? ◮ Can we compute canonical implicational systems by appropriate deduction mechanisms ? Maria Paola Bonacina Canonical Inference for Implicational Systems

  11. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Forward chaining Given S , X ⊆ V , let S ( X ) = X ∪ ∪ { B : A ⇒ S B ∧ A ⊆ X } Then ϕ S ( X ) = S ∗ ( X ) where S 0 ( X ) = X , S i +1 ( X ) = S ( S i ( X )) , � i S i ( X ) S ∗ ( X ) = Since S , X and V are finite: S ∗ ( X ) = S k ( X ) for the smallest k such that S k +1 ( X ) = S k ( X ) Maria Paola Bonacina Canonical Inference for Implicational Systems

  12. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Example S = { ac ⇒ d , e ⇒ a } X = ce S ( X ) = { ace } S 2 ( X ) = { acde } ϕ S ( X ) = S ∗ ( X ) = S 2 ( X ) = { acde } Maria Paola Bonacina Canonical Inference for Implicational Systems

  13. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Direct implicational system Intuition: Direct implicational system: compute ϕ S ( X ) in one single round of forward chaining Definition: S is direct if ϕ S ( X ) = S ( X ) Example: S = { ac ⇒ d , e ⇒ a } is not direct [Karell Bertet and Mirabelle Nebut 2004] Maria Paola Bonacina Canonical Inference for Implicational Systems

  14. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Observation If we have A ⇒ S B and C ⇒ S D such that A ⊆ X , C �⊆ X and C ⊆ X ∪ B , more than one iteration of forward chaining is required. In the example: e ⇒ a and ac ⇒ d for X = ce To collapse two iterations into one: add A ∪ ( C \ B ) ⇒ S D In the example: add ce ⇒ d [Karell Bertet and Mirabelle Nebut 2004] Maria Paola Bonacina Canonical Inference for Implicational Systems

  15. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Deduction mechanism: implicational overlap Implicational overlap A ⇒ BO CO ⇒ D AC ⇒ D O is the overlap between antecedent and consequent Conditions: ◮ O � = ∅ : there is some overlap ◮ B ∩ C = ∅ : O is all the overlap Maria Paola Bonacina Canonical Inference for Implicational Systems

  16. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Generated direct system Definition: Given S , the direct implicational system I ( S ) generated from S is the closure of S with respect to implicational overlap. Theorem: ϕ S ( X ) = I ( S )( X ). [Karell Bertet and Mirabelle Nebut 2004] Maria Paola Bonacina Canonical Inference for Implicational Systems

  17. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Completion by ❀ I generates direct system ❀ I : deduction mechanism that generates and adds implications by implicational overlap Note: ❀ I steps are expansion steps Proposition: Given implicational system S for all fair derivations S = S 0 ❀ I S 1 ❀ I · · · we have S ∞ = I ( S ) Maria Paola Bonacina Canonical Inference for Implicational Systems

  18. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion A rewriting-based framework ◮ Implication a 1 · · · a n ⇒ c 1 · · · c m ◮ Bi-implication a 1 · · · a n c 1 · · · c m ⇔ a 1 · · · a n ◮ Rewrite rule a 1 · · · a n c 1 · · · c m → a 1 · · · a n are equivalent. Positive literal c : c → true ( true : special constant) Well-founded ordering ≻ on V ∪ { true } ( true minimal) extended by multiset extension. Maria Paola Bonacina Canonical Inference for Implicational Systems

  19. Introduction Direct systems Computing minimal models Direct-optimal systems Rewrite-optimality and canonical systems Discussion Associated rewrite system Given X ⊆ V , its associated rewrite system is R X = { x → true : x ∈ X } . Given implicational system S , its associated rewrite system is R S = { AB → A : A ⇒ S B } . Given S and X : R S X = R X ∪ R S . Maria Paola Bonacina Canonical Inference for Implicational Systems

Recommend


More recommend