Mercurial > cpdt > repo
diff src/Tactics.v @ 88:cde1351d18bb
Get Coinductive compiling again
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 07 Oct 2008 10:43:54 -0400 |
parents | fd505bcb5632 |
children | 8c7d9b82a4a4 |
line wrap: on
line diff
--- a/src/Tactics.v Mon Oct 06 14:41:13 2008 -0400 +++ b/src/Tactics.v Tue Oct 07 10:43:54 2008 -0400 @@ -111,17 +111,16 @@ | [ H : done _ |- _ ] => clear H end. -Ltac crush'' tryLemmas lemmas invOne := +Ltac crush' lemmas invOne := let sintuition := simpl in *; intuition; try subst; repeat (simplHyp invOne; intuition; try subst); try congruence in (sintuition; rewriter; - match tryLemmas with - | true => repeat ((app ltac:(fun L => inster L L) lemmas || appHyps ltac:(fun L => inster L L)); + match lemmas with + | false => idtac + | _ => repeat ((app ltac:(fun L => inster L L) lemmas || appHyps ltac:(fun L => inster L L)); repeat (simplHyp invOne; intuition)); un_done - | _ => idtac end; sintuition; try omega; try (elimtype False; omega)). -Ltac crush := crush'' false tt fail. -Ltac crush' := crush'' true. +Ltac crush := crush' false fail. Theorem dep_destruct : forall (T : Type) (T' : T -> Type) x (v : T' x) (P : T' x -> Prop), (forall x' (v' : T' x') (Heq : x' = x), P (match Heq in (_ = x) return (T' x) with