Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Optional elim restriction?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Optional elim restriction?


Chronological Thread 
  • From: Ralf Jung <jung AT mpi-sws.org>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Optional elim restriction?
  • Date: Thu, 10 Mar 2016 19:35:15 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jung AT mpi-sws.org; spf=Pass smtp.mailfrom=jung AT mpi-sws.org; spf=None smtp.helo=postmaster AT hera.mpi-klsb.mpg.de
  • Ironport-phdr: 9a23:iYBaiR/e5hSvM/9uRHKM819IXTAuvvDOBiVQ1KB90OscTK2v8tzYMVDF4r011RmSDdqdu6IP0rOO+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuStGU35T8jrnqs7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cY6Lod8JtLVry/dKAlR5RZCi4nOiY7/p7Frx7GGDGG4nVUcHgQnVIcARXD4zn/Rpa0qTTh8O1n13/JboXNUbkoVGH6vO9QQxjyhXJfOg==

Hi,

> Le 10/03/2016 17:33, Ralf Jung a écrit :
>> So I wonder, would it be possible to add a flag to Coq to disable the
>> elim restriction? Would that make sense? It's a little like
>> type-in-type, except that it's not actually unsound if not combined with
>> classical axioms.
>
> If I remember correctly, this restriction is important to soundness :
> because Prop is impredicative, we can build a proof of false from
> inhabited T -> T.

Oh, I see. So, having a function "inhabited T -> T" that actually
computes would be unsound? Seems I misremembered, sorry.

But having "inhabited T -> T", without any proof about *which* T you
get, is fine?

Recently, this has been suggested on the list:
<https://sympa.inria.fr/sympa/arc/coq-club/2016-02/msg00224.html>

> Inductive Erasable(A : Set) : Prop :=
> erasable: A -> Erasable A.
>
> Arguments erasable [A] _.
> ...
> Axiom Erasable_inj : forall {A : Set}{a b : A}, erasable a= erasable b ->
> a=b.

This also first had me confused, because it partially circumvents the
elim restriction. (Erasable is the same as inhabited, as far as I can
see). Certainly, this is incompatible with proof irrelevance. But other
than that?

Kind regards,
Ralf



Archive powered by MHonArc 2.6.18.

Top of Page