blob: 7d1d7af8465a769f385b7f923019d7ee13b60dd2 [file]
attribute [simp] eq_iff_true_of_subsingleton
example : True := trivial
structure Func' (α : Sort _) (β : Sort _) where
(toFun : α → β)
def r : Func' α α := ⟨id⟩
@[simp] theorem r_toFun {α : Sort u_1} (a : α) : Func'.toFun r a = id a := rfl
example (x y : α) (h : x = y) : r.toFun x = y := by simp <;> rw [h]
theorem noissue (x y : α) (h : x = y) : r.toFun x = y := by simp <;> rw [h]