We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 342bb8b commit 1a2fa3cCopy full SHA for 1a2fa3c
tests/lean/run/matchOverlapInaccesible.lean
@@ -36,7 +36,10 @@ inductive MyNat : Type where
36
| zero : MyNat
37
| succ : MyNat -> MyNat
38
39
-def MyNat.add : MyNat -> MyNat -> MyNat := sorry
+def MyNat.add : MyNat -> MyNat -> MyNat
40
+ | zero, n => n
41
+ | succ m, n => succ (add m n)
42
+
43
instance : Add MyNat where
44
add := MyNat.add
45
@@ -53,7 +56,7 @@ def parity (n : MyNat) : Parity n := sorry
53
56
/--
54
57
error: Tactic `cases` failed with a nested error:
55
58
Dependent elimination failed: Failed to solve equation
- zero = sorry n✝ n✝
59
+ zero = n✝.add n✝
60
at case `Parity.even` after processing
61
zero, _
62
the dependent pattern matcher can solve the following kinds of equations
0 commit comments