lean4-htt/tests/lean/run/simpCondLemma.lean
Leonardo de Moura 9528c1abd7 chore: add basic simp lemmas
TODO: consistent naming convention for theorems.

cc @Kha
2021-02-15 11:32:19 -08:00

4 lines
140 B
Text

@[simp] axiom divSelf (x : Nat) : x ≠ 0 → x/x = 1
theorem ex (x : Nat) (h : x ≠ 0) : (if x/x = 1 then 0 else 1) = 0 := by
simp [h]