coq-club AT inria.fr
Subject: The Coq mailing list
List archive
[Coq-Club] Doubt about an error message in a definition using the refine tactic
Chronological Thread
- From: Rodrigo Ribeiro <rodrigogribeiro AT gmail.com>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Doubt about an error message in a definition using the refine tactic
- Date: Thu, 26 Sep 2013 11:03:02 -0300
Hello to all!
I'm having some trobules in understand an error message given by Coq in a rather simple definition using refine tactic. The complete code is:Require Import List Omega Arith_base.
Definition max_list : forall (l : list nat), {n | forall n', In n' l -> n > n'}.
refine (fix max_list (l : list nat) : {n | forall n', In n' l -> n > n'} :=
match l with
| nil => exist _ 0 _
| x :: l' =>
match max_list l' with
exist x' _ =>
match le_gt_dec x x' with
| left _ => exist _ (S x') _
| right _ => exist _ (S x) _
end
end
end) ; simpl in * ; intuition ;
try (match goal with
| [H : context[In _ _ -> _],
H1 : In _ _ |- _] => apply H in H1 ; try omega
end).
Defined.
- [Coq-Club] Doubt about an error message in a definition using the refine tactic, Rodrigo Ribeiro, 09/26/2013
- Re: [Coq-Club] Doubt about an error message in a definition using the refine tactic, Pierre Boutillier, 09/26/2013
- Re: [Coq-Club] Doubt about an error message in a definition using the refine tactic, Jason Gross, 09/26/2013
Archive powered by MHonArc 2.6.18.