lean4-htt/tests/lean/run/def_ite1.lean
2016-09-20 08:32:37 -07:00

10 lines
192 B
Text

definition f : nat → nat → nat
| 100 2 := 0
| _ 4 := 1
| _ _ := 2
example : f 100 2 = 0 := rfl
example : f 9 4 = 1 := rfl
example : f 8 4 = 1 := rfl
example : f 6 3 = 2 := rfl