a proof theoretic characterization of independence in
play

A Proof-theoretic Characterization of Independence in Type Theory - PowerPoint PPT Presentation

A Proof-theoretic Characterization of Independence in Type Theory Yuting Wang 1 Kaustuv Chaudhuri 2 1 University of Minnesota, Twin Cities, USA 2 Inria & LIX/cole polytechnique, France TLCA, July 2015, Warsaw Yuting Wang , Kaustuv Chaudhuri


  1. A Proof-theoretic Characterization of Independence in Type Theory Yuting Wang 1 Kaustuv Chaudhuri 2 1 University of Minnesota, Twin Cities, USA 2 Inria & LIX/École polytechnique, France TLCA, July 2015, Warsaw Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 1/14

  2. Motivation Formalizing transportation of theorems and proofs about type theories in different contexts. Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 2/14

  3. Motivation Formalizing transportation of theorems and proofs about type theories in different contexts. Example : z : nat s : nat → nat leaf : ( nat → bt ) → bt node : bt → bt → bt Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 2/14

  4. Motivation Formalizing transportation of theorems and proofs about type theories in different contexts. Example : z : nat s : nat → nat leaf : ( nat → bt ) → bt node : bt → bt → bt Suppose given some property P about bt we prove ∀ b : bt . P ( b ) . Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 2/14

  5. Motivation Formalizing transportation of theorems and proofs about type theories in different contexts. Example : z : nat s : nat → nat leaf : ( nat → bt ) → bt node : bt → bt → bt Suppose given some property P about bt we prove ∀ b : bt . P ( b ) . Question : After adding c : nat does the theorem still hold? Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 2/14

  6. Motivation Formalizing transportation of theorems and proofs about type theories in different contexts. Example : z : nat s : nat → nat leaf : ( nat → bt ) → bt node : bt → bt → bt Suppose given some property P about bt we prove ∀ b : bt . P ( b ) . Question : After adding c : nat does the theorem still hold? Answer : Yes. Because bt -terms (in normal form) cannot contain nat -terms. Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 2/14

  7. Independence Terms of a certain type can not depend on that of another type. Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 3/14

  8. Independence Terms of a certain type can not depend on that of another type. Definition ( Independence ) The type τ 2 is independent of τ 1 in the context Γ if whenever Γ , x : τ 1 ⊢ t : τ 2 holds for some t , the β -normal form of t does not contain x , i.e. , Γ ⊢ t : τ 2 holds. Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 3/14

  9. Independence Terms of a certain type can not depend on that of another type. Definition ( Independence ) The type τ 2 is independent of τ 1 in the context Γ if whenever Γ , x : τ 1 ⊢ t : τ 2 holds for some t , the β -normal form of t does not contain x , i.e. , Γ ⊢ t : τ 2 holds. Independence is a derived property of the given type theory can be used to formalize transportation of theorems Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 3/14

  10. Independence Terms of a certain type can not depend on that of another type. Definition ( Independence ) The type τ 2 is independent of τ 1 in the context Γ if whenever Γ , x : τ 1 ⊢ t : τ 2 holds for some t , the β -normal form of t does not contain x , i.e. , Γ ⊢ t : τ 2 holds. Independence is a derived property of the given type theory can be used to formalize transportation of theorems Example : bt is independent of nat in the last example. Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 3/14

  11. Contributions (Overview) Our contributions: Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 4/14

  12. Contributions (Overview) Our contributions: A methodology for formalizing proofs of independence Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 4/14

  13. Contributions (Overview) Our contributions: A methodology for formalizing proofs of independence Encoding the type theory in a specification logic called HH Proving independence in a reasoning logic called G Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 4/14

  14. Contributions (Overview) Our contributions: A methodology for formalizing proofs of independence Encoding the type theory in a specification logic called HH Proving independence in a reasoning logic called G An algorithm for automatically checking independence Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 4/14

  15. Contributions (Overview) Our contributions: A methodology for formalizing proofs of independence Encoding the type theory in a specification logic called HH Proving independence in a reasoning logic called G An algorithm for automatically checking independence Derive the independence relation from the typing context Simultaneously generate a proof of independence Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 4/14

  16. Contributions (Overview) Our contributions: A methodology for formalizing proofs of independence Encoding the type theory in a specification logic called HH Proving independence in a reasoning logic called G An algorithm for automatically checking independence Derive the independence relation from the typing context Simultaneously generate a proof of independence We use the simply-typed λ -calculus ( STLC ) as an example. Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 4/14

  17. Elaboration of Independence Proofs We want to prove the following lemma by induction: ∀ t, if Γ , x : τ 1 ⊢ t : τ 2 is derivable then so is Γ ⊢ t : τ 2 . Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 5/14

  18. Elaboration of Independence Proofs We want to prove the following lemma by induction: ∀ t, if Γ , x : τ 1 ⊢ t : τ 2 is derivable then so is Γ ⊢ t : τ 2 . Considering the independence of τ 2 to τ 1 alone is not enough. Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 5/14

  19. Elaboration of Independence Proofs We want to prove the following lemma by induction: ∀ t, if Γ , x : τ 1 ⊢ t : τ 2 is derivable then so is Γ ⊢ t : τ 2 . Considering the independence of τ 2 to τ 1 alone is not enough. Example : when t is an application t 1 t 2 : Γ , x : τ 1 ⊢ t 1 : τ → τ 2 Γ , x : τ 1 ⊢ t 2 : τ Γ , x : τ 1 ⊢ t 1 t 2 : τ 2 Need to prove the independence of τ to τ 1 for the new type τ . Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 5/14

  20. Elaboration of Independence Proofs We want to prove the following lemma by induction: ∀ t, if Γ , x : τ 1 ⊢ t : τ 2 is derivable then so is Γ ⊢ t : τ 2 . Considering the independence of τ 2 to τ 1 alone is not enough. Example : when t is an application t 1 t 2 : Γ , x : τ 1 ⊢ t 1 : τ → τ 2 Γ , x : τ 1 ⊢ t 2 : τ Γ , x : τ 1 ⊢ t 1 t 2 : τ 2 Need to prove the independence of τ to τ 1 for the new type τ . Solution : Since the context Γ is fixed, it is possible to finitely characterize the types involved in the proof Prove the independence lemmas for these types simultaneously Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 5/14

  21. Elaboration of Independence Proofs We want to prove the following lemma by induction: ∀ t, if Γ , x : τ 1 ⊢ t : τ 2 is derivable then so is Γ ⊢ t : τ 2 . Considering the independence of τ 2 to τ 1 alone is not enough. Example : when t is an application t 1 t 2 : Γ , x : τ 1 ⊢ t 1 : τ → τ 2 Γ , x : τ 1 ⊢ t 2 : τ Γ , x : τ 1 ⊢ t 1 t 2 : τ 2 Need to prove the independence of τ to τ 1 for the new type τ . Solution : Since the context Γ is fixed, it is possible to finitely characterize the types involved in the proof Prove the independence lemmas for these types simultaneously Realization : encode typing for the fixed context in a spec logic and do inductive proof on the encoding. Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 5/14

  22. The Specification Logic HH The specification logic is called the logic of higher-order hereditary Harrop formulas ( HH ): Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 6/14

  23. The Specification Logic HH The specification logic is called the logic of higher-order hereditary Harrop formulas ( HH ): Provides an adequate set of devices for formalizing SOS-style rules Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 6/14

  24. The Specification Logic HH The specification logic is called the logic of higher-order hereditary Harrop formulas ( HH ): Provides an adequate set of devices for formalizing SOS-style rules Formulas has the following normal form: F ::= ∀ ¯ x :¯ τ. F 1 ⇒ · · · ⇒ F n ⇒ A . Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 6/14

  25. The Specification Logic HH The specification logic is called the logic of higher-order hereditary Harrop formulas ( HH ): Provides an adequate set of devices for formalizing SOS-style rules Formulas has the following normal form: F ::= ∀ ¯ x :¯ τ. F 1 ⇒ · · · ⇒ F n ⇒ A . A sequent calculus for derive sequents of the form Γ ⊢ F (Γ = F 1 , ..., F n ) Γ is called the context and F is called the goal Yuting Wang , Kaustuv Chaudhuri Characterization of Independence in Type Theory 6/14

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