LeanPool.Monsky.RainbowTriangles #
Imported Lean Pool material for LeanPool.Monsky.RainbowTriangles.
One square and an odd number of triangles #
@[implicit_reducible]
@[implicit_reducible]
Equations
- LeanPool.Monsky.instFintypeColor = { elems := { val := ↑LeanPool.Monsky.Color.enumList, nodup := LeanPool.Monsky.Color.enumList_nodup }, complete := LeanPool.Monsky.instFintypeColor._proof_1 }
def
LeanPool.Monsky.coloring
{Γ₀ : Type}
[LinearOrderedCommGroupWithZero Γ₀]
(v : Valuation ℝ Γ₀)
(X : EuclideanSpace ℝ (Fin 2))
:
Monsky's three-coloring of a point of the plane induced by a valuation v.
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
LeanPool.Monsky.green_region
{Γ₀ : Type}
[LinearOrderedCommGroupWithZero Γ₀]
(v : Valuation ℝ Γ₀)
(X : EuclideanSpace ℝ (Fin 2))
:
theorem
LeanPool.Monsky.blue_region
{Γ₀ : Type}
[LinearOrderedCommGroupWithZero Γ₀]
(v : Valuation ℝ Γ₀)
(X : EuclideanSpace ℝ (Fin 2))
:
def
LeanPool.Monsky.rainbowTriangle
{Γ₀ : Type}
[LinearOrderedCommGroupWithZero Γ₀]
(v : Valuation ℝ Γ₀)
(T : Fin 3 → EuclideanSpace ℝ (Fin 2))
:
A triangle is rainbow if its three vertices receive all three colors.
Equations
Instances For
theorem
LeanPool.Monsky.valuation_bounds
{Γ₀ : Type}
[LinearOrderedCommGroupWithZero Γ₀]
(v : Valuation ℝ Γ₀)
(X Y Z : EuclideanSpace ℝ (Fin 2))
(hb : coloring v X = Color.Blue)
(hg : coloring v Y = Color.Green)
(hr : coloring v Z = Color.Red)
:
theorem
LeanPool.Monsky.bounded_det
{Γ₀ : Type}
[LinearOrderedCommGroupWithZero Γ₀]
(v : Valuation ℝ Γ₀)
(X Y Z : EuclideanSpace ℝ (Fin 2))
(hb : coloring v X = Color.Blue)
(hg : coloring v Y = Color.Green)
(hr : coloring v Z = Color.Red)
:
The six permutations of Fin 3, indexed by Fin 6.
Equations
- LeanPool.Monsky.σ 0 = fun (x : Fin 3) => match x with | 0 => 0 | 1 => 1 | 2 => 2
- LeanPool.Monsky.σ 1 = fun (x : Fin 3) => match x with | 0 => 0 | 1 => 2 | 2 => 1
- LeanPool.Monsky.σ 2 = fun (x : Fin 3) => match x with | 0 => 1 | 1 => 0 | 2 => 2
- LeanPool.Monsky.σ 3 = fun (x : Fin 3) => match x with | 0 => 1 | 1 => 2 | 2 => 0
- LeanPool.Monsky.σ 4 = fun (x : Fin 3) => match x with | 0 => 2 | 1 => 0 | 2 => 1
- LeanPool.Monsky.σ 5 = fun (x : Fin 3) => match x with | 0 => 2 | 1 => 1 | 2 => 0
Instances For
The sign of the permutation σ b, as a value in ℝ.
Equations
- LeanPool.Monsky.bSign 0 = 1
- LeanPool.Monsky.bSign 1 = -1
- LeanPool.Monsky.bSign 2 = -1
- LeanPool.Monsky.bSign 3 = 1
- LeanPool.Monsky.bSign 4 = 1
- LeanPool.Monsky.bSign 5 = -1
Instances For
theorem
LeanPool.Monsky.linearCombinationDetMiddle
{n : ℕ}
{x z : EuclideanSpace ℝ (Fin 2)}
{P : Fin n → EuclideanSpace ℝ (Fin 2)}
{α : Fin n → ℝ}
(hα : ∑ i : Fin n, α i = 1)
:
theorem
LeanPool.Monsky.linearCombinationDetFirst
{n : ℕ}
{y z : EuclideanSpace ℝ (Fin 2)}
{P : Fin n → EuclideanSpace ℝ (Fin 2)}
{α : Fin n → ℝ}
(hα : ∑ i : Fin n, α i = 1)
:
theorem
LeanPool.Monsky.linearCombinationDetLast'
{n : ℕ}
{x y : EuclideanSpace ℝ (Fin 2)}
{P : Fin n → EuclideanSpace ℝ (Fin 2)}
{α : Fin n → ℝ}
(hα : ∑ i : Fin n, α i = 1)
:
theorem
LeanPool.Monsky.det_0_triangle_imp_triv
{T : Fin 3 → EuclideanSpace ℝ (Fin 2)}
(hT : det T = 0)
(x y z : EuclideanSpace ℝ (Fin 2))
:
x ∈ closedHull T →
y ∈ closedHull T →
z ∈ closedHull T →
(det fun (x_1 : Fin 3) =>
match x_1 with
| 0 => x
| 1 => y
| 2 => z) = 0
theorem
LeanPool.Monsky.no_Color_lines
(L : Fin 2 → EuclideanSpace ℝ (Fin 2))
{Γ₀ : Type}
[locg : LinearOrderedCommGroupWithZero Γ₀]
(v : Valuation ℝ Γ₀)
:
∃ (c : Color), ∀ P ∈ closedHull L, coloring v P ≠ c
theorem
LeanPool.Monsky.red00
{Γ₀ : Type}
[LinearOrderedCommGroupWithZero Γ₀]
(v : Valuation ℝ Γ₀)
:
theorem
LeanPool.Monsky.green01
{Γ₀ : Type}
[LinearOrderedCommGroupWithZero Γ₀]
(v : Valuation ℝ Γ₀)
:
theorem
LeanPool.Monsky.blue10
{Γ₀ : Type}
[LinearOrderedCommGroupWithZero Γ₀]
(v : Valuation ℝ Γ₀)
:
theorem
LeanPool.Monsky.blue11
{Γ₀ : Type}
[LinearOrderedCommGroupWithZero Γ₀]
(v : Valuation ℝ Γ₀)
:
theorem
LeanPool.Monsky.get_color_of_rainbowTriangle
{Γ₀ : Type}
[LinearOrderedCommGroupWithZero Γ₀]
(v : Valuation ℝ Γ₀)
(T : Fin 3 → EuclideanSpace ℝ (Fin 2))
(rt : rainbowTriangle v T)
(c : Color)
:
theorem
LeanPool.Monsky.bounded_det_coord_free
{Γ₀ : Type}
[LinearOrderedCommGroupWithZero Γ₀]
(v : Valuation ℝ Γ₀)
(T : Fin 3 → EuclideanSpace ℝ (Fin 2))
(rt : rainbowTriangle v T)
: