coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Gaetan Gilbert <gaetan.gilbert AT ens-lyon.fr>
- To: coq-club AT inria.fr
- Subject: Re:[Coq-Club]
- Date: Tue, 6 Sep 2016 12:55:38 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=gaetan.gilbert AT ens-lyon.fr; spf=Pass smtp.mailfrom=gaetan.gilbert AT ens-lyon.fr; spf=None smtp.helo=postmaster AT labbe.ens-lyon.fr
- Ironport-phdr: 9a23:+E9mWB2PYCqTv/pIsmDT+DRfVm0co7zxezQtwd8ZsesRI/ad9pjvdHbS+e9qxAeQG96KsrQZ2qGN7eigATVGusnR9ihaMdRlbFwst4Y/p0QYGsmLCEn2frbBThcRO4B8bmJj5GyxKkNPGczzNBX4q3y26iMOSF2kbVImbre9JomHhMOukuu25pf7YgNShTP7b6khAg+xqFD+v8QKiI0qBac1wBbTvjMcdO1b2WpuY12Smxzx/NuY8Zh4tiBBvPRn+dQWAvayRLgxUbENVGduCGsy/sC+7RQ=
You need to do the induction before the intros. Consider this simplified example: Goal forall m n, m = S n -> n < m. intros m;induction m;intros n H. Focus 2. (* Abort. Goal forall m n, m = S n -> n < m. intros m n H;induction m. Focus 2. (* Abort. Gaëtan Gilbert On 06/09/2016 12:39, Samira Akili
wrote:
Hi,
thanks
a lot for your quick response. It really helps, especially
regarding the definition of the Connection type.
You are
also right with the lemma! We definitely need the distance as
pathlength in the lemma, otherwise it would not be true at
all. However we still get the same problem with the induction
hypothesis.
{el : A_list
& Connection x root el (S n)}
How can I change
the induction scheme to get a different x in the hypothesis
and in the goal?
kind regards,
Samira
Gaetan Gilbert
<gaetan.gilbert AT ens-lyon.fr> schrieb am 20:14
Montag, 5.September 2016:
If I'm reading it right that lemma says for any
point x and any n, there is a path of length n
between x and root. This seems unlikely to be
true.
You might want something like
forall x, v x -> {el : A_list &
Connection x root el (distance x)}
for path_to_root, which says that for any point
x there is a path of length (distance x) between x
and root.
Then you can modify it to
forall n, forall x, v x -> distance x = n
-> {el : A_list & Connection x root el n }
and then you can do induction on n.
Additional remarks:
I'm not familiar with this library but it seems
like it would be cleaner to have (g : Graph v a)
and (propRoot : v root) as section variables.
In the definition of Connection, why is the
inductive argument to step [Connection y z el (S
n)] and not [Connection y z el n]? Doesn't this
make it impossible to define any Connection of
nonzero length?
The parent_exists axiom is strange, I would
have expected something like forall c, v c -> v
(parent c).
Gaëtan Gilbert On
05/09/2016 17:50, Samira Akili wrote:
Hi everyone, |
- [Coq-Club], Samira Akili, 09/05/2016
- Re:[Coq-Club], Gaetan Gilbert, 09/05/2016
- Re:[Coq-Club], Samira Akili, 09/06/2016
- Re:[Coq-Club], Gaetan Gilbert, 09/06/2016
- Re:[Coq-Club], Samira Akili, 09/06/2016
- Re:[Coq-Club], Gaetan Gilbert, 09/05/2016
Archive powered by MHonArc 2.6.18.