Motivation: `cases` and `induction` tactics use these names when the user does not provide them.
18 lines
1.6 KiB
Text
18 lines
1.6 KiB
Text
as_pattern.basic.equations._eqn_1 : basic list.nil = list.nil
|
||
as_pattern.basic.equations._eqn_2 : ∀ (_x : foo), basic [_x] = [_x]
|
||
as_pattern.basic.equations._eqn_3 : ∀ (hd hd_1 : foo) (tl : list foo), basic (hd :: hd_1 :: tl) = hd :: hd_1 :: tl
|
||
as_pattern.nested.equations._eqn_1 : nested list.nil = list.nil
|
||
as_pattern.nested.equations._eqn_2 : ∀ (tl : list foo), nested (foo.a :: tl) = foo.a :: tl
|
||
as_pattern.nested.equations._eqn_3 : ∀ (_x : list foo), nested (foo.b :: _x) = [foo.b]
|
||
as_pattern.nested.equations._eqn_4 : ∀ (tl : list foo), nested (foo.c :: tl) = foo.c :: tl
|
||
as_pattern.value.equations._eqn_1 : value none = none
|
||
as_pattern.value.equations._eqn_2 : value (some 2) = some 2
|
||
as_pattern.value.equations._eqn_3 : ∀ (val : ℕ), ¬val = 2 → value (some val) = some val
|
||
as_pattern.weird_but_ok.equations._eqn_1 : ∀ (z : ℕ), weird_but_ok z = z + z + z
|
||
as_pattern.lean:30:6: error: equation compiler error, equation #2 has not been used in the compilation, note that the left-hand-side of equation #1 is a variable
|
||
as_pattern.lean:31:6: error: equation compiler error, equation #3 has not been used in the compilation, note that the left-hand-side of equation #1 is a variable
|
||
as_pattern.lean:32:6: error: equation compiler error, equation #4 has not been used in the compilation, note that the left-hand-side of equation #1 is a variable
|
||
as_pattern.lean:35:4: error: invalid pattern, 'x' already appeared in this pattern
|
||
as_pattern.lean:36:4: error: invalid pattern, 'x' already appeared in this pattern
|
||
as_pattern.dependent.equations._eqn_1 : dependent foo.a bar.a = foo.a
|
||
as_pattern.dependent.equations._eqn_2 : dependent foo.b bar.b = foo.b
|