lean2/tests/lean/simplifier9.lean
2015-11-16 11:01:53 -08:00

30 lines
1 KiB
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.

-- Rewriting with (tmp)-local hypotheses
import logic.quantifiers
namespace tst
attribute congr_forall [congr]
attribute congr_imp [congr]
end tst
universe l
constants (T : Type.{l}) (P Q : T → Prop)
set_option simplify.max_steps 50000
constants (x y : T)
-- TODO(Daniel): the following is looping...
#simplify iff tst 0 x = y → x = y
#simplify iff tst 0 T → x = y → x = y
#simplify iff tst 0 ∀ z : T, x = z → x = y
#simplify iff tst 0 ∀ z : T, z = x → x = z
#simplify iff tst 0 ∀ (z w : T), x = y → x = y
#simplify iff tst 0 ∀ (z w : T), x = y → P x
#simplify iff tst 0 ∀ (H : ∀ x, P x ↔ Q x), P x
#simplify iff tst 0 ∀ (p : Prop) (H : ∀ x, P x ↔ Q x) (q : Prop), P x
#simplify iff tst 0 ∀ (p : Prop) (H : ∀ x, P x ↔ Q x), p P x
#simplify iff tst 0 (∀ (x : T), P x ↔ Q x) → P x
#simplify iff tst 0 (∀ (x : T), P x ↔ Q x) → P x
#simplify iff tst 0 ∀ (x y : T), (∀ (x : T), P x ↔ Q x) → P x
#simplify iff tst 0 ∀ (x z : T), x = z → (∀ (w : T), P w ↔ Q w) → P x