issues in machine checking the decidability of
play

Issues in Machine-checking the Decidability of Implicational Ticket - PowerPoint PPT Presentation

Issues in Machine-checking the Decidability of Implicational Ticket Entailment Jeremy Dawson, Rajeev Gor e Logic and Computation Group Research School of Computer Science The Australian National University jeremy.dawson@anu.edu.au


  1. Issues in Machine-checking the Decidability of Implicational Ticket Entailment Jeremy Dawson, Rajeev Gor´ e Logic and Computation Group Research School of Computer Science The Australian National University jeremy.dawson@anu.edu.au September 29, 2017

  2. Overview The logics, and their calculi Modelling derivations in Isabelle (sample!) Admissibility results confirmed Relations between the calculi The decidability argument

  3. Axiomatisations of various logics Name Axioms Logic T → T t R → R t → → (A1) A → A � � � � (A2) ( A → B ) → ( C → A ) → ( C → B ) � � � � (A3) ( A → B → C ) → ( B → A → C ) � � (A4) ( A → A → B ) → ( A → B ) � � � � (A5) ( A → B ) → ( B → C ) → ( A → C ) � � Name Rules of Inference (R1) from A → B and A , deduce B � � � � (R2) ⊢ A // ⊢ t → A � �

  4. (Multiset) Sequent Rules and Calculi Γ 1 ⊢ A B , Γ 2 ⊢ C Γ , A ⊢ B (id) A ⊢ A ( →⊢ ) ( ⊢→ ) Γ ⊢ A → B Γ 1 , A → B , Γ 2 ⊢ C Γ , A , A ⊢ C Γ ⊢ C ( ⊢ t ) ⊢ t ( t ⊢ ) t , Γ ⊢ C (W ⊢ ) Γ , A ⊢ C Γ 1 ⊢ A B , Γ 2 ⊢ C [ →⊢ ] † [Γ 1 , A → B , Γ 2 ] ⊢ C In the [ →⊢ ] rule, [Γ 1 , A → B , Γ 2 ] ⊢ C means Γ 1 , A → B , Γ 2 ⊢ C , then some contraction (id) ( →⊢ ) ( ⊢→ ) (W ⊢ ) ( t ⊢ ) ( ⊢ t ) [ →⊢ ] LR → � � � � LR t � � � � � � → [ LR → ] � � � � [ LR t → ] � � � � � �

  5. (Structure) Consecution Rules and Calculi LT t → U { X ; Y ; Y } ⊢ C (id;) A ⊢ A (W ⊢ ;) U { X ; Y } ⊢ C V ⊢ A U { B } ⊢ C U ; A ⊢ B ( ⊢→ ;) U ⊢ A → B ( →⊢ ;) U { A → B ; V } ⊢ C U { X ; ( Y ; Z ) } ⊢ C U { X ; ( Z ; Y ) } ⊢ C (B ′ ⊢ ;) (B ⊢ ;) U { X ; Y ; Z } ⊢ C U { Z ; X ; Y } ⊢ C U { Y } ⊢ C U { t ; t } ⊢ C (KI t ⊢ ;) U { t ; Y } ⊢ C (M t ⊢ ;) U { t } ⊢ C LT � → := t LT t → + (K t ⊢ ;) + (T t ⊢ ;) U { Y } ⊢ C U { Y ; t } ⊢ C (K t ⊢ ;) U { Y ; t } ⊢ C (T t ⊢ ;) U { t ; Y } ⊢ C

  6. Goal is decidability of T t → ◮ There is a decidable sequent calculus [ LR t → ] for R t → ◮ There is a consecution calculus LT � → for R t t → ◮ There is a consecution calculus LT t → for T t → ◮ ◮ LT � → is LT t t → plus two more rules ◮ ◮ Aim is decidability of T t → by ◮ look at all proofs in [ LR t → ] ◮ translate them to proofs in consecution calculus LT � t → ◮ if any is in LT t → , then theorem of T t → , else non-theorem

  7. Derivability in Isabelle ◮ Capture the implicit fact of derivability ’a psc = "’a list * ’a" (* single inference *) derl :: "’a psc set => ’a psc set" derrec :: "’a psc set => ’a set => ’a set" ◮ Neat example theorems "derrec ?rls (derrec ?rls ?ps) = derrec ?rls ?ps" "derl (derl ?rls) = derl ?rls" "derrec (derl ?rls) ?prems = derrec ?rls ?prems" ◮ Alternatively, concrete structure representing explicit derivation tree datatype ’a dertree = Der ’a (’a dertree list) | Unf ’a (* unfinished, unproved leaf *) ◮ Link these implicit and explicit concepts Theorem c ∈ derrec rls {} iff ∃ dt . valid dt & conclDT dt = c c is rls -derivable iff there is a valid derivation tree dt with conclusion c

  8. Substitution in a hole in a structure ◮ Example: ( X ; ( Y ; Z ) , X ; Y ; Z ) ∈ rls ◮ We build the structure around the required substitution inductive "sctxt r" intrs scL "(a, b) : sctxt r ==> (C;a, C;b) : sctxt r" scR "(a, b) : sctxt r ==> (a;C, b;C) : sctxt r" scid "(a, b) : r ==> (a, b) : sctxt r" ◮ ( U { X ; ( Y ; Z ) } , U { X ; Y ; Z } ) ∈ sctxt rls ◮ We turn this into a one-premise rule which does this substitution in the antecedent inductive "lctxt r" intrs I "(As, Bs) : sctxt r ==> ([As |- E], Bs |- E) : lctxt r" ◮ ([ U { X ; ( Y ; Z ) } ⊢ C ] , U { X ; Y ; Z } ⊢ C ) ∈ lctxt rls

  9. The complexity this adds to cut-admissibility proofs ◮ Cut-admissibility proofs require re-ordering rule applications ◮ Define: ( u , v ) ∈ strrep S , u and v same except may differ at (several) subterms u ′ and v ′ , where ( u ′ , v ′ ) ∈ S inductive "strrep S" intrs same "(s, s) : strrep S" repl "p : S ==> p : strrep S" sc "(u, v) : strrep S ==> (x, y) : strrep S ==> (u; x, v; y) : strrep S" ◮ “Closing the loop” lemma: if C [ p ] C [ c A ] A → X − → C X then there exist C ′ and c X st C X = C ′ [ c X ] where C [ p ] A → X → C ′ [ p ] − A → X and c A − → c X C [ c A ] A → X − → C ′ [ c X ]

  10. Inductive Multi-cut Admissibility via gen step2 Suppose the conclusions cl and cr have respective derivations as shown below: pl 1 . . . pl n ρ l pr 1 . . . pr m ρ r cl cr ........................... ( cut ? ) ? ◮ We want to prove an arbitrary property P of these derivations, eg (multi)cut-admissibility for a cut-formula A ◮ Proof is first, by induction on A , then on “stage in the proof” ◮ Induction on “stage in the proof” assumes P holds for each pl i with cr , and for cl with each pr j ◮ gen step2 expresses a single case of the inductive argument ◮ we have a lemma that this is enough for P to hold generally

  11. Results for LR → , LR t → , [ LR → ], and [ LR t → ] in Isabelle Theorem LR → and LR t → enjoy multi-cut admissibility. Theorem [ LR → ] and [ LR t → ] enjoy contraction admissibility. Corollary [ LR → ] and [ LR t → ] enjoy multi-cut admissibility. ◮ Proved in a different order from the paper (we couldn’t reproduce the proof indicated briefly in B&D) ◮ OOPS! We actually needed Theorem [ LR → ] and [ LR t → ] enjoy height-preserving contraction admissibility. This one uses the analogue, for concrete derivation trees, of the gen step2 definition and lemmas

  12. → and LT � Multi-cut admissibility for LT t t → ◮ For (multiset) sequents, “multi-cut” meant this: A n , Y ⊢ B X ⊢ A X , Y ⊢ B (just one ‘ X ’ in the consequent) ◮ For (structure) consecutions, we have to define what we mean by multi-cut admissibility. X ⊢ A Y { A }{ A } · · · { A } ⊢ B (multicut) Y { X }{ X } · · · { X } ⊢ B (multiple occurrences of ‘ X ’ in the consequent) Theorem → and LT � LT t t → enjoy multi-cut admissibility.

  13. Soundness and Completeness Theorem LT t → is complete for T t → LT � → is complete for R t t → For the sequent systems, we have proved Lemma for each rule of LR → there is a “corresponding” proof in R → (for some ordering of antecedents) We still need to prove that any re-ordering of antecedents in A 1 → A 2 → . . . → A n → B is provable in R →

  14. Linking the sequent and consecution systems Theorem Given a derivation in LT � → , we can, by turning structures into t multi-sets, obtain an “equivalent” derivation in LR t → . (“equivalent” means “same” premises and conclusion, not necessarily same proof steps) ◮ This is the transformation π , which we have not actually defined, we have just shown it exists. ◮ For the converse (using the τ transformation), we need to prove that the rules of LT � → permit any permutation and t grouping, into a structure, of any multiset of formulae. ◮ Lemmas 8,9 and 10 do this for up to 3 formulae (proved in Isabelle, but not in that order!) ◮ Need to extend this to any number of formulae (we have worked out argument, not proved)

  15. Background to decidability argument ◮ multiset sequent system LR t → for R t → , includes contraction ◮ [ LR t → ] incorporates limited contraction into →⊢ rule, [ →⊢ ] ◮ this gives height-preserving contraction admissibility, so irredundant derivations, so decidable (Kripke, K¨ onig lemmas) ◮ likewise LR t → and [ LR t → ] for T t → ◮ structure sequent systems LT � → for R t t → , and LT t → for T t → ◮ proof transformations: ◮ π , LT � → to LR t t → (loses ordering/grouping) ◮ τ , LR t → to LT � → (recreates ordering/grouping) t ◮ difference between T t → and LT � → and R t → (ie, between LR t → ) t is (complete) availability of re-ordering ◮ τ produces several proofs in LT � → (choice of t ordering/grouping)

  16. the decidability procedure ◮ get all proofs in [ LR t → ] ◮ convert these into proofs in LR t → ◮ transform them, using τ , to proofs in LT � t → ◮ examine which of these are proofs in LT t → Issues arising: ◮ τ involves “all permutations and groupings”: should this be “all proofs of all permutations and groupings”? (to find proof in LT t → , if any) ◮ even so, τ produces only proofs whose ⊢→ , →⊢ and W ⊢ are in the same order as the given proof in LR t → — is this enough? ◮ that is, the algorithm produces only LT � → -proofs in which t contains these rules in a the same order as a proof in [ LR t → ] — what if the only LT t → -proof contains them in a different order? ◮ (note that deriving an [ LR t → ]-proof from an LR t → -proof changes the order of these rules)

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