coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Marco Servetto <marco.servetto AT gmail.com>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] match/ proof of branch
- Date: Sun, 17 Jul 2011 20:12:34 +0200
Ok thank you all.
> inversion 1; reflexivity.
This is not working in the "real" setting, so I tried to understand
the first proposal,
That IS actually working for my real needs.
However I doesn't understand the coq behaviour here: that is:
if I make
unfold rK;intros n myR.
generalize (refl_equal (f n)).
I obtain
forall e : f n = f n,
Some myR =
(if f n as x return (x = f n -> option R)
then fun p : true = f n => Some (r n p)
else fun _ : false = f n => None) e -> data myR = n
that is quite unexpected. I was expecting
f n = f n ->
Some myR =
(if f n as x return (x = f n -> option R)
then fun p : true = f n => Some (r n p)
else fun _ : false = f n => None) (refl_equal (f n)) -> data myR = n
(that is exactly what I obtain doing
intros n myR.
generalize (refl_equal (f n)).
unfold rK.)
It looks like generalize is much more complex that I expected. When
this forall e is generated??
- Re: [Coq-Club] match/ proof of branch, (continued)
- Re: [Coq-Club] match/ proof of branch,
gallais @ ensl.org
- Re: [Coq-Club] match/ proof of branch, Adam Chlipala
- Re: [Coq-Club] match/ proof of branch,
Marco Servetto
- Re: [Coq-Club] match/ proof of branch,
Pierre Courtieu
- Re: [Coq-Club] match/ proof of branch, AUGER Cedric
- Re: [Coq-Club] match/ proof of branch,
Pierre Courtieu
- Re: [Coq-Club] match/ proof of branch,
Marco Servetto
- Re: [Coq-Club] match/ proof of branch,
Adam Chlipala
- Re: [Coq-Club] match/ proof of branch, Adam Chlipala
- Re: [Coq-Club] match/ proof of branch,
gallais @ ensl.org
- Re: [Coq-Club] match/ proof of branch,
Adam Chlipala
- Re: [Coq-Club] match/ proof of branch, Marco Servetto
- Re: [Coq-Club] match/ proof of branch, Adam Chlipala
- Re: [Coq-Club] match/ proof of branch, Marco Servetto
- Re: [Coq-Club] match/ proof of branch,
Adam Chlipala
- Re: [Coq-Club] match/ proof of branch,
Adam Chlipala
- Re: [Coq-Club] match/ proof of branch,
gallais @ ensl.org
Archive powered by MhonArc 2.6.16.