fix(tests/lean): fix tests that print patterns

This commit is contained in:
Daniel Selsam 2015-12-07 11:51:44 -08:00 committed by Leonardo de Moura
parent 18f224c420
commit 0f76e33724
4 changed files with 9 additions and 1 deletions

View file

@ -2,13 +2,16 @@ bad_pattern.lean:9:33: error: invalid pattern hint, pattern hints must be applic
theorem tst₀ [forward] : ∀ (x : ), P x :=
sorry
(multi-)patterns:
?M_1 :
{P ?M_1}
theorem tst₁ [forward] : ∀ (x : ), (:P x:) :=
sorry
(multi-)patterns:
?M_1 :
{P ?M_1}
theorem tst₃ [forward] : ∀ (x : ), P (:id x:) :=
sorry
(multi-)patterns:
?M_1 :
{P ?M_1}
bad_pattern.lean:20:0: error: pattern inference failed for [forward] annotation, (solution: provide pattern hints using the notation '(: t :)' )

View file

@ -1,4 +1,5 @@
definition H [forward] : ∀ (a : A), (:P a:) → Exists (R a) :=
sorry
(multi-)patterns:
?M_1 : A
{P ?M_1}

View file

@ -1,13 +1,16 @@
definition foo₁ [forward] : ∀ (x : ), f x ∧ g x :=
sorry
(multi-)patterns:
?M_1 :
{f ?M_1}
{g ?M_1}
definition foo₂ [forward] : ∀ (x : ), (:f x:) ∧ g x :=
sorry
(multi-)patterns:
?M_1 :
{f ?M_1}
definition foo₃ [forward] : ∀ (x : ), (:f (id x):) ∧ g x :=
sorry
(multi-)patterns:
?M_1 :
{f ?M_1}

View file

@ -1,4 +1,5 @@
definition foo [forward] : ∀ (m n k : ), P (f m) → P (g n) → P (f k) → P k ∧ R (g m) (f n) ∧ P (g m) ∧ P (f n) :=
λ (m n k : ), sorry
(multi-)patterns:
{P ?M_1, R (g ?M_2) (f ?M_3)}
?M_1 : , ?M_2 : , ?M_3 :
{P ?M_3, R (g ?M_1) (f ?M_2)}