coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Theodoros G. Tsokos" <T.Tsokos AT cs.bham.ac.uk>
- To: Yves Bertot <Yves.Bertot AT sophia.inria.fr>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] applying at the same time two hypothesis to solve a goal.
- Date: Sun, 13 Apr 2008 21:43:33 +0100
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Yves Bertot wrote:
Theodoros G. Tsokos wrote:Yes, there is a coercion from bool to term after the definition of term:
...
Well, let me be more precise, as I think that my example wasn't the most appropriate one.What you are showing is still confusing as it looks to be not well-typed.
Assuming that I have *op_and* defined, as the logical operator between two terms b1 b2. Let *FF* be an inductive definition:
Inductive FF: env->term->type->Prop :=
....
| C4: forall G b1 b2, FF G b1 expr -> FF G b2 expr -> FF G (op_and b1 b2) expr
....
And assuming that in my Lemma, I want to prove the following subgoal:
...
G : env
b1: term
b2: term
v1: bool
v2: bool
t: type
...
H1 : FF G b1 t -> FF G v1 t
H2 : FF G b2 t -> FF G v2 t
================================
FF G (op_and b1 b2) t -> FF G (v1 && v2) t
Is is possible to prove it? I think it should be, as I proved this lemma on paper properly.
Thanks again,
Theo.
Is there a coercion from bool to term? Are there other constructors in the definition of FF that conclude
with "op_and ..."?
Yves
---------------------------------------------------------------------
Inductive term: Set :=
...
| term_bool (_ : bool)
...
.
Coercion term_bool : bool >-> term.
---------------------------------------------------------------------
Also, there 're no other constructors in the definition of FF that conclude with "op_and ... ".
Trying not to bore you and not to have a huge email, I might be missing some important parts for your comprehension.
Regards,
Theo.
--
| Theodoros G. Tsokos |
| http://www.cs.bham.ac.uk/~txt |
| School of Computer Science, The University of Birmingham |
| Edgbaston, Birmingham, B15 2TT, United Kingdom |
| -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
| "The freedom of speech includes the freedom to shut up" |
| -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
| "Democracy: the freedom to say whatever one wants and |
| the capital to implement whatever it wants" |
--
- [Coq-Club] applying at the same time two hypothesis to solve a goal., Theodoros G. Tsokos
- Re: [Coq-Club] applying at the same time two hypothesis to solve a goal.,
Adam Chlipala
- Re: ?spam? Re: [Coq-Club] applying at the same time two hypothesis to solve a goal.,
Theodoros G. Tsokos
- Re: ?spam? Re: [Coq-Club] applying at the same time two hypothesis to solve a goal.,
Yves Bertot
- Re: [Coq-Club] applying at the same time two hypothesis to solve a goal., Theodoros G. Tsokos
- Re: ?spam? Re: [Coq-Club] applying at the same time two hypothesis to solve a goal.,
Yves Bertot
- Re: [Coq-Club] applying at the same time two hypothesis to solve a goal., Theodoros G. Tsokos
- Re: ?spam? Re: [Coq-Club] applying at the same time two hypothesis to solve a goal.,
Theodoros G. Tsokos
- Re: [Coq-Club] applying at the same time two hypothesis to solve a goal.,
Adam Chlipala
Archive powered by MhonArc 2.6.16.