The areas / V22. Affine, Euclidean and convex geometry
Mathlib.Analysis.Convex.BetweenList
28 declarations. Mathlib docs · Source
def List.Wbtw E1 #
(R : Type u_1) →
{V : Type u_2} →
{P : Type u_4} →
[inst : Ring R] → [PartialOrder R] → [inst_2 : AddCommGroup V] → [Module R V] → [AddTorsor V P] → List P → Prop
The points in a list are weakly in that order on a line.
theorem List.wbtw_cons E1 #
∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P] {p : P} {l : List P},
List.Wbtw R (p :: l) ↔ List.Pairwise (Wbtw R p) l ∧ List.Wbtw R l
def List.Sbtw E1 #
(R : Type u_1) →
{V : Type u_2} →
{P : Type u_4} →
[inst : Ring R] → [PartialOrder R] → [inst_2 : AddCommGroup V] → [Module R V] → [AddTorsor V P] → List P → Prop
The points in a list are strictly in that order on a line.
theorem List.wbtw_nil E0 #
∀ (R : Type u_1) {V : Type u_2} (P : Type u_4) [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P], List.Wbtw R []
theorem List.sbtw_nil E0 #
∀ (R : Type u_1) {V : Type u_2} (P : Type u_4) [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P], List.Sbtw R []
theorem List.wbtw_singleton E0 #
∀ (R : Type u_1) {V : Type u_2} {P : Type u_4} [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P] (p₁ : P), List.Wbtw R [p₁]
theorem List.sbtw_singleton E0 #
∀ (R : Type u_1) {V : Type u_2} {P : Type u_4} [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P] (p₁ : P), List.Sbtw R [p₁]
theorem List.wbtw_pair E0 #
∀ (R : Type u_1) {V : Type u_2} {P : Type u_4} [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P] (p₁ p₂ : P), List.Wbtw R [p₁, p₂]
theorem List.sbtw_pair E0 #
∀ (R : Type u_1) {V : Type u_2} {P : Type u_4} [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P] {p₁ p₂ : P}, List.Sbtw R [p₁, p₂] ↔ p₁ ≠ p₂
theorem List.wbtw_triple E0 #
∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P] {p₁ p₂ p₃ : P}, List.Wbtw R [p₁, p₂, p₃] ↔ Wbtw R p₁ p₂ p₃
theorem List.sbtw_triple E0 #
∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P] [IsOrderedRing R] {p₁ p₂ p₃ : P},
List.Sbtw R [p₁, p₂, p₃] ↔ Sbtw R p₁ p₂ p₃
theorem List.wbtw_four E1 #
∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P] {p₁ p₂ p₃ p₄ : P},
List.Wbtw R [p₁, p₂, p₃, p₄] ↔ Wbtw R p₁ p₂ p₃ ∧ Wbtw R p₁ p₂ p₄ ∧ Wbtw R p₁ p₃ p₄ ∧ Wbtw R p₂ p₃ p₄
theorem List.sbtw_four E1 #
∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P] [IsOrderedRing R] {p₁ p₂ p₃ p₄ : P},
List.Sbtw R [p₁, p₂, p₃, p₄] ↔ Sbtw R p₁ p₂ p₃ ∧ Sbtw R p₁ p₂ p₄ ∧ Sbtw R p₁ p₃ p₄ ∧ Sbtw R p₂ p₃ p₄
theorem List.Sbtw.wbtw E1 #
∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P] {l : List P}, List.Sbtw R l → List.Wbtw R l
theorem List.Sbtw.pairwise_ne E1 #
∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P] {l : List P}, List.Sbtw R l → List.Pairwise (fun x1 x2 ↦ x1 ≠ x2) l
theorem List.sbtw_iff_triplewise_and_ne_pair E1 #
∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P] [IsOrderedRing R] {l : List P},
List.Sbtw R l ↔ List.Triplewise (Sbtw R) l ∧ ∀ (a : P), l ≠ [a, a]
theorem List.sbtw_cons E1 #
∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup V]
[inst_3 : Module R V] [inst_4 : AddTorsor V P] [IsOrderedRing R] {p : P} {l : List P},
List.Sbtw R (p :: l) ↔ List.Pairwise (Sbtw R p) l ∧ List.Sbtw R l ∧ l ≠ [p]
theorem List.Wbtw.map E1 #
∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : Ring R] [inst_1 : PartialOrder R]
[inst_2 : AddCommGroup V] [inst_3 : Module R V] [inst_4 : AddTorsor V P] [inst_5 : AddCommGroup V']
[inst_6 : Module R V'] [inst_7 : AddTorsor V' P'] {l : List P},
List.Wbtw R l → ∀ (f : P →ᵃ[R] P'), List.Wbtw R (List.map (⇑f) l)
theorem Function.Injective.list_wbtw_map_iff E0 #
∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : Ring R] [inst_1 : PartialOrder R]
[inst_2 : AddCommGroup V] [inst_3 : Module R V] [inst_4 : AddTorsor V P] [inst_5 : AddCommGroup V']
[inst_6 : Module R V'] [inst_7 : AddTorsor V' P'] {l : List P} {f : P →ᵃ[R] P'},
Function.Injective ⇑f → (List.Wbtw R (List.map (⇑f) l) ↔ List.Wbtw R l)
theorem Function.Injective.list_sbtw_map_iff E0 #
∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : Ring R] [inst_1 : PartialOrder R]
[inst_2 : AddCommGroup V] [inst_3 : Module R V] [inst_4 : AddTorsor V P] [inst_5 : AddCommGroup V']
[inst_6 : Module R V'] [inst_7 : AddTorsor V' P'] {l : List P} {f : P →ᵃ[R] P'},
Function.Injective ⇑f → (List.Sbtw R (List.map (⇑f) l) ↔ List.Sbtw R l)
theorem AffineEquiv.list_wbtw_map_iff E0 #
∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : Ring R] [inst_1 : PartialOrder R]
[inst_2 : AddCommGroup V] [inst_3 : Module R V] [inst_4 : AddTorsor V P] [inst_5 : AddCommGroup V']
[inst_6 : Module R V'] [inst_7 : AddTorsor V' P'] {l : List P} (f : P ≃ᵃ[R] P'),
List.Wbtw R (List.map (⇑f) l) ↔ List.Wbtw R l
theorem AffineEquiv.list_sbtw_map_iff E0 #
∀ {R : Type u_1} {V : Type u_2} {V' : Type u_3} {P : Type u_4} {P' : Type u_5} [inst : Ring R] [inst_1 : PartialOrder R]
[inst_2 : AddCommGroup V] [inst_3 : Module R V] [inst_4 : AddTorsor V P] [inst_5 : AddCommGroup V']
[inst_6 : Module R V'] [inst_7 : AddTorsor V' P'] {l : List P} (f : P ≃ᵃ[R] P'),
List.Sbtw R (List.map (⇑f) l) ↔ List.Sbtw R l
theorem List.SortedLE.wbtw E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {l : List R},
l.SortedLE → List.Wbtw R l
theorem List.SortedLT.sbtw E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {l : List R},
l.SortedLT → List.Sbtw R l
theorem List.exists_map_eq_of_sorted_nonempty_iff_wbtw E1 #
∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R]
[inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {l : List P} (hl : l ≠ []),
(∃ l', l'.SortedLE ∧ List.map (⇑(AffineMap.lineMap (l.head hl) (l.getLast hl))) l' = l) ↔ List.Wbtw R l
theorem List.exists_map_eq_of_sorted_iff_wbtw E1 #
∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R]
[inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {l : List P},
(∃ p₁ p₂ l', l'.SortedLE ∧ List.map (⇑(AffineMap.lineMap p₁ p₂)) l' = l) ↔ List.Wbtw R l
theorem List.exists_map_eq_of_sorted_nonempty_iff_sbtw E1 #
∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R]
[inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] {l : List P} (hl : l ≠ []),
(∃ l',
l'.SortedLT ∧
List.map (⇑(AffineMap.lineMap (l.head hl) (l.getLast hl))) l' = l ∧ (l.length = 1 ∨ l.head hl ≠ l.getLast hl)) ↔
List.Sbtw R l
theorem List.exists_map_eq_of_sorted_iff_sbtw E1 #
∀ {R : Type u_1} {V : Type u_2} {P : Type u_4} [inst : Field R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R]
[inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : AddTorsor V P] [Nontrivial P] {l : List P},
(∃ p₁ p₂, p₁ ≠ p₂ ∧ ∃ l', l'.SortedLT ∧ List.map (⇑(AffineMap.lineMap p₁ p₂)) l' = l) ↔ List.Sbtw R l