2015-11-07 05:02:04 +00:00
|
|
|
|
-- Rewriting with (tmp)-local hypotheses
|
|
|
|
|
import logic.quantifiers
|
|
|
|
|
|
2015-11-21 01:03:17 +00:00
|
|
|
|
attribute imp_congr [congr]
|
|
|
|
|
attribute forall_congr [congr]
|
2015-11-07 21:39:31 +00:00
|
|
|
|
|
2015-11-07 05:02:04 +00:00
|
|
|
|
universe l
|
2015-11-16 19:01:53 +00:00
|
|
|
|
constants (T : Type.{l}) (P Q : T → Prop)
|
2015-11-07 05:02:04 +00:00
|
|
|
|
|
|
|
|
|
set_option simplify.max_steps 50000
|
|
|
|
|
constants (x y : T)
|
2015-11-16 19:01:53 +00:00
|
|
|
|
|
2015-11-17 00:00:00 +00:00
|
|
|
|
#simplify iff env 0 x = y → x = y
|
|
|
|
|
#simplify iff env 0 T → x = y → x = y
|
|
|
|
|
#simplify iff env 0 ∀ z : T, x = z → x = y
|
|
|
|
|
#simplify iff env 0 ∀ z : T, z = x → x = z
|
|
|
|
|
#simplify iff env 0 ∀ (z w : T), x = y → x = y
|
|
|
|
|
#simplify iff env 0 ∀ (z w : T), x = y → P x
|
2015-11-16 19:01:53 +00:00
|
|
|
|
|
2015-11-17 00:00:00 +00:00
|
|
|
|
#simplify iff env 0 ∀ (H : ∀ x, P x ↔ Q x), P x
|
|
|
|
|
#simplify iff env 0 ∀ (p : Prop) (H : ∀ x, P x ↔ Q x) (q : Prop), P x
|
2015-11-16 19:01:53 +00:00
|
|
|
|
|
2015-11-17 00:00:00 +00:00
|
|
|
|
#simplify iff env 0 ∀ (p : Prop) (H : ∀ x, P x ↔ Q x), p ∨ P x
|
|
|
|
|
#simplify iff env 0 (∀ (x : T), P x ↔ Q x) → P x
|
|
|
|
|
#simplify iff env 0 ∀ (x y : T), (∀ (x : T), P x ↔ Q x) → P x
|
|
|
|
|
|
2015-11-17 00:22:43 +00:00
|
|
|
|
#simplify iff env 0 ∀ (x z : T), x = z → P x
|
|
|
|
|
#simplify iff env 0 ∀ (x y z : T), x = y → y = z → P x
|
2015-11-17 00:00:00 +00:00
|
|
|
|
#simplify iff env 0 ∀ (x z : T), x = z → (∀ (w : T), P w ↔ Q w) → P x
|