coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Pierre Casteran <pierre.casteran AT labri.fr>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] proof with nat_ind
- Date: Wed, 02 Dec 2015 18:58:17 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=pierre.casteran AT labri.fr; spf=Pass smtp.mailfrom=pierre.casteran AT labri.fr; spf=Pass smtp.helo=postmaster AT iona.labri.fr
- Ironport-phdr: 9a23:kDnduxa2YqDbzOneSc/RR8r/LSx+4OfEezUN459isYplN5qZpcu/bnLW6fgltlLVR4KTs6sC0LqI9fi4EUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ35rxj7j60qaQSjsLrQL1Wal1IhSyoFeZnegtqqwmFJwMzADUqGBDYeVcyDAgD1uSmxHh+pX4p8Y7oGxav/sq9IZNVKz7e+w0SrlRDTJ0LW0v7YvgshyFUBrHpiBECiRF2iZPVgPC9VTxWor7mir8rOt0nieAbuPsSrVhYTWv9b1mADThkzsKLTc/uDXPi8Fqlq8dqxu6uxFlyoj8ZIifLvs4cLmLLoBSfnZIQssEDn8JOYi7dYZaVLJZMA==
Perhaps it's just a syntax error, if you put nat_ind at a place where a tactic is expected.
You should try to write something like :
exact (nat_ind ... ...)
or
apply nat_ind with ...
or
intros n; pattern; apply nat_ind.
Pierre
Quoting Patricia Peratto
<psperatto AT vera.com.uy>:
I want to prove (using nat_ind) the following proposition.
I adjoin the proof I have written myself.
Definition aux1b (n:nat) : forall m:nat,
forall (e:n=m),S n = S m.
nat_ind (fun n:nat =>
(forall m:nat, forall e:n=m, S n = S m))
(fun m:nat, fun e:O=m,
(f_equal nat nat S O m e))
(fun p:nat, fun q:(forall m:nat,
forall e:p = m, S p = S m) =>
(fun m2:nat =>
(fun e2:(S p)=m2 =>
(f_equal nat nat S (S p) m2 e2))))
n.
I have proved it using "induction" but I want to
find the proof using nat_ind.
I have gotten the following message:
Error: The reference nat_ind was not found in the current environment.
Someone can say me where I'm wrong?
Regards
Patricia
- [Coq-Club] proof with nat_ind, Patricia Peratto, 12/02/2015
- Re: [Coq-Club] proof with nat_ind, Jonathan Leivent, 12/02/2015
- Re: [Coq-Club] proof with nat_ind, Pierre Casteran, 12/02/2015
- Re: [Coq-Club] proof with nat_ind, James Wilcox, 12/02/2015
- Re: [Coq-Club] proof with nat_ind, Emilio Jesús Gallego Arias, 12/02/2015
- Re: [Coq-Club] proof with nat_ind, Dominique Larchey-Wendling, 12/03/2015
Archive powered by MHonArc 2.6.18.