The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V22. Affine, Euclidean and convex geometry

Mathlib.Analysis.Convex.Side

144 declarations and 12 deprecated aliases. Mathlib docs · Source

theorem AffineSubspace.WOppSide.congr_simp E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  (s s_1 : AffineSubspace R P),
  s = s_1 → ∀ (x x_1 : P), x = x_1 → ∀ (y y_1 : P), y = y_1 → s.WOppSide x y = s_1.WOppSide x_1 y_1

theorem AffineSubspace.WSameSide.congr_simp E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  (s s_1 : AffineSubspace R P),
  s = s_1 → ∀ (x x_1 : P), x = x_1 → ∀ (y y_1 : P), y = y_1 → s.WSameSide x y = s_1.WSameSide x_1 y_1

theorem AffineSubspace.SSameSide.congr_simp E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  (s s_1 : AffineSubspace R P),
  s = s_1 → ∀ (x x_1 : P), x = x_1 → ∀ (y y_1 : P), y = y_1 → s.SSameSide x y = s_1.SSameSide x_1 y_1

theorem AffineSubspace.SOppSide.congr_simp E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  (s s_1 : AffineSubspace R P),
  s = s_1 → ∀ (x x_1 : P), x = x_1 → ∀ (y y_1 : P), y = y_1 → s.SOppSide x y = s_1.SOppSide x_1 y_1

def AffineSubspace.WSameSide E1 #

{R : Type u_1} →
  {V : Type u_2} →
    {P : Type u_4} →
      [inst : CommRing R] →
        [inst_1 : PartialOrder R] →
          [IsStrictOrderedRing R] →
            [inst_3 : AddCommGroup V] →
              [inst_4 : Module R V] → [inst_5 : AddTorsor V P] → AffineSubspace R P → P → P → Prop

The points x and y are weakly on the same side of s.

def AffineSubspace.SSameSide E1 #

{R : Type u_1} →
  {V : Type u_2} →
    {P : Type u_4} →
      [inst : CommRing R] →
        [inst_1 : PartialOrder R] →
          [IsStrictOrderedRing R] →
            [inst_3 : AddCommGroup V] →
              [inst_4 : Module R V] → [inst_5 : AddTorsor V P] → AffineSubspace R P → P → P → Prop

The points x and y are strictly on the same side of s.

def AffineSubspace.WOppSide E1 #

{R : Type u_1} →
  {V : Type u_2} →
    {P : Type u_4} →
      [inst : CommRing R] →
        [inst_1 : PartialOrder R] →
          [IsStrictOrderedRing R] →
            [inst_3 : AddCommGroup V] →
              [inst_4 : Module R V] → [inst_5 : AddTorsor V P] → AffineSubspace R P → P → P → Prop

The points x and y are weakly on opposite sides of s.

def AffineSubspace.SOppSide E1 #

{R : Type u_1} →
  {V : Type u_2} →
    {P : Type u_4} →
      [inst : CommRing R] →
        [inst_1 : PartialOrder R] →
          [IsStrictOrderedRing R] →
            [inst_3 : AddCommGroup V] →
              [inst_4 : Module R V] → [inst_5 : AddTorsor V P] → AffineSubspace R P → P → P → Prop

The points x and y are strictly on opposite sides of s.

theorem AffineSubspace.WSameSide.map E1 #

∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : CommRing R]
  [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V]
  [inst_5 : AddTorsor V P] [inst_6 : AddCommGroup V'] [inst_7 : Module R V'] [inst_8 : AddTorsor V' P']
  {s : AffineSubspace R P} {x y : P},
  s.WSameSide x y → ∀ (f : P →ᵃ[R] P'), (AffineSubspace.map f s).WSameSide (f x) (f y)

theorem Function.Injective.wSameSide_map_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : CommRing R]
  [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V]
  [inst_5 : AddTorsor V P] [inst_6 : AddCommGroup V'] [inst_7 : Module R V'] [inst_8 : AddTorsor V' P']
  {s : AffineSubspace R P} {x y : P} {f : P →ᵃ[R] P'},
  Function.Injective ⇑f → ((AffineSubspace.map f s).WSameSide (f x) (f y) ↔ s.WSameSide x y)

theorem Function.Injective.sSameSide_map_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : CommRing R]
  [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V]
  [inst_5 : AddTorsor V P] [inst_6 : AddCommGroup V'] [inst_7 : Module R V'] [inst_8 : AddTorsor V' P']
  {s : AffineSubspace R P} {x y : P} {f : P →ᵃ[R] P'},
  Function.Injective ⇑f → ((AffineSubspace.map f s).SSameSide (f x) (f y) ↔ s.SSameSide x y)

theorem AffineEquiv.wSameSide_map_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : CommRing R]
  [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V]
  [inst_5 : AddTorsor V P] [inst_6 : AddCommGroup V'] [inst_7 : Module R V'] [inst_8 : AddTorsor V' P']
  {s : AffineSubspace R P} {x y : P} (f : P ≃ᵃ[R] P'),
  (AffineSubspace.map (↑f) s).WSameSide (f x) (f y) ↔ s.WSameSide x y

theorem AffineEquiv.sSameSide_map_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : CommRing R]
  [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V]
  [inst_5 : AddTorsor V P] [inst_6 : AddCommGroup V'] [inst_7 : Module R V'] [inst_8 : AddTorsor V' P']
  {s : AffineSubspace R P} {x y : P} (f : P ≃ᵃ[R] P'),
  (AffineSubspace.map (↑f) s).SSameSide (f x) (f y) ↔ s.SSameSide x y

theorem AffineSubspace.WOppSide.map E1 #

∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : CommRing R]
  [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V]
  [inst_5 : AddTorsor V P] [inst_6 : AddCommGroup V'] [inst_7 : Module R V'] [inst_8 : AddTorsor V' P']
  {s : AffineSubspace R P} {x y : P}, s.WOppSide x y → ∀ (f : P →ᵃ[R] P'), (AffineSubspace.map f s).WOppSide (f x) (f y)

theorem Function.Injective.wOppSide_map_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : CommRing R]
  [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V]
  [inst_5 : AddTorsor V P] [inst_6 : AddCommGroup V'] [inst_7 : Module R V'] [inst_8 : AddTorsor V' P']
  {s : AffineSubspace R P} {x y : P} {f : P →ᵃ[R] P'},
  Function.Injective ⇑f → ((AffineSubspace.map f s).WOppSide (f x) (f y) ↔ s.WOppSide x y)

theorem Function.Injective.sOppSide_map_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : CommRing R]
  [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V]
  [inst_5 : AddTorsor V P] [inst_6 : AddCommGroup V'] [inst_7 : Module R V'] [inst_8 : AddTorsor V' P']
  {s : AffineSubspace R P} {x y : P} {f : P →ᵃ[R] P'},
  Function.Injective ⇑f → ((AffineSubspace.map f s).SOppSide (f x) (f y) ↔ s.SOppSide x y)

theorem AffineEquiv.wOppSide_map_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : CommRing R]
  [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V]
  [inst_5 : AddTorsor V P] [inst_6 : AddCommGroup V'] [inst_7 : Module R V'] [inst_8 : AddTorsor V' P']
  {s : AffineSubspace R P} {x y : P} (f : P ≃ᵃ[R] P'), (AffineSubspace.map (↑f) s).WOppSide (f x) (f y) ↔ s.WOppSide x y

theorem AffineEquiv.sOppSide_map_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : CommRing R]
  [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V]
  [inst_5 : AddTorsor V P] [inst_6 : AddCommGroup V'] [inst_7 : Module R V'] [inst_8 : AddTorsor V' P']
  {s : AffineSubspace R P} {x y : P} (f : P ≃ᵃ[R] P'), (AffineSubspace.map (↑f) s).SOppSide (f x) (f y) ↔ s.SOppSide x y

theorem AffineSubspace.WSameSide.nonempty E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.WSameSide x y → (↑s).Nonempty

theorem AffineSubspace.SSameSide.nonempty E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SSameSide x y → (↑s).Nonempty

theorem AffineSubspace.WOppSide.nonempty E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.WOppSide x y → (↑s).Nonempty

theorem AffineSubspace.SOppSide.nonempty E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SOppSide x y → (↑s).Nonempty

theorem AffineSubspace.SSameSide.wSameSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SSameSide x y → s.WSameSide x y

theorem AffineSubspace.SSameSide.left_notMem E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SSameSide x y → x ∉ s

theorem AffineSubspace.SSameSide.right_notMem E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SSameSide x y → y ∉ s

theorem AffineSubspace.SOppSide.wOppSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SOppSide x y → s.WOppSide x y

theorem AffineSubspace.SOppSide.left_notMem E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SOppSide x y → x ∉ s

theorem AffineSubspace.SOppSide.right_notMem E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SOppSide x y → y ∉ s

theorem AffineSubspace.wSameSide_comm E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.WSameSide x y ↔ s.WSameSide y x

theorem AffineSubspace.WSameSide.symm E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.WSameSide x y → s.WSameSide y x

Alias of the forward direction of AffineSubspace.wSameSide_comm.

theorem AffineSubspace.sSameSide_comm E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SSameSide x y ↔ s.SSameSide y x

theorem AffineSubspace.SSameSide.symm E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SSameSide x y → s.SSameSide y x

Alias of the forward direction of AffineSubspace.sSameSide_comm.

theorem AffineSubspace.wOppSide_comm E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.WOppSide x y ↔ s.WOppSide y x

theorem AffineSubspace.WOppSide.symm E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.WOppSide x y → s.WOppSide y x

Alias of the forward direction of AffineSubspace.wOppSide_comm.

theorem AffineSubspace.sOppSide_comm E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SOppSide x y ↔ s.SOppSide y x

theorem AffineSubspace.SOppSide.symm E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SOppSide x y → s.SOppSide y x

Alias of the forward direction of AffineSubspace.sOppSide_comm.

theorem AffineSubspace.not_wSameSide_bot E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] (x y : P),
  ¬⊥.WSameSide x y

theorem AffineSubspace.not_sSameSide_bot E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] (x y : P),
  ¬⊥.SSameSide x y

theorem AffineSubspace.not_wOppSide_bot E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] (x y : P),
  ¬⊥.WOppSide x y

theorem AffineSubspace.not_sOppSide_bot E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] (x y : P),
  ¬⊥.SOppSide x y

theorem AffineSubspace.wSameSide_self_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x : P}, s.WSameSide x x ↔ (↑s).Nonempty

theorem AffineSubspace.sSameSide_self_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x : P}, s.SSameSide x x ↔ (↑s).Nonempty ∧ x ∉ s

theorem AffineSubspace.wSameSide_of_left_mem E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x : P} (y : P), x ∈ s → s.WSameSide x y

theorem AffineSubspace.wSameSide_of_right_mem E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} (x : P) {y : P}, y ∈ s → s.WSameSide x y

theorem AffineSubspace.wOppSide_of_left_mem E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x : P} (y : P), x ∈ s → s.WOppSide x y

theorem AffineSubspace.wOppSide_of_right_mem E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} (x : P) {y : P}, y ∈ s → s.WOppSide x y

theorem AffineSubspace.wSameSide_vadd_left_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P} {v : V}, v ∈ s.direction → (s.WSameSide (v +ᵥ x) y ↔ s.WSameSide x y)

theorem AffineSubspace.wSameSide_vadd_right_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P} {v : V}, v ∈ s.direction → (s.WSameSide x (v +ᵥ y) ↔ s.WSameSide x y)

theorem AffineSubspace.sSameSide_vadd_left_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P} {v : V}, v ∈ s.direction → (s.SSameSide (v +ᵥ x) y ↔ s.SSameSide x y)

theorem AffineSubspace.sSameSide_vadd_right_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P} {v : V}, v ∈ s.direction → (s.SSameSide x (v +ᵥ y) ↔ s.SSameSide x y)

theorem AffineSubspace.wOppSide_vadd_left_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P} {v : V}, v ∈ s.direction → (s.WOppSide (v +ᵥ x) y ↔ s.WOppSide x y)

theorem AffineSubspace.wOppSide_vadd_right_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P} {v : V}, v ∈ s.direction → (s.WOppSide x (v +ᵥ y) ↔ s.WOppSide x y)

theorem AffineSubspace.sOppSide_vadd_left_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P} {v : V}, v ∈ s.direction → (s.SOppSide (v +ᵥ x) y ↔ s.SOppSide x y)

theorem AffineSubspace.sOppSide_vadd_right_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P} {v : V}, v ∈ s.direction → (s.SOppSide x (v +ᵥ y) ↔ s.SOppSide x y)

theorem AffineSubspace.wSameSide_smul_vsub_vadd_left E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {p₁ p₂ : P} (x : P), p₁ ∈ s → p₂ ∈ s → ∀ {t : R}, 0 ≤ t → s.WSameSide (t • (x -ᵥ p₁) +ᵥ p₂) x

theorem AffineSubspace.wSameSide_smul_vsub_vadd_right E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {p₁ p₂ : P} (x : P), p₁ ∈ s → p₂ ∈ s → ∀ {t : R}, 0 ≤ t → s.WSameSide x (t • (x -ᵥ p₁) +ᵥ p₂)

theorem AffineSubspace.wSameSide_lineMap_left E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x : P} (y : P), x ∈ s → ∀ {t : R}, 0 ≤ t → s.WSameSide ((AffineMap.lineMap x y) t) y

theorem AffineSubspace.wSameSide_lineMap_right E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x : P} (y : P), x ∈ s → ∀ {t : R}, 0 ≤ t → s.WSameSide y ((AffineMap.lineMap x y) t)

theorem AffineSubspace.wOppSide_smul_vsub_vadd_left E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {p₁ p₂ : P} (x : P), p₁ ∈ s → p₂ ∈ s → ∀ {t : R}, t ≤ 0 → s.WOppSide (t • (x -ᵥ p₁) +ᵥ p₂) x

theorem AffineSubspace.wOppSide_smul_vsub_vadd_right E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {p₁ p₂ : P} (x : P), p₁ ∈ s → p₂ ∈ s → ∀ {t : R}, t ≤ 0 → s.WOppSide x (t • (x -ᵥ p₁) +ᵥ p₂)

theorem AffineSubspace.wOppSide_lineMap_left E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x : P} (y : P), x ∈ s → ∀ {t : R}, t ≤ 0 → s.WOppSide ((AffineMap.lineMap x y) t) y

theorem AffineSubspace.wOppSide_lineMap_right E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x : P} (y : P), x ∈ s → ∀ {t : R}, t ≤ 0 → s.WOppSide y ((AffineMap.lineMap x y) t)

theorem Wbtw.wSameSide₂₃ E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, Wbtw R x y z → x ∈ s → s.WSameSide y z

theorem Wbtw.wSameSide₃₂ E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, Wbtw R x y z → x ∈ s → s.WSameSide z y

theorem Wbtw.wSameSide₁₂ E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, Wbtw R x y z → z ∈ s → s.WSameSide x y

theorem Wbtw.wSameSide₂₁ E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, Wbtw R x y z → z ∈ s → s.WSameSide y x

theorem Wbtw.wOppSide₁₃ E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, Wbtw R x y z → y ∈ s → s.WOppSide x z

theorem Wbtw.wOppSide₃₁ E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, Wbtw R x y z → y ∈ s → s.WOppSide z x

theorem AffineSubspace.wSameSide_of_vsub_eq_smul E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y p₁ p₂ : P} {m : V} {c₁ c₂ : R},
  p₁ ∈ s → p₂ ∈ s → x -ᵥ p₁ = c₁ • m → y -ᵥ p₂ = c₂ • m → 0 ≤ c₁ * c₂ → s.WSameSide x y

If x and y are displaced from points of s by multiples of a common vector whose coefficients have nonnegative product, they are weakly on the same side of s.

theorem AffineSubspace.wOppSide_of_vsub_eq_smul E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y p₁ p₂ : P} {m : V} {c₁ c₂ : R},
  p₁ ∈ s → p₂ ∈ s → x -ᵥ p₁ = c₁ • m → y -ᵥ p₂ = c₂ • m → c₁ * c₂ ≤ 0 → s.WOppSide x y

If x and y are displaced from points of s by multiples of a common vector whose coefficients have nonpositive product, they are weakly on opposite sides of s.

theorem AffineSubspace.sSameSide_of_vsub_eq_smul E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y p₁ p₂ : P} {m : V} {c₁ c₂ : R},
  p₁ ∈ s → p₂ ∈ s → x -ᵥ p₁ = c₁ • m → y -ᵥ p₂ = c₂ • m → 0 ≤ c₁ * c₂ → x ∉ s → y ∉ s → s.SSameSide x y

If x and y lie off s and are displaced from points of s by multiples of a common vector whose coefficients have nonnegative product, they are strictly on the same side of s.

theorem AffineSubspace.sOppSide_of_vsub_eq_smul E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : CommRing R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y p₁ p₂ : P} {m : V} {c₁ c₂ : R},
  p₁ ∈ s → p₂ ∈ s → x -ᵥ p₁ = c₁ • m → y -ᵥ p₂ = c₂ • m → c₁ * c₂ ≤ 0 → x ∉ s → y ∉ s → s.SOppSide x y

If x and y lie off s and are displaced from points of s by multiples of a common vector whose coefficients have nonpositive product, they are strictly on opposite sides of s.

theorem AffineSubspace.wOppSide_self_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x : P}, s.WOppSide x x ↔ x ∈ s

theorem AffineSubspace.not_sOppSide_self E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  (s : AffineSubspace R P) (x : P), ¬s.SOppSide x x

theorem AffineSubspace.wSameSide_iff_exists_left E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y p₁ : P}, p₁ ∈ s → (s.WSameSide x y ↔ x ∈ s ∨ ∃ p₂ ∈ s, SameRay R (x -ᵥ p₁) (y -ᵥ p₂))

theorem AffineSubspace.wSameSide_iff_exists_right E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y p₂ : P}, p₂ ∈ s → (s.WSameSide x y ↔ y ∈ s ∨ ∃ p₁ ∈ s, SameRay R (x -ᵥ p₁) (y -ᵥ p₂))

theorem AffineSubspace.sSameSide_iff_exists_left E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y p₁ : P},
  p₁ ∈ s → (s.SSameSide x y ↔ x ∉ s ∧ y ∉ s ∧ ∃ p₂ ∈ s, SameRay R (x -ᵥ p₁) (y -ᵥ p₂))

theorem AffineSubspace.sSameSide_iff_exists_right E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y p₂ : P},
  p₂ ∈ s → (s.SSameSide x y ↔ x ∉ s ∧ y ∉ s ∧ ∃ p₁ ∈ s, SameRay R (x -ᵥ p₁) (y -ᵥ p₂))

theorem AffineSubspace.wOppSide_iff_exists_left E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y p₁ : P}, p₁ ∈ s → (s.WOppSide x y ↔ x ∈ s ∨ ∃ p₂ ∈ s, SameRay R (x -ᵥ p₁) (p₂ -ᵥ y))

theorem AffineSubspace.wOppSide_iff_exists_right E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y p₂ : P}, p₂ ∈ s → (s.WOppSide x y ↔ y ∈ s ∨ ∃ p₁ ∈ s, SameRay R (x -ᵥ p₁) (p₂ -ᵥ y))

theorem AffineSubspace.sOppSide_iff_exists_left E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y p₁ : P},
  p₁ ∈ s → (s.SOppSide x y ↔ x ∉ s ∧ y ∉ s ∧ ∃ p₂ ∈ s, SameRay R (x -ᵥ p₁) (p₂ -ᵥ y))

theorem AffineSubspace.sOppSide_iff_exists_right E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y p₂ : P},
  p₂ ∈ s → (s.SOppSide x y ↔ x ∉ s ∧ y ∉ s ∧ ∃ p₁ ∈ s, SameRay R (x -ᵥ p₁) (p₂ -ᵥ y))

theorem AffineSubspace.WSameSide.trans E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.WSameSide x y → s.WSameSide y z → y ∉ s → s.WSameSide x z

theorem AffineSubspace.WSameSide.trans_sSameSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.WSameSide x y → s.SSameSide y z → s.WSameSide x z

theorem AffineSubspace.WSameSide.trans_wOppSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.WSameSide x y → s.WOppSide y z → y ∉ s → s.WOppSide x z

theorem AffineSubspace.WSameSide.trans_sOppSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.WSameSide x y → s.SOppSide y z → s.WOppSide x z

theorem AffineSubspace.SSameSide.trans_wSameSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.SSameSide x y → s.WSameSide y z → s.WSameSide x z

theorem AffineSubspace.SSameSide.trans E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.SSameSide x y → s.SSameSide y z → s.SSameSide x z

theorem AffineSubspace.SSameSide.trans_wOppSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.SSameSide x y → s.WOppSide y z → s.WOppSide x z

theorem AffineSubspace.SSameSide.trans_sOppSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.SSameSide x y → s.SOppSide y z → s.SOppSide x z

theorem AffineSubspace.WOppSide.trans_wSameSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.WOppSide x y → s.WSameSide y z → y ∉ s → s.WOppSide x z

theorem AffineSubspace.WOppSide.trans_sSameSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.WOppSide x y → s.SSameSide y z → s.WOppSide x z

theorem AffineSubspace.WOppSide.trans E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.WOppSide x y → s.WOppSide y z → y ∉ s → s.WSameSide x z

theorem AffineSubspace.WOppSide.trans_sOppSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.WOppSide x y → s.SOppSide y z → s.WSameSide x z

theorem AffineSubspace.SOppSide.trans_wSameSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.SOppSide x y → s.WSameSide y z → s.WOppSide x z

theorem AffineSubspace.SOppSide.trans_sSameSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.SOppSide x y → s.SSameSide y z → s.SOppSide x z

theorem AffineSubspace.SOppSide.trans_wOppSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.SOppSide x y → s.WOppSide y z → s.WSameSide x z

theorem AffineSubspace.SOppSide.trans E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, s.SOppSide x y → s.SOppSide y z → s.SSameSide x z

theorem AffineSubspace.wSameSide_and_wOppSide_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.WSameSide x y ∧ s.WOppSide x y ↔ x ∈ s ∨ y ∈ s

theorem AffineSubspace.WSameSide.not_sOppSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.WSameSide x y → ¬s.SOppSide x y

theorem AffineSubspace.SSameSide.not_wOppSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SSameSide x y → ¬s.WOppSide x y

theorem AffineSubspace.SSameSide.not_sOppSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SSameSide x y → ¬s.SOppSide x y

theorem AffineSubspace.WOppSide.not_sSameSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.WOppSide x y → ¬s.SSameSide x y

theorem AffineSubspace.SOppSide.not_wSameSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SOppSide x y → ¬s.WSameSide x y

theorem AffineSubspace.SOppSide.not_sSameSide E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SOppSide x y → ¬s.SSameSide x y

theorem AffineSubspace.wOppSide_iff_exists_wbtw E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.WOppSide x y ↔ ∃ p ∈ s, Wbtw R x p y

theorem AffineSubspace.SOppSide.exists_sbtw E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, s.SOppSide x y → ∃ p ∈ s, Sbtw R x p y

theorem Sbtw.sOppSide_of_notMem_of_mem E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y z : P}, Sbtw R x y z → x ∉ s → y ∈ s → s.SOppSide x z

theorem AffineSubspace.sSameSide_smul_vsub_vadd_left E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x p₁ p₂ : P},
  x ∉ s → p₁ ∈ s → p₂ ∈ s → ∀ {t : R}, 0 < t → s.SSameSide (t • (x -ᵥ p₁) +ᵥ p₂) x

theorem AffineSubspace.sSameSide_smul_vsub_vadd_right E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x p₁ p₂ : P},
  x ∉ s → p₁ ∈ s → p₂ ∈ s → ∀ {t : R}, 0 < t → s.SSameSide x (t • (x -ᵥ p₁) +ᵥ p₂)

theorem AffineSubspace.sSameSide_lineMap_left E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, x ∈ s → y ∉ s → ∀ {t : R}, 0 < t → s.SSameSide ((AffineMap.lineMap x y) t) y

theorem AffineSubspace.sSameSide_lineMap_right E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, x ∈ s → y ∉ s → ∀ {t : R}, 0 < t → s.SSameSide y ((AffineMap.lineMap x y) t)

theorem AffineSubspace.sOppSide_smul_vsub_vadd_left E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x p₁ p₂ : P},
  x ∉ s → p₁ ∈ s → p₂ ∈ s → ∀ {t : R}, t < 0 → s.SOppSide (t • (x -ᵥ p₁) +ᵥ p₂) x

theorem AffineSubspace.sOppSide_smul_vsub_vadd_right E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x p₁ p₂ : P},
  x ∉ s → p₁ ∈ s → p₂ ∈ s → ∀ {t : R}, t < 0 → s.SOppSide x (t • (x -ᵥ p₁) +ᵥ p₂)

theorem AffineSubspace.sOppSide_lineMap_left E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, x ∈ s → y ∉ s → ∀ {t : R}, t < 0 → s.SOppSide ((AffineMap.lineMap x y) t) y

theorem AffineSubspace.sOppSide_lineMap_right E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, x ∈ s → y ∉ s → ∀ {t : R}, t < 0 → s.SOppSide y ((AffineMap.lineMap x y) t)

theorem AffineSubspace.setOfPred_wSameSide_eq_image2 E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x p : P},
  x ∉ s → p ∈ s → {y | s.WSameSide x y} = Set.image2 (fun t q ↦ t • (x -ᵥ p) +ᵥ q) (Set.Ici 0) ↑s

theorem AffineSubspace.setOfPred_sSameSide_eq_image2 E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x p : P},
  x ∉ s → p ∈ s → {y | s.SSameSide x y} = Set.image2 (fun t q ↦ t • (x -ᵥ p) +ᵥ q) (Set.Ioi 0) ↑s

theorem AffineSubspace.setOfPred_wOppSide_eq_image2 E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x p : P},
  x ∉ s → p ∈ s → {y | s.WOppSide x y} = Set.image2 (fun t q ↦ t • (x -ᵥ p) +ᵥ q) (Set.Iic 0) ↑s

theorem AffineSubspace.setOfPred_sOppSide_eq_image2 E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x p : P},
  x ∉ s → p ∈ s → {y | s.SOppSide x y} = Set.image2 (fun t q ↦ t • (x -ᵥ p) +ᵥ q) (Set.Iio 0) ↑s

theorem AffineSubspace.wOppSide_pointReflection E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x : P} (y : P), x ∈ s → s.WOppSide y ((AffineEquiv.pointReflection R x) y)

theorem AffineSubspace.sOppSide_pointReflection E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P]
  {s : AffineSubspace R P} {x y : P}, x ∈ s → y ∉ s → s.SOppSide y ((AffineEquiv.pointReflection R x) y)

theorem AffineSubspace.isConnected_setOfPred_wSameSide E1 #

∀ {V : Type u_2} {P : Type u_4} [inst : SeminormedAddCommGroup V] [inst_1 : NormedSpace ℝ V]
  [inst_2 : PseudoMetricSpace P] [inst_3 : NormedAddTorsor V P] {s : AffineSubspace ℝ P} (x : P),
  (↑s).Nonempty → IsConnected {y | s.WSameSide x y}

theorem AffineSubspace.isPreconnected_setOfPred_wSameSide E1 #

∀ {V : Type u_2} {P : Type u_4} [inst : SeminormedAddCommGroup V] [inst_1 : NormedSpace ℝ V]
  [inst_2 : PseudoMetricSpace P] [inst_3 : NormedAddTorsor V P] (s : AffineSubspace ℝ P) (x : P),
  IsPreconnected {y | s.WSameSide x y}

theorem AffineSubspace.isConnected_setOfPred_sSameSide E1 #

∀ {V : Type u_2} {P : Type u_4} [inst : SeminormedAddCommGroup V] [inst_1 : NormedSpace ℝ V]
  [inst_2 : PseudoMetricSpace P] [inst_3 : NormedAddTorsor V P] {s : AffineSubspace ℝ P} {x : P},
  x ∉ s → (↑s).Nonempty → IsConnected {y | s.SSameSide x y}

theorem AffineSubspace.isPreconnected_setOfPred_sSameSide E1 #

∀ {V : Type u_2} {P : Type u_4} [inst : SeminormedAddCommGroup V] [inst_1 : NormedSpace ℝ V]
  [inst_2 : PseudoMetricSpace P] [inst_3 : NormedAddTorsor V P] (s : AffineSubspace ℝ P) (x : P),
  IsPreconnected {y | s.SSameSide x y}

theorem AffineSubspace.isConnected_setOfPred_wOppSide E1 #

∀ {V : Type u_2} {P : Type u_4} [inst : SeminormedAddCommGroup V] [inst_1 : NormedSpace ℝ V]
  [inst_2 : PseudoMetricSpace P] [inst_3 : NormedAddTorsor V P] {s : AffineSubspace ℝ P} (x : P),
  (↑s).Nonempty → IsConnected {y | s.WOppSide x y}

theorem AffineSubspace.isPreconnected_setOfPred_wOppSide E1 #

∀ {V : Type u_2} {P : Type u_4} [inst : SeminormedAddCommGroup V] [inst_1 : NormedSpace ℝ V]
  [inst_2 : PseudoMetricSpace P] [inst_3 : NormedAddTorsor V P] (s : AffineSubspace ℝ P) (x : P),
  IsPreconnected {y | s.WOppSide x y}

theorem AffineSubspace.isConnected_setOfPred_sOppSide E1 #

∀ {V : Type u_2} {P : Type u_4} [inst : SeminormedAddCommGroup V] [inst_1 : NormedSpace ℝ V]
  [inst_2 : PseudoMetricSpace P] [inst_3 : NormedAddTorsor V P] {s : AffineSubspace ℝ P} {x : P},
  x ∉ s → (↑s).Nonempty → IsConnected {y | s.SOppSide x y}

theorem AffineSubspace.isPreconnected_setOfPred_sOppSide E1 #

∀ {V : Type u_2} {P : Type u_4} [inst : SeminormedAddCommGroup V] [inst_1 : NormedSpace ℝ V]
  [inst_2 : PseudoMetricSpace P] [inst_3 : NormedAddTorsor V P] (s : AffineSubspace ℝ P) (x : P),
  IsPreconnected {y | s.SOppSide x y}

theorem Affine.Simplex.sSameSide_affineSpan_faceOpposite_of_sign_eq E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {n : ℕ}
  [inst_6 : NeZero n] (s : Affine.Simplex R P n) {w₁ w₂ : Fin (n + 1) → R},
  ∑ j, w₁ j = 1 →
    ∑ j, w₂ j = 1 →
      ∀ {i : Fin (n + 1)},
        SignType.sign (w₁ i) = SignType.sign (w₂ i) →
          w₁ i ≠ 0 →
            (affineSpan R (Set.range (s.faceOpposite i).points)).SSameSide
              ((Finset.affineCombination R Finset.univ s.points) w₁)
              ((Finset.affineCombination R Finset.univ s.points) w₂)

theorem Affine.Simplex.sOppSide_affineSpan_faceOpposite_of_pos_of_neg E1 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {n : ℕ}
  [inst_6 : NeZero n] (s : Affine.Simplex R P n) {w₁ w₂ : Fin (n + 1) → R},
  ∑ j, w₁ j = 1 →
    ∑ j, w₂ j = 1 →
      ∀ {i : Fin (n + 1)},
        0 < w₁ i →
          w₂ i < 0 →
            (affineSpan R (Set.range (s.faceOpposite i).points)).SOppSide
              ((Finset.affineCombination R Finset.univ s.points) w₁)
              ((Finset.affineCombination R Finset.univ s.points) w₂)

theorem Affine.Simplex.sSameSide_affineSpan_faceOpposite_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {n : ℕ}
  [inst_6 : NeZero n] (s : Affine.Simplex R P n) {w₁ w₂ : Fin (n + 1) → R},
  ∑ j, w₁ j = 1 →
    ∑ j, w₂ j = 1 →
      ∀ {i : Fin (n + 1)},
        (affineSpan R (Set.range (s.faceOpposite i).points)).SSameSide
            ((Finset.affineCombination R Finset.univ s.points) w₁)
            ((Finset.affineCombination R Finset.univ s.points) w₂) ↔
          SignType.sign (w₁ i) = SignType.sign (w₂ i) ∧ w₁ i ≠ 0

theorem Affine.Simplex.sOppSide_affineSpan_faceOpposite_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {n : ℕ}
  [inst_6 : NeZero n] (s : Affine.Simplex R P n) {w₁ w₂ : Fin (n + 1) → R},
  ∑ j, w₁ j = 1 →
    ∑ j, w₂ j = 1 →
      ∀ {i : Fin (n + 1)},
        (affineSpan R (Set.range (s.faceOpposite i).points)).SOppSide
            ((Finset.affineCombination R Finset.univ s.points) w₁)
            ((Finset.affineCombination R Finset.univ s.points) w₂) ↔
          SignType.sign (w₁ i) = -SignType.sign (w₂ i) ∧ w₁ i ≠ 0

theorem Affine.Simplex.wSameSide_affineSpan_faceOpposite_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {n : ℕ}
  [inst_6 : NeZero n] (s : Affine.Simplex R P n) {w₁ w₂ : Fin (n + 1) → R},
  ∑ j, w₁ j = 1 →
    ∑ j, w₂ j = 1 →
      ∀ {i : Fin (n + 1)},
        (affineSpan R (Set.range (s.faceOpposite i).points)).WSameSide
            ((Finset.affineCombination R Finset.univ s.points) w₁)
            ((Finset.affineCombination R Finset.univ s.points) w₂) ↔
          SignType.sign (w₁ i) = SignType.sign (w₂ i) ∨ w₁ i = 0 ∨ w₂ i = 0

theorem Affine.Simplex.wOppSide_affineSpan_faceOpposite_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {n : ℕ}
  [inst_6 : NeZero n] (s : Affine.Simplex R P n) {w₁ w₂ : Fin (n + 1) → R},
  ∑ j, w₁ j = 1 →
    ∑ j, w₂ j = 1 →
      ∀ {i : Fin (n + 1)},
        (affineSpan R (Set.range (s.faceOpposite i).points)).WOppSide
            ((Finset.affineCombination R Finset.univ s.points) w₁)
            ((Finset.affineCombination R Finset.univ s.points) w₂) ↔
          SignType.sign (w₁ i) = -SignType.sign (w₂ i) ∨ w₁ i = 0 ∨ w₂ i = 0

theorem Affine.Simplex.sSameSide_affineSpan_faceOpposite_point_left_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {n : ℕ}
  [inst_6 : NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) → R},
  ∑ j, w j = 1 →
    ∀ {i : Fin (n + 1)},
      (affineSpan R (Set.range (s.faceOpposite i).points)).SSameSide (s.points i)
          ((Finset.affineCombination R Finset.univ s.points) w) ↔
        0 < w i

theorem Affine.Simplex.sSameSide_affineSpan_faceOpposite_point_right_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {n : ℕ}
  [inst_6 : NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) → R},
  ∑ j, w j = 1 →
    ∀ {i : Fin (n + 1)},
      (affineSpan R (Set.range (s.faceOpposite i).points)).SSameSide
          ((Finset.affineCombination R Finset.univ s.points) w) (s.points i) ↔
        0 < w i

theorem Affine.Simplex.sOppSide_affineSpan_faceOpposite_point_left_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {n : ℕ}
  [inst_6 : NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) → R},
  ∑ j, w j = 1 →
    ∀ {i : Fin (n + 1)},
      (affineSpan R (Set.range (s.faceOpposite i).points)).SOppSide (s.points i)
          ((Finset.affineCombination R Finset.univ s.points) w) ↔
        w i < 0

theorem Affine.Simplex.sOppSide_affineSpan_faceOpposite_point_right_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {n : ℕ}
  [inst_6 : NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) → R},
  ∑ j, w j = 1 →
    ∀ {i : Fin (n + 1)},
      (affineSpan R (Set.range (s.faceOpposite i).points)).SOppSide
          ((Finset.affineCombination R Finset.univ s.points) w) (s.points i) ↔
        w i < 0

theorem Affine.Simplex.wSameSide_affineSpan_faceOpposite_point_left_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {n : ℕ}
  [inst_6 : NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) → R},
  ∑ j, w j = 1 →
    ∀ {i : Fin (n + 1)},
      (affineSpan R (Set.range (s.faceOpposite i).points)).WSameSide (s.points i)
          ((Finset.affineCombination R Finset.univ s.points) w) ↔
        0 ≤ w i

theorem Affine.Simplex.wSameSide_affineSpan_faceOpposite_point_right_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {n : ℕ}
  [inst_6 : NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) → R},
  ∑ j, w j = 1 →
    ∀ {i : Fin (n + 1)},
      (affineSpan R (Set.range (s.faceOpposite i).points)).WSameSide
          ((Finset.affineCombination R Finset.univ s.points) w) (s.points i) ↔
        0 ≤ w i

theorem Affine.Simplex.wOppSide_affineSpan_faceOpposite_point_left_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {n : ℕ}
  [inst_6 : NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) → R},
  ∑ j, w j = 1 →
    ∀ {i : Fin (n + 1)},
      (affineSpan R (Set.range (s.faceOpposite i).points)).WOppSide (s.points i)
          ((Finset.affineCombination R Finset.univ s.points) w) ↔
        w i ≤ 0

theorem Affine.Simplex.wOppSide_affineSpan_faceOpposite_point_right_iff E0 #

∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {n : ℕ}
  [inst_6 : NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) → R},
  ∑ j, w j = 1 →
    ∀ {i : Fin (n + 1)},
      (affineSpan R (Set.range (s.faceOpposite i).points)).WOppSide
          ((Finset.affineCombination R Finset.univ s.points) w) (s.points i) ↔
        w i ≤ 0

Deprecated aliases

NameNew nameSince
AffineSubspace.isConnected_setOf_sOppSideAffineSubspace.isConnected_setOfPred_sOppSide2026-07-09
AffineSubspace.isConnected_setOf_sSameSideAffineSubspace.isConnected_setOfPred_sSameSide2026-07-09
AffineSubspace.isConnected_setOf_wOppSideAffineSubspace.isConnected_setOfPred_wOppSide2026-07-09
AffineSubspace.isConnected_setOf_wSameSideAffineSubspace.isConnected_setOfPred_wSameSide2026-07-09
AffineSubspace.isPreconnected_setOf_sOppSideAffineSubspace.isPreconnected_setOfPred_sOppSide2026-07-09
AffineSubspace.isPreconnected_setOf_sSameSideAffineSubspace.isPreconnected_setOfPred_sSameSide2026-07-09
AffineSubspace.isPreconnected_setOf_wOppSideAffineSubspace.isPreconnected_setOfPred_wOppSide2026-07-09
AffineSubspace.isPreconnected_setOf_wSameSideAffineSubspace.isPreconnected_setOfPred_wSameSide2026-07-09
AffineSubspace.setOf_sOppSide_eq_image2AffineSubspace.setOfPred_sOppSide_eq_image22026-07-09
AffineSubspace.setOf_sSameSide_eq_image2AffineSubspace.setOfPred_sSameSide_eq_image22026-07-09
AffineSubspace.setOf_wOppSide_eq_image2AffineSubspace.setOfPred_wOppSide_eq_image22026-07-09
AffineSubspace.setOf_wSameSide_eq_image2AffineSubspace.setOfPred_wSameSide_eq_image22026-07-09