lean4-htt/tests/lean/as_pattern.lean.expected.out
Leonardo de Moura 6d96741010 feat(library): provide names for constructor arguments
Motivation: `cases` and `induction` tactics use these names when the
user does not provide them.
2017-12-04 16:25:16 -08:00

18 lines
1.6 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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