Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Decidable equality of propositions implies proof irrelevance

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Decidable equality of propositions implies proof irrelevance


Chronological Thread 
  • From: Dominik Kirst <kirst AT ps.uni-saarland.de>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Decidable equality of propositions implies proof irrelevance
  • Date: Fri, 25 May 2018 15:45:01 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=kirst AT ps.uni-saarland.de; spf=Pass smtp.mailfrom=kirst AT ps.uni-saarland.de; spf=None smtp.helo=postmaster AT theia.rz.uni-saarland.de
  • Ironport-phdr: 9a23:WIEJvBdTqcin8Ph+XSWB+TRSlGMj4u6mDksu8pMizoh2WeGdxcS4Yh7h7PlgxGXEQZ/co6odzbaO6Oa4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahb75+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM38H3YhcNtgqxYrhyvuRtxzpXbYI2JMfpzZKPdcc8ESWdHQ81fVzZBAoS5b4YXAeQBOuNYr4j7p1sPrhu1GAyiBOL1yj9Tmn/9wKo30+cgEQHcxwwgA8kDsGzPrNnvKacSV+G1wLDTzTrZdfxWwzP955LOch88u/2DQKx/fNPXxEIyGQ3FiVCQppbkPzOTzukNsm6b7/BhVe21kWInpRtxriCgxsctlonJhp8VxUve+Splx4Y1IMW0SFN9Yd6lCZdQrDuVOJFsQsMmWW5ovjs1xqcbtpGleiUB1ZcpxwbHZvCafYWF7QjvWeKQLDtihn9pYryyiwuq/US9xODxWdO43VJLoyZfj9XBtXEA2wbO5sSbV/dw+Fqq1yyV2ADJ8O5EJFg5larFJJ4lxb49joYTsUTdES/3gkr6lrWWd0Q+9ui17eTnY6zqpoSGOIBukAH+Nr4hmsqiDugiLwcBQXCX+eW61LL94U30WKhGg/M5n6XDtJ3XJN4Xq6yjDwJbz4ov8xO/AC2n0NQck3kHNlVFeBefgojqOlHOOuv4DeukjlS0izdn3e3GPrvgApnUNXjMiq3ufax560FGzgo80MpT6I9KBb0ZOvL8RlfxtMDEDh8+KwG73+HnCMxk2owCXWKPH7SWPbjJsV6I4+IvO/ODaJUUuDb7Mfgl5uThgWU3mV8HLuGV2s4cb2n9FfB7KW2YZ2Dti5EPCzQkpA07GcDtjVyEUD0bRHeoRL50sjI6Epm6JZ/YAJ2rgfma1S6hGpRQaiZKBwbfQj/Ta4yYVqJUO2qpKch7n2lcDOnze8oazRir8TTC5f9iJ+vQ9DcfsMi7hsBuofDVlFQp/DVuC82b3yeBQjMtxz9ad3oNxKl65HdF5BKby6Ei265ADppO4fIMSQ4zL5rVyeA8B92gAlucLOfMc06vR5CdOR90Tt81xIVQMVp9FtSryArRmTesAvoOnrWRAJUy/uTQ0iqpKg==

Dear Coq community,

studying the proof in the standard library (https://coq.inria.fr/library/Coq.Logic.Berardi.html) that excluded middle (XM) implies proof irrelevance (PI), I found that the assumption of XM can be weakened to (logically) decidable equality of propositions (DEP). I have attached a short Coq script which simplifies and strengthens the original idea by Barbanera and Berardi (1996) accordingly. Has this fact been known before and is there work on related ideas? I have only found the overview of propositions independent from Coq in the wiki (https://github.com/coq/coq/wiki/The-Logic-of-Coq) where the implication from decidable equality to proof irrelevance is missing.

The proof structure is to first derive uniqueness of identity proofs (UIP) for propositions from DEP following Hedberg (1998). Using UIP and DEP, every inhabited proposition X admits a surjection U -> U -> X, where U := forall Y, Y -> X.
Hence every function X -> X has a fixed-point (Lawvere). So in particular negation on an inductive proposition Bool with two constructors T and F has a fixed-point, hence T = F, which implies PI. The proof in the script is a more direct and shorter version directly starting from the inductive proposition Bool and inlining the fixed-point theorem.

The trick for defining the inverse (U -> X) -> U is to take h : U -> X and Y : Prop and do a case analysis whether Y = U. If so, one returns h (transported along the equality Y = U which must be reflexivity), if not, any dummy value will do. Interestingly, this insight generalises to other impredicative type theories, in the sense that adding a combinator for type casts allows to derive a fixed-point combinator for inhabited types (cf. Harper & Mitchel (1999)).

Kind regards,
Dominik

-----------------------------------------
Programming Systems Lab
Saarland University
http://www.ps.uni-saarland.de/~kirst/



Attachment: signature.asc
Description: Message signed with OpenPGP




Archive powered by MHonArc 2.6.18.

Top of Page