coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: henaien amira <henaien_amira AT hotmail.com>
- To: <beta AT mpi-sws.org>
- Cc: coq club <coq-club AT inria.fr>
- Subject: RE: [Coq-Club] Ltac unify expressions
- Date: Wed, 21 Mar 2012 11:02:07 +0100
- Importance: Normal
Hi Beta,
Well, I take a look in Matita's home page and it seems that you are right. Actually I'm working in something similar: the implementation of an interactive theorem prover in Coq. But I have some difficulties with some rules. For example I have an inference rule which should take a function and an equality and give a case analysis of this last one. For example if I have the function plus : Fixpoint plus (x y : nat ) : nat := match x with | id_0 => y | id_s x' => id_s ( plus x' y) end. And if I have a theorem : Theorem th : forall n : nat , plus n id_0 = n. intro n . =========== plus n id_0 = n in this state my rule should give two subgoals : 1. plus id_0 id_0 = id_0 2. id_s (plus n id_0) = id_s n I have tried the tactic destruct plus. but destruct works only in the first part so I'm looking for a tactic that may give the substitution used in the first part of the equality so I can applied it for the second one. Or it will great if there is a tactic that my do the case analysis. I hope that I have explained enough to get help :) . Thanks, Amira From: beta AT mpi-sws.org Date: Wed, 21 Mar 2012 09:33:14 +0100 Subject: Re: [Coq-Club] Ltac unify expressions To: henaien_amira AT hotmail.com Hi Amira, I'm curious about the use for such tactic. Can you tell me more about your idea? The reason why I'm asking is because I have the impression that it would be useful to have explicit meta-variables like Matita[1] does. And your problems seems to fit into this concept. Cheers, Beta [1] Table 4.10 in http://matita.cs.unibo.it/docs/manual/html/sec_terms.html#terms_and_co
On Wed, Mar 21, 2012 at 9:03 AM, henaien amira <henaien_amira AT hotmail.com> wrote:
|
- 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.