lean2/doc/demo/nnf.lean
Leonardo de Moura 9bdf076342 doc(demo): add files for making demos
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-28 09:59:16 -08:00

17 lines
509 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

rewrite_set NNF
add_rewrite not_not_eq not_true not_false not_neq not_and not_or not_iff not_implies not_forall
not_exists forall_and_distribute exists_and_distributer exists_and_distributel : NNF
variable p : Nat → Nat → Bool
variable f : Nat → Nat
variable g : Nat → Nat → Nat
(*
local t1 = parse_lean('¬ ∀ x, (∃ y, p x y p (f x) (f y)) f 0 = 1')
local t2, pr = simplify(t1, "NNF")
print(t1)
print("====>")
print(t2)
-- print(pr)
get_environment():type_check(pr)
*)