coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Kevin Sullivan <sullivan.kevinj AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Simple formalization of type of natural deduction proofs
- Date: Mon, 19 Feb 2018 10:05:31 -0500
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=sullivan.kevinj AT gmail.com; spf=Pass smtp.mailfrom=sullivan.kevinj AT gmail.com; spf=None smtp.helo=postmaster AT mail-wr0-f173.google.com
- Ironport-phdr: 9a23:rmI+xB+UM3vaR/9uRHKM819IXTAuvvDOBiVQ1KB42uwcTK2v8tzYMVDF4r011RmVBd6ds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+55Pebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRx3miCkHOTA383zZhNJsg69Auh2tuwZyzpTIbI2JNvdzeL7Wc9MARWpGW8ZcTylPDZ2ib4sOCeoKIPtWr5T5p1sKrBu+GxOjBOXywTJPnX/2wKk60+AgEQHYxgMgGcgCsHfKo9XrNacSV+K1wbLHzTXGdfxW2DP95JLUfRAmpPGBRLR9etffx0koEgPKlFSQqYr9MjOI0OQNsnGX7/F6Wu21kW4nrxt+oj6yycs2l4bGmJoZykzK9CpnxIY1K8e0SElhYd6rFpZbqiKUN5NuT888X21lvDw2x74GtJKhYSQG1pcqywTCZ/GFfYWF5A/oWvyLLjdinn1lfaqyhxas/kikze3xTsy030xLripBi9XNuGoN2wDK5siJV/dw/Ems1SyA1wDU7eFELkQ0mrTBJ5E9xb4wk4IfsUXFHiDohEX7lLGaelkg9+Sy6OnqYq/qqoKCO4J3kA3yL6Yjl8KnDeQ9KAcOXmyb+eqm1L3k+E30WK5KjuAykqndsZDaO94UpqijDw9WzIkj9Re/DzGk0NkDknkHKUhKeBODj4TzJ17OJ/X4Ae+lg1uwiDdr2+zGPrr5D5rRKXjDia7tcqp5605B0wU+1stf5pJRCrEZOv3/QE7xtNrCDh84KQO42ejnCM8unr8ZDGmIG+qSNL7YmV6O/OMmZeeWN6EPvzOoCPU75vimtmI9nV4DdK/hiYAKbHS5AP1gZUaUf3vqgP8OFG4Lukw1S+m82w7KaiJae3vnB/F03To8Eo/zVd6SFLDou6SI2WKAJrMTY2lHDl6WFnKxLteLXv4NbGSZJcozy2VYB4jkcJco0FSVjCG/06Bud7OG9SgRtJal399wtbWKyEMCsAdsBsHY6FmjCmF5mmRSGW0z1aF75FNnkhKNiPcjxfNfEtNX6rVCVQJobZM=
Very helpful. Thanks for this. --Kevin
On Mon, Feb 19, 2018 at 9:54 AM, Gert Smolka <smolka AT ps.uni-saarland.de> wrote:
We cover intuitionistic / classical ND in an introductory class using Coq,see lecture notes and Coq files at https://courses.ps.uni-saarland.de/icl_17/2/Resources.This includes Glivenko’s theorem.There is also a Coq development of Gentzen’s intuitionistic sequent calculusshowing that it is decidable and intereducible with intuitionistic ND, seeGertOn 19. Feb 2018, at 15:16, Kevin Sullivan <sullivan.kevinj AT gmail.com> wrote: I'm looking for a simplest way to teach my early undergraduate students about natural deduction and/or sequent calculus proof objects without having to get into lambda terms and type systems.The following "POPL tutorial" suggests a standard solution: formalize proofs as values of an inductive type, where the constructors mirror the rules of inference.The rule for implication introduction says (naturally enough) that if you have a function from proofs of A to proofs of B, you can construct a proof of (Impl A B).A straightforward translation of this into Coq, as copied right below this sentence, results in a non-positivity error for the encoding of this inference rule./* variables */Inductive var := mk_var: nat -> var./* propositions in my minimal propositional logic */Inductive prop :=| atom: var -> prop| and: prop -> prop -> prop| impl: prop -> prop -> prop./* proof rules */Inductive proof: prop -> Type :=| axiom: forall A: prop, proof A| andIntro: forall A B: prop, proof A -> proof B -> proof (and A B)| andElimL: forall A B: prop, proof (and A B) -> proof A| andElimR: forall A B: prop, proof (and A B) -> proof B| implElim: forall A B: prop, proof A -> proof (impl A B) -> proof B| implIntro: forall A B: prop, (proof A -> proof B) -> proof (impl A B). (* oops!!! *)What would be the canonical way to represent the same ideas in Coq in a way that works?Again, the aim is a super-straightforward pedagogical explication of rules of natural deduction (or sequent calculus), for a propositional logic only, with the ability to "play around" by building proof terms by explicit application of introduction and elimination inference rules.Kevin
- [Coq-Club] Simple formalization of type of natural deduction proofs, Kevin Sullivan, 02/19/2018
- Re: [Coq-Club] Simple formalization of type of natural deduction proofs, Kevin Sullivan, 02/19/2018
- Re: [Coq-Club] Simple formalization of type of natural deduction proofs, Gert Smolka, 02/19/2018
- Re: [Coq-Club] Simple formalization of type of natural deduction proofs, Kevin Sullivan, 02/19/2018
- Re: [Coq-Club] Simple formalization of type of natural deduction proofs, Daniel Schepler, 02/19/2018
- Re: [Coq-Club] Simple formalization of type of natural deduction proofs, Pierre Courtieu, 02/27/2018
- Re: [Coq-Club] Simple formalization of type of natural deduction proofs, Julien Narboux, 02/28/2018
- Re: [Coq-Club] Simple formalization of type of natural deduction proofs, manoury, 02/28/2018
- Re: [Coq-Club] Simple formalization of type of natural deduction proofs, Julien Narboux, 02/28/2018
- Re: [Coq-Club] Simple formalization of type of natural deduction proofs, Pierre Courtieu, 02/27/2018
Archive powered by MHonArc 2.6.18.