lean2/tests/lean/simp10.lean
Leonardo de Moura 1ccfac5873 feat(library/simplifier): conditional rewriting
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-20 21:15:46 -08:00

15 lines
No EOL
289 B
Text

variable f : Nat → Nat
variable g : Nat → Nat
variable a : Nat
axiom fid (x : Nat) : g x ≠ 0 → f x = x
add_rewrite fid
axiom gcnst (x : Nat) : g x = 1
add_rewrite gcnst
(*
local t = parse_lean("f a")
local r, pr = simplify(t)
print(r)
print(pr)
get_environment():type_check(pr)
*)