roseking's picture
Add lean source and binary files (part 67)
785c727 verified
Raw History Blame Contribute Delete
1.71 kB
10
def meshCount (ρ : ℝ) : ℕ := ⌈2 / ρ⌉₊
12
def node (ρ : ℝ) (j : ℕ) : ℝ := -1 + 2 * j / meshCount ρ
14
def velocity (k σ p : ℝ) : ℝ × ℝ :=
body · 1 line
  (σ * k * Nilpotent.v p, σ * k * Nilpotent.w p)
17
def radius (k ρ : ℝ) : ℝ := (1 + k / 2) * ρ
19
def tile (k ρ : ℝ) : Set (ℝ × ℝ) :=
body · 1 line
  Icc (-radius k ρ, -radius k ρ) (radius k ρ, radius k ρ)
22
def cylinder (k ρ σ : ℝ) (j : Fin (meshCount ρ + 1)) : Set (ℝ × (ℝ × ℝ)) :=
body · 1 line
  {z | z.2 - z.1 • velocity k σ (node ρ j) ∈ tile k ρ}
25
def apexSweep (k ρ σ : ℝ) : Set (ℝ × (ℝ × ℝ)) :=
body · 2 lines
  {z | ∃ s p t : ℝ, |s| ≤ 1 ∧ |p| ≤ 1 ∧ 0 ≤ t ∧ t ≤ ρ ∧
    z = (s, (p * t, t) + s • velocity k σ p)}
29
def weight (h : ℝ) (g : ℝ × ℝ) : ℝ :=
body · 1 line
  1 / Real.sqrt (1 + g.1 ^ 2 + h ^ 2 * g.2 ^ 2)
32
def weightedArea (h k ρ σ : ℝ) (j : Fin (meshCount ρ + 1)) : ℝ :=
body · 1 line
  (volume (tile k ρ)).toReal * weight h (velocity k σ (node ρ j))
35
def AuxiliaryApexNetStatement : Prop :=
body · 8 lines
  ∀ (h k ρ σ : ℝ), 0 ≤ k → 0 < ρ → ρ ≤ 1 → |σ| ≤ 1 →
    IsCompact (tile k ρ) ∧ Convex ℝ (tile k ρ) ∧ MeasurableSet (tile k ρ) ∧
    0 < (volume (tile k ρ)).toReal ∧
    (volume (tile k ρ)).toReal = (2 * (1 + k / 2) * ρ) ^ 2 ∧
    (meshCount ρ + 1 : ℕ) ≤ (4 / ρ : ℝ) ∧
    apexSweep k ρ σ ⊆ ⋃ j : Fin (meshCount ρ + 1), cylinder k ρ σ j ∧
    (∑ j : Fin (meshCount ρ + 1), weightedArea h k ρ σ j) ≤
      16 * (1 + k / 2) ^ 2 * ρ