From 34ba48a885c91ea895cbba7ba5a53b1ec9de5db8 Mon Sep 17 00:00:00 2001 From: herbelin Date: Tue, 13 Feb 2007 18:47:49 +0000 Subject: Réactivation du filtrage d'ordre 2 dans ltac qui avait cessé de fonctionner entre la V7.3 et la V8.0 (notation : "@ ?meta id1 ... idn") git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9644 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/success/ltac.v | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test-suite') diff --git a/test-suite/success/ltac.v b/test-suite/success/ltac.v index 3f25f70354..05a6a70f39 100644 --- a/test-suite/success/ltac.v +++ b/test-suite/success/ltac.v @@ -175,3 +175,16 @@ Abort. Goal True. match None with @None => exact I end. Abort. + +(* Check second-order pattern unification *) + +Ltac to_exist := + match goal with + |- forall x y, @?P x y => + let Q := eval lazy beta in (exists x, forall y, P x y) in + assert (Q->Q) + end. + +Goal forall x y : nat, x = y. +to_exist. exact (fun H => H). +Abort. -- cgit v1.2.3