lean4-htt/tests/lean/run/nofun1.lean
Leonardo de Moura 9c160b8030 feat: nofun tactic and term
closes #3279
2024-02-09 15:56:57 +11:00

11 lines
312 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