X.IsExchange Y means that Y is obtained from X by adding an element of Y \ X
and then removing an element of X \ Y.
- insert_insert' {α : Type u_1} (X : Set α) (e f : α) (heX : e ∉ X) (hfX : f ∉ X) (hef : e ≠ f) : (insert e X).IsExchange (insert f X)
Instances For
theorem Set.isExchange_insert_insert {α : Type u_1} {X : Set α} {e f : α} (heX : e ∉ X) (hfX : f ∉ X) (hef : e ≠ f) :
(insert e X).IsExchange (insert f X)
theorem Set.isExchange_sdiff_insert {α : Type u_1} {X : Set α} {e f : α} (heX : e ∈ X) (hfX : f ∉ X) :
X.IsExchange (insert f (X \ {e}))
theorem Set.isExchange_insert_sdiff {α : Type u_1} {X : Set α} {e f : α} (heX : e ∈ X) (hfX : f ∉ X) :
X.IsExchange (insert f X \ {e})
theorem Set.IsExchange.union_union {α : Type u_1} {X Y P : Set α} (hXY : X.IsExchange Y) (hPX : Disjoint P X) (hPY : Disjoint P Y) :
(X ∪ P).IsExchange (Y ∪ P)
theorem Set.IsExchange.insert_insert {α : Type u_1} {X Y : Set α} {e : α} (hXY : X.IsExchange Y) (heX : e ∉ X) (heY : e ∉ Y) :
(insert e X).IsExchange (insert e Y)
theorem Set.IsExchange.sdiff_sdiff {α : Type u_1} {X Y P : Set α} (hXY : X.IsExchange Y) (hPX : P ⊆ X) (hPY : P ⊆ Y) :
(X \ P).IsExchange (Y \ P)
theorem Set.IsExchange.sdiff_right {α : Type u_1} {X Y S : Set α} (h : X.IsExchange Y) (hXS : X ⊆ S) (hYS : Y ⊆ S) :
(S \ X).IsExchange (S \ Y)
theorem Set.isExchange_sdiff_right_comm {α : Type u_1} {X Y S : Set α} (hXS : X ⊆ S) (hYS : Y ⊆ S) :
theorem Set.isExchange_insert_insert_iff {α : Type u_1} {X Y : Set α} {e : α} (heX : e ∉ X) (heY : e ∉ Y) :
X.FinDiff Y means that Y is obtained from X by inserting and then removing k elements,
for some finite k.
Equations
Instances For
theorem Set.FinDiff.trans_exchange {α : Type u_1} {X Y Z : Set α} (hXY : X.FinDiff Y) (hYZ : Y.IsExchange Z) :
X.FinDiff Z
theorem Set.IsExchange.trans_finDiff {α : Type u_1} {X Y Z : Set α} (hXY : X.IsExchange Y) (hYZ : Y.FinDiff Z) :
X.FinDiff Z
theorem Set.FinDiff.induction {α : Type u_1} {motive : (X Y : Set α) → X.FinDiff Y → Prop} (refl : ∀ (X : Set α), motive X X ⋯) (exchange :
∀ (X Y Z : Set α) (hXY : X.FinDiff Y) (hYZ : Y.IsExchange Z), Y ⊆ X ∪ Z → X ∩ Z ⊆ Y → motive X Y hXY → motive X Z ⋯) {X Y : Set α} (hXY : X.FinDiff Y) :
motive X Y hXY
theorem Set.FinDiff.induction_head {α : Type u_1} {motive : (X Y : Set α) → X.FinDiff Y → Prop} (refl : ∀ (X : Set α), motive X X ⋯) (exchange :
∀ (X Y Z : Set α) (hXY : X.IsExchange Y) (hYZ : Y.FinDiff Z), Y ⊆ X ∪ Z → X ∩ Z ⊆ Y → motive Y Z hYZ → motive X Z ⋯) {X Y : Set α} (hXY : X.FinDiff Y) :
motive X Y hXY