lean4-htt/tests/lean/interactive/match.lean
2021-05-06 20:44:36 -07:00

18 lines
329 B
Text

structure S where
fn1 : Nat
value : Bool
name : String
def f (s : S) : Nat := by
refine s.
--^ textDocument/completion
def g (s : S) : Nat := by
match s.
--^ textDocument/completion
theorem ex (x : Nat) : 0 + x = x := by
match x with
--^ $/lean/plainGoal
| 0 => done
--^ $/lean/plainGoal