lean4-htt/tests/lean/run/nofun1.lean
2024-10-17 01:27:41 +00:00

11 lines
316 B
Text

theorem Sum.inl_ne_inr' : inl a ≠ inr b := nofun
theorem Sum.inr_ne_inl' : inr b ≠ inl a := nofun
theorem Sum.inl_ne_inr'' : inl a ≠ inr b := by nofun
theorem Sum.inr_ne_inl'' : inr b ≠ inl a := by nofun
def f (a b : Bool) (_ : Sum.inr b ≠ Sum.inl a) : Nat := 0
example : f true true nofun = 0 := rfl