lean4-htt/tests/lean/973.lean

12 lines
286 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.

universe u
variable {α : Sort u} {p : α → Prop}
@[simp]
theorem Subtype.coe_mk (x : α) (h : p x) : (Subtype.mk x h).val = x :=
rfl
example (x : Nat) (h : x > 0) : (Subtype.mk x h).val = x := by
simp
set_option trace.Meta.Tactic.simp.discharge true
example : True := by simp