Per request on [zulip](https://leanprover.zulipchat.com/#narrow/channel/270676-lean4/topic/apply.3F.20using.20tombstones/near/482895588).
23 lines
540 B
Text
23 lines
540 B
Text
/-
|
||
Copyright (c) 2021 Kim Morrison. All rights reserved.
|
||
Released under Apache 2.0 license as described in the file LICENSE.
|
||
Authors: Kim Morrison
|
||
-/
|
||
|
||
/-- info: Try this: exact (n, 37) -/
|
||
#guard_msgs in example (n : Nat) : Nat × Nat := by
|
||
show_term
|
||
constructor
|
||
exact n
|
||
exact 37
|
||
|
||
/-- info: Try this: refine (?_, ?_) -/
|
||
#guard_msgs in example : Nat × Nat := by
|
||
show_term constructor
|
||
repeat exact 42
|
||
|
||
/-- info: Try this: fun {X} => X -/
|
||
#guard_msgs in example : {_a : Nat} → Nat :=
|
||
show_term by
|
||
intro X
|
||
exact X
|