File size: 1,519 Bytes
4a56cd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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