SlideShare ist ein Scribd-Unternehmen logo
1 von 36
Downloaden Sie, um offline zu lesen
Practical Automated Reasoning
   with the Polarized Inverse Method

                              Sean McLaughlin

                                  Thesis Proposal
                             Carnegie Mellon University
                            School of Computer Science




Thesis Committee:
 Jeremy Avigad      CMU Philosophy
 Robert Harper      SCS
 Dale Miller        ´
                    Ecole Polytechnique
 Frank Pfenning     SCS
 Andr´ Platzer
     e              SCS
                                                          1 / 32
Outline

   Proposed Contribution
   A proof-producing meta-theorem prover for Twelf.

    1. This is an important problem!
            Twelf is the strongest proof assistant in its domain
            Many applications, in theory and practice
            Requires more work than it should
    2. We can (hopefully) solve it!
            The inverse method
            Focusing
            Polarization
    3. We can solve other interesting problems along the way!
            First-order logic
            Constraints
            LF

                                                                   2 / 32
3 / 32
Twelf


        A proof assistant for deductive systems
            Programming languages
            Logics

        Examples
            Type safety for Standard ML (Lee, Crary, Harper)
            Trusted computing/typed assembly language (Crary, Sarkar)
            Certified compilers (Murphy, Crary)
            Proof carrying code (Necula, et al.)
            Security
                   Proof-carrying authentication (Appel, Felten)
                   Proof-carrying file system (Garg, Pfenning)




                                                                        4 / 32
Example




          5 / 32
Simply Typed λ-Calculus

   Language
    Terms e ::= λx. e | e1 e2
    Types τ ::= α | τ1 ⇒ τ2


   Typing rules
                          Γ, x : τ1 e : τ2     Γ   e1 : τ2 ⇒ τ Γ e2 : τ2
    Γ, x : τ   x :τ   Γ      λx. e : τ1 ⇒ τ2           Γ e1 e2 : τ


   Evaluation rules
                                         e1 → λx. e3 [e2 /x]e3 → e
    x →x          λx. e → λx. e                 e1 e2 → e



                                                                           6 / 32
Theorem (Type Preservation)
If Γ   e : τ and e → e then Γ   e :τ




                                       7 / 32
Theorem (Type Preservation)
If Γ   e : τ and e → e then Γ   e :τ




                                       7 / 32
Twelf




        Support for variable binding
        Dependent types
        Many interesting applications
        Lack of automation (i.e. proof search)
   Proofs account for %80 to %95 of code in the SML type
   preservation theorem. (22 KLOC total)




                                                           8 / 32
Proposed Work


  Theory
  abc

  Implementation

        A proof-producing meta-theorem prover for Twelf.
        New theorem provers for
            First-order propositional logic
            Intuitionistic first-order logic
            Intuitionistic first-order logic with constraints
            LF




                                                               9 / 32
Outline
   Introduction
       Twelf
   The Polarized Inverse Method
      Example: Intutionistic Logic
      The Inverse Method
      Focusing and Polarization
      Imogen
   Applications
      Constraints
      Induction
      LF
         +
      M2
   Conclusion
      Related Work

                                     10 / 32
Outline
   Introduction
       Twelf
   The Polarized Inverse Method
      Example: Intutionistic Logic
      The Inverse Method
      Focusing and Polarization
      Imogen
   Applications
      Constraints
      Induction
      LF
         +
      M2
   Conclusion
      Related Work

                                     11 / 32
12 / 32
The Inverse Method




                     13 / 32
The Inverse Method


   Forward Search
       Why??
             Local quantification
             Saturation
             Redundancy elimination
   Example




                                      14 / 32
The Inverse Method


   Forward Search
       Why??
             Local quantification
             Saturation
             Redundancy elimination
   Example
                              .
                              .      .
                                     .
                              .
                              .      .
                                     .
                           Γ −→ A Γ −→ B
                                 .
                                 .
                                 .




                                           14 / 32
The Inverse Method


   Forward Search
         Why??
             Local quantification
             Saturation
             Redundancy elimination
   Example
   abc




                                      14 / 32
The Inverse Method


   Forward Search
       Why??
             Local quantification
             Saturation
             Redundancy elimination
   Example

                        Γ, A −→ B     Γ −→ B




                                               14 / 32
abc




      15 / 32
Focusing and Polarization




                            16 / 32
Focusing and Polarization

                             Polarized
                              atoms,
                            conjunction



                                  Focused
                                   proofs




                                          Inversion
                                            proofs




                                                      All proofs




                                                                   17 / 32
Imogen




         18 / 32
abc




      19 / 32
Outline
   Introduction
       Twelf
   The Polarized Inverse Method
      Example: Intutionistic Logic
      The Inverse Method
      Focusing and Polarization
      Imogen
   Applications
      Constraints
      Induction
      LF
         +
      M2
   Conclusion
      Related Work

                                     20 / 32
Outline
   Introduction                                            Intuitionistic
                                                        Propositional Logic
       Twelf
   The Polarized Inverse Method
                                                            Intuitionistic
      Example: Intutionistic Logic                       First-Order Logic

      The Inverse Method
      Focusing and Polarization
      Imogen                              Intuitionistic
                                     Logic with Constraints


   Applications                                                              Intuitionistic
                                                                         Logic with Induction
      Constraints
                                              LF
      Induction
      LF
         +
      M2                                                         +
                                                                M2
                                                              (Twelf)
   Conclusion
      Related Work

                                                                                                21 / 32
Constraints




              22 / 32
abc




      23 / 32
Induction




            24 / 32
Inductive loop

                                         no
                   Proof Stack                 Q.E.D.


                 yes               yes



                        Filling


                            no


                                         no
                       Splitting              Unprovable


                            yes



                       Recursion




                                                           25 / 32
LF




     26 / 32
abc




      27 / 32
+
M2




     28 / 32
abc




      29 / 32
Outline
   Introduction
       Twelf
   The Polarized Inverse Method
      Example: Intutionistic Logic
      The Inverse Method
      Focusing and Polarization
      Imogen
   Applications
      Constraints
      Induction
      LF
         +
      M2
   Conclusion
      Related Work

                                     30 / 32
Related Work




               31 / 32
The End
Thanks for coming!




                     32 / 32

Weitere ähnliche Inhalte

Kürzlich hochgeladen

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 

Kürzlich hochgeladen (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 

Empfohlen

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Main

  • 1. Practical Automated Reasoning with the Polarized Inverse Method Sean McLaughlin Thesis Proposal Carnegie Mellon University School of Computer Science Thesis Committee: Jeremy Avigad CMU Philosophy Robert Harper SCS Dale Miller ´ Ecole Polytechnique Frank Pfenning SCS Andr´ Platzer e SCS 1 / 32
  • 2. Outline Proposed Contribution A proof-producing meta-theorem prover for Twelf. 1. This is an important problem! Twelf is the strongest proof assistant in its domain Many applications, in theory and practice Requires more work than it should 2. We can (hopefully) solve it! The inverse method Focusing Polarization 3. We can solve other interesting problems along the way! First-order logic Constraints LF 2 / 32
  • 4. Twelf A proof assistant for deductive systems Programming languages Logics Examples Type safety for Standard ML (Lee, Crary, Harper) Trusted computing/typed assembly language (Crary, Sarkar) Certified compilers (Murphy, Crary) Proof carrying code (Necula, et al.) Security Proof-carrying authentication (Appel, Felten) Proof-carrying file system (Garg, Pfenning) 4 / 32
  • 5. Example 5 / 32
  • 6. Simply Typed λ-Calculus Language Terms e ::= λx. e | e1 e2 Types τ ::= α | τ1 ⇒ τ2 Typing rules Γ, x : τ1 e : τ2 Γ e1 : τ2 ⇒ τ Γ e2 : τ2 Γ, x : τ x :τ Γ λx. e : τ1 ⇒ τ2 Γ e1 e2 : τ Evaluation rules e1 → λx. e3 [e2 /x]e3 → e x →x λx. e → λx. e e1 e2 → e 6 / 32
  • 7. Theorem (Type Preservation) If Γ e : τ and e → e then Γ e :τ 7 / 32
  • 8. Theorem (Type Preservation) If Γ e : τ and e → e then Γ e :τ 7 / 32
  • 9. Twelf Support for variable binding Dependent types Many interesting applications Lack of automation (i.e. proof search) Proofs account for %80 to %95 of code in the SML type preservation theorem. (22 KLOC total) 8 / 32
  • 10. Proposed Work Theory abc Implementation A proof-producing meta-theorem prover for Twelf. New theorem provers for First-order propositional logic Intuitionistic first-order logic Intuitionistic first-order logic with constraints LF 9 / 32
  • 11. Outline Introduction Twelf The Polarized Inverse Method Example: Intutionistic Logic The Inverse Method Focusing and Polarization Imogen Applications Constraints Induction LF + M2 Conclusion Related Work 10 / 32
  • 12. Outline Introduction Twelf The Polarized Inverse Method Example: Intutionistic Logic The Inverse Method Focusing and Polarization Imogen Applications Constraints Induction LF + M2 Conclusion Related Work 11 / 32
  • 15. The Inverse Method Forward Search Why?? Local quantification Saturation Redundancy elimination Example 14 / 32
  • 16. The Inverse Method Forward Search Why?? Local quantification Saturation Redundancy elimination Example . . . . . . . . Γ −→ A Γ −→ B . . . 14 / 32
  • 17. The Inverse Method Forward Search Why?? Local quantification Saturation Redundancy elimination Example abc 14 / 32
  • 18. The Inverse Method Forward Search Why?? Local quantification Saturation Redundancy elimination Example Γ, A −→ B Γ −→ B 14 / 32
  • 19. abc 15 / 32
  • 21. Focusing and Polarization Polarized atoms, conjunction Focused proofs Inversion proofs All proofs 17 / 32
  • 22. Imogen 18 / 32
  • 23. abc 19 / 32
  • 24. Outline Introduction Twelf The Polarized Inverse Method Example: Intutionistic Logic The Inverse Method Focusing and Polarization Imogen Applications Constraints Induction LF + M2 Conclusion Related Work 20 / 32
  • 25. Outline Introduction Intuitionistic Propositional Logic Twelf The Polarized Inverse Method Intuitionistic Example: Intutionistic Logic First-Order Logic The Inverse Method Focusing and Polarization Imogen Intuitionistic Logic with Constraints Applications Intuitionistic Logic with Induction Constraints LF Induction LF + M2 + M2 (Twelf) Conclusion Related Work 21 / 32
  • 26. Constraints 22 / 32
  • 27. abc 23 / 32
  • 28. Induction 24 / 32
  • 29. Inductive loop no Proof Stack Q.E.D. yes yes Filling no no Splitting Unprovable yes Recursion 25 / 32
  • 30. LF 26 / 32
  • 31. abc 27 / 32
  • 32. + M2 28 / 32
  • 33. abc 29 / 32
  • 34. Outline Introduction Twelf The Polarized Inverse Method Example: Intutionistic Logic The Inverse Method Focusing and Polarization Imogen Applications Constraints Induction LF + M2 Conclusion Related Work 30 / 32
  • 35. Related Work 31 / 32
  • 36. The End Thanks for coming! 32 / 32