lean4-htt/tests/lean/run/show_term.lean
Scott Morrison 819a32a9eb chore: upstream show_term
add missing prelude
2024-02-29 17:34:15 +11:00

23 lines
548 B
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.

/-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott 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 (?fst, ?snd) -/
#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