coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: henaien amira <henaien_amira AT hotmail.com>
- To: <gmalecha AT eecs.harvard.edu>
- Cc: coq club <coq-club AT inria.fr>
- Subject: RE: [Coq-Club] Ltac unify expressions
- Date: Wed, 21 Mar 2012 09:03:25 +0100
- Importance: Normal
Hi Malecha, From: gmalecha AT eecs.harvard.edu Date: Tue, 20 Mar 2012 17:19:43 -0400 To: henaien_amira AT hotmail.com CC: matthieu.sozeau AT gmail.com; coq-club AT inria.fr Subject: Re: [Coq-Club] Ltac unify expressions Hi, Henaien -- This tactic is not meant do do what you are asking it to do. This tactic only checks that the two terms are equal to each other (where equal is Coq's equal, i.e. beta, delta, iota, zeta equivalence). This isn't the case for your term because
n + 0 does not reduce to 0 + 0 What you need to do here is pick a particular [n] to instantiate with. I think you are meaning your lemma to be phrased as:
Theorem th_exp : (forall n : nat, n + 0 = n) -> 0 + 0 = 0. This would be solved by intro H; apply H. or [auto]. Hope this helps. On Tue, Mar 20, 2012 at 3:32 PM, henaien amira <henaien_amira AT hotmail.com> wrote:
gregory malecha |
- RE: [Coq-Club] Ltac unify expressions, henaien amira
- Re: [Coq-Club] Ltac unify expressions,
Gregory Malecha
- RE: [Coq-Club] Ltac unify expressions, henaien amira
- Message not available
- RE: [Coq-Club] Ltac unify expressions,
henaien amira
- Re: [Coq-Club] Ltac unify expressions,
Beta Ziliani
- RE: [Coq-Club] Ltac unify expressions,
henaien amira
- Re: [Coq-Club] Ltac unify expressions, Kristopher Micinski
- RE: [Coq-Club] Ltac unify expressions, henaien amira
- Re: [Coq-Club] Ltac unify expressions, Jonas Oberhauser
- RE: [Coq-Club] Ltac unify expressions,
henaien amira
- Re: [Coq-Club] Ltac unify expressions,
Beta Ziliani
- RE: [Coq-Club] Ltac unify expressions,
henaien amira
- Message not available
- RE: [Coq-Club] Ltac unify expressions, henaien amira
- Re: [Coq-Club] Ltac unify expressions,
Gregory Malecha
Archive powered by MhonArc 2.6.16.