LeanPool.Monsky.SimplexBasic #
Imported Lean Pool material for LeanPool.Monsky.SimplexBasic.
The plane vector with the two given real coordinates.
Equations
- LeanPool.Monsky.v x y = !₂[x, y]
Instances For
def
LeanPool.Monsky.closedHull
{n : ℕ}
(f : Fin n → EuclideanSpace ℝ (Fin 2))
:
Set (EuclideanSpace ℝ (Fin 2))
The closed convex hull of a finite point family, via the closed simplex.
Equations
- LeanPool.Monsky.closedHull f = (fun (α : Fin n → ℝ) => ∑ i : Fin n, α i • f i) '' LeanPool.Monsky.closedSimplex n
Instances For
def
LeanPool.Monsky.openHull
{n : ℕ}
(f : Fin n → EuclideanSpace ℝ (Fin 2))
:
Set (EuclideanSpace ℝ (Fin 2))
The open convex hull of a finite point family, via the open simplex.
Equations
- LeanPool.Monsky.openHull f = (fun (α : Fin n → ℝ) => ∑ i : Fin n, α i • f i) '' LeanPool.Monsky.openSimplex n
Instances For
@[simp]
theorem
LeanPool.Monsky.simplexVertex_image
{n : ℕ}
{i : Fin n}
(f : Fin n → EuclideanSpace ℝ (Fin 2))
:
@[simp]
theorem
LeanPool.Monsky.corner_in_closedHull
{n : ℕ}
{i : Fin n}
{P : Fin n → EuclideanSpace ℝ (Fin 2)}
:
theorem
LeanPool.Monsky.closedHull_constant_rev
{n : ℕ}
{P : EuclideanSpace ℝ (Fin 2)}
{f : Fin n → EuclideanSpace ℝ (Fin 2)}
(hc : closedHull f = {P})
(i : Fin n)
:
theorem
LeanPool.Monsky.open_pol_nonempty
{n : ℕ}
(hn : 0 < n)
(P : Fin n → EuclideanSpace ℝ (Fin 2))
:
theorem
LeanPool.Monsky.closed_pol_nonempty
{n : ℕ}
(hn : 0 < n)
(P : Fin n → EuclideanSpace ℝ (Fin 2))
:
(closedHull P).Nonempty
noncomputable def
LeanPool.Monsky.linearCombination
{n : ℕ}
(α : Fin n → ℝ)
(f : Fin n → EuclideanSpace ℝ (Fin 2))
:
EuclideanSpace ℝ (Fin 2)
The point obtained as a weighted combination of a point family.
Equations
- LeanPool.Monsky.linearCombination α f = ∑ i : Fin n, α i • f i
Instances For
theorem
LeanPool.Monsky.linear_co_closed
{n : ℕ}
{α : Fin n → ℝ}
(f : Fin n → EuclideanSpace ℝ (Fin 2))
(h : α ∈ closedSimplex n)
:
theorem
LeanPool.Monsky.simplex_co_leq_1
{n : ℕ}
{α : Fin n → ℝ}
(h₁ : α ∈ closedSimplex n)
(i : Fin n)
:
theorem
LeanPool.Monsky.simplex_co_leq_1_open
{n : ℕ}
{α : Fin n → ℝ}
(hn : 1 < n)
(h₁ : α ∈ openSimplex n)
(i : Fin n)
:
theorem
LeanPool.Monsky.simplex_closed_sub_fin2
{α : Fin 2 → ℝ}
(h : α ∈ closedSimplex 2)
(i : Fin 2)
:
Encodes a real x as the pair of weights (x, 1 - x).
Equations
- LeanPool.Monsky.real_to_fin_2 x 0 = x
- LeanPool.Monsky.real_to_fin_2 x 1 = 1 - x
Instances For
theorem
LeanPool.Monsky.closedHull_convex
{n₁ n₂ : ℕ}
{P₁ : Fin n₁ → EuclideanSpace ℝ (Fin 2)}
{P₂ : Fin n₂ → EuclideanSpace ℝ (Fin 2)}
(h : ∀ (i : Fin n₁), P₁ i ∈ closedHull P₂)
:
theorem
LeanPool.Monsky.closedHull_openHull_com
{n : ℕ}
{P : Fin n → EuclideanSpace ℝ (Fin 2)}
{x y : EuclideanSpace ℝ (Fin 2)}
(hx : x ∈ openHull P)
(hy : y ∈ closedHull P)
:
def
LeanPool.Monsky.boundary
{n : ℕ}
(P : Fin n → EuclideanSpace ℝ (Fin 2))
:
Set (EuclideanSpace ℝ (Fin 2))
The boundary of the convex hull of a point family: closed hull minus open hull.
Equations
Instances For
theorem
LeanPool.Monsky.boundary_not_in_open
{n : ℕ}
{P : Fin n → EuclideanSpace ℝ (Fin 2)}
{x : EuclideanSpace ℝ (Fin 2)}
(hx : x ∈ boundary P)
:
x ∉ openHull P
theorem
LeanPool.Monsky.boundary_in_closed
{n : ℕ}
{P : Fin n → EuclideanSpace ℝ (Fin 2)}
{x : EuclideanSpace ℝ (Fin 2)}
(hx : x ∈ boundary P)
:
theorem
LeanPool.Monsky.open_closedHull_minus_boundary
{n : ℕ}
{P : Fin n → EuclideanSpace ℝ (Fin 2)}
: