fix(tests/lean): fix tests that print patterns
This commit is contained in:
parent
18f224c420
commit
0f76e33724
4 changed files with 9 additions and 1 deletions
|
@ -2,13 +2,16 @@ bad_pattern.lean:9:33: error: invalid pattern hint, pattern hints must be applic
|
||||||
theorem tst₀ [forward] : ∀ (x : ℕ), P x :=
|
theorem tst₀ [forward] : ∀ (x : ℕ), P x :=
|
||||||
sorry
|
sorry
|
||||||
(multi-)patterns:
|
(multi-)patterns:
|
||||||
|
?M_1 : ℕ
|
||||||
{P ?M_1}
|
{P ?M_1}
|
||||||
theorem tst₁ [forward] : ∀ (x : ℕ), (:P x:) :=
|
theorem tst₁ [forward] : ∀ (x : ℕ), (:P x:) :=
|
||||||
sorry
|
sorry
|
||||||
(multi-)patterns:
|
(multi-)patterns:
|
||||||
|
?M_1 : ℕ
|
||||||
{P ?M_1}
|
{P ?M_1}
|
||||||
theorem tst₃ [forward] : ∀ (x : ℕ), P (:id x:) :=
|
theorem tst₃ [forward] : ∀ (x : ℕ), P (:id x:) :=
|
||||||
sorry
|
sorry
|
||||||
(multi-)patterns:
|
(multi-)patterns:
|
||||||
|
?M_1 : ℕ
|
||||||
{P ?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 :)' )
|
bad_pattern.lean:20:0: error: pattern inference failed for [forward] annotation, (solution: provide pattern hints using the notation '(: t :)' )
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
definition H [forward] : ∀ (a : A), (:P a:) → Exists (R a) :=
|
definition H [forward] : ∀ (a : A), (:P a:) → Exists (R a) :=
|
||||||
sorry
|
sorry
|
||||||
(multi-)patterns:
|
(multi-)patterns:
|
||||||
|
?M_1 : A
|
||||||
{P ?M_1}
|
{P ?M_1}
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
definition foo₁ [forward] : ∀ (x : ℕ), f x ∧ g x :=
|
definition foo₁ [forward] : ∀ (x : ℕ), f x ∧ g x :=
|
||||||
sorry
|
sorry
|
||||||
(multi-)patterns:
|
(multi-)patterns:
|
||||||
|
?M_1 : ℕ
|
||||||
{f ?M_1}
|
{f ?M_1}
|
||||||
{g ?M_1}
|
{g ?M_1}
|
||||||
definition foo₂ [forward] : ∀ (x : ℕ), (:f x:) ∧ g x :=
|
definition foo₂ [forward] : ∀ (x : ℕ), (:f x:) ∧ g x :=
|
||||||
sorry
|
sorry
|
||||||
(multi-)patterns:
|
(multi-)patterns:
|
||||||
|
?M_1 : ℕ
|
||||||
{f ?M_1}
|
{f ?M_1}
|
||||||
definition foo₃ [forward] : ∀ (x : ℕ), (:f (id x):) ∧ g x :=
|
definition foo₃ [forward] : ∀ (x : ℕ), (:f (id x):) ∧ g x :=
|
||||||
sorry
|
sorry
|
||||||
(multi-)patterns:
|
(multi-)patterns:
|
||||||
|
?M_1 : ℕ
|
||||||
{f ?M_1}
|
{f ?M_1}
|
||||||
|
|
|
@ -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) :=
|
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
|
λ (m n k : ℕ), sorry
|
||||||
(multi-)patterns:
|
(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)}
|
||||||
|
|
Loading…
Reference in a new issue