introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
1.52 kB
import Mathlib
namespace OAI
noncomputable section
open Set MeasureTheory
open scoped RealInnerProductSpace Pointwise
namespace Paper092
noncomputable def simplexConstant (d : โ„•) : โ„ :=
(d + 1) * (d : โ„) ^ d / d.factorial
abbrev Euclidean (n : โ„•) := EuclideanSpace โ„ (Fin n)
def normalHyperplane {n : โ„•} (u : Euclidean n) : Submodule โ„ (Euclidean n) :=
(Submodule.span โ„ ({u} : Set (Euclidean n)))แ—ฎ
def projectionVolume {n : โ„•} (K : Set (Euclidean n)) (u : Euclidean n) : ENNReal :=
(volume : Measure (normalHyperplane u))
((normalHyperplane u).orthogonalProjectionOnto '' K)
def brightness {n : โ„•} (K : Set (Euclidean n)) (u : Euclidean n) : โ„ :=
โ€–uโ€– * (projectionVolume K u).toReal
def projectionBody {n : โ„•} (K : Set (Euclidean n)) : Set (Euclidean n) :=
{y | โˆ€ u, โŸชu, yโŸซ โ‰ค brightness K u}
def normalizedProjectionVolume {n : โ„•} (K : Set (Euclidean n)) : โ„ :=
(volume (projectionBody K)).toReal / (volume K).toReal ^ (n - 1)
def standardSimplex (n : โ„•) : Set (Euclidean n) :=
convexHull โ„ (insert 0 (Set.range fun i : Fin n => EuclideanSpace.single i (1 : โ„)))
def firstBlock (x : Euclidean 20) : Euclidean 10 :=
WithLp.toLp 2 (fun i : Fin 10 => x (Fin.castAdd 10 i))
def secondBlock (x : Euclidean 20) : Euclidean 10 :=
WithLp.toLp 2 (fun i : Fin 10 => x (Fin.natAdd 10 i))
def productWitness : Set (Euclidean 20) :=
{x | firstBlock x โˆˆ standardSimplex 10 โˆง secondBlock x โˆˆ standardSimplex 10}
end Paper092
end
end OAI