lean4-htt/tests/lean/run/def7.lean
Leonardo de Moura f0f9880ece refactor(library/equations_compiler/elim_match,library/tactic/cases_tactic):
new design for elim_match

I still need to fix lemma generation, and refactor induction/subst tactics
2016-08-28 13:15:10 -07:00

18 lines
368 B
Text

set_option new_elaborator true
definition f : bool → bool → nat
| _ _ := 10
example : f tt tt = 10 :=
rfl
definition g : bool → bool → bool → nat
| tt _ tt := 1
| _ ff ff := 2
| _ _ _ := 3
example : g tt tt tt = 1 := rfl
example : g tt ff tt = 1 := rfl
example : g tt ff ff = 2 := rfl
example : g ff ff ff = 2 := rfl
example : g ff tt tt = 3 := rfl