Offline · exact source
Exact Lean source

YoungUniformLocalSampleShape

formalization/Cloning/YoungUniformLocalSampleShape.lean

Source hash: 62d071a1449eb706155171b89f4f1bf54d089d6ac3ff2554b67748b67b712f80

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Cloning.YoungUniformLocalLabels
2 
3/-! Finite physical Young labels for the actual rescaled cell of a point.
4The finite completion agrees with the full affine label eventually, as proved
5from positivity and the strict limiting spectrum. -/
6 
7noncomputable section
8open scoped BigOperators Topology Classical
9open Filter
10namespace Cloning.YoungHyperplane
11open Cloning.YoungGeneral
12set_option backward.isDefEq.respectTransparency false
13set_option maxHeartbeats 800000
14 
15def sampleShape (d N : ℕ) (p : Fin (d + 1) → ℝ) (x : rootSpace d) : Shape (d + 1) N :=
16  fun i ↦ ⟨min ((sampleLabel d N p x).1 i).toNat N, Nat.lt_succ_of_le (min_le_right _ _)⟩
17 
18theorem sampleLabel_toNat_sum (d N : ℕ) (p : Fin (d + 1) → ℝ) (x : rootSpace d)
19    (hpos : ∀ i, 0 ≤ (sampleLabel d N p x).1 i) :
20    (∑ i, ((sampleLabel d N p x).1 i).toNat) = N := by
21  have h : (∑ i, (((sampleLabel d N p x).1 i).toNat : ℤ)) = (N : ℤ) := by
22    simp_rw [Int.toNat_of_nonneg (hpos _)]
23    exact (sampleLabel d N p x).2
24  exact_mod_cast h
25 
26theorem sampleShape_apply (d N : ℕ) (p : Fin (d + 1) → ℝ) (x : rootSpace d)
27    (hpos : ∀ i, 0 ≤ (sampleLabel d N p x).1 i) (i : Fin (d + 1)) :
28    (sampleShape d N p x i).val = ((sampleLabel d N p x).1 i).toNat := by
29  have h := Finset.single_le_sum (fun j (_ : j ∈ Finset.univ) ↦
30    Nat.zero_le (((sampleLabel d N p x).1 j).toNat)) (Finset.mem_univ i)
31  rw [sampleLabel_toNat_sum d N p x hpos] at h
32  exact min_eq_left h
33 
34theorem sampleShape_cast (d N : ℕ) (p : Fin (d + 1) → ℝ) (x : rootSpace d)
35    (hpos : ∀ i, 0 ≤ (sampleLabel d N p x).1 i) (i : Fin (d + 1)) :
36    ((sampleShape d N p x i).val : ℤ) = (sampleLabel d N p x).1 i := by
37  rw [sampleShape_apply d N p x hpos i, Int.toNat_of_nonneg (hpos i)]
38 
39theorem sampleShape_sum (d N : ℕ) (p : Fin (d + 1) → ℝ) (x : rootSpace d)
40    (hpos : ∀ i, 0 ≤ (sampleLabel d N p x).1 i) :
41    (∑ i, (sampleShape d N p x i).val) = N := by
42  simp_rw [sampleShape_apply d N p x hpos]
43  exact sampleLabel_toNat_sum d N p x hpos
44 
45theorem shapeLattice_sampleShape (d N : ℕ) (p : Fin (d + 1) → ℝ) (x : rootSpace d)
46    (hpos : ∀ i, 0 ≤ (sampleLabel d N p x).1 i) :
47    shapeLattice d N (sampleShape d N p x) = sampleLabel d N p x := by
48  apply Subtype.ext
49  funext i
50  rw [shapeLattice_apply d N _ (sampleShape_sum d N p x hpos), sampleShape_cast d N p x hpos]
51 
52theorem sampleShape_antitone (d N : ℕ) (p : Fin (d + 1) → ℝ) (x : rootSpace d)
53    (hpos : ∀ i, 0 ≤ (sampleLabel d N p x).1 i)
54    (hanti : Antitone (sampleLabel d N p x).1) :
55    Antitone (fun i ↦ (sampleShape d N p x i).val) := by
56  intro i j hij
57  have h := hanti hij
58  rw [← sampleShape_cast d N p x hpos j, ← sampleShape_cast d N p x hpos i] at h
59  exact_mod_cast h
60 
61/-- The finite physical shape eventually is exactly the full cell label and
62satisfies every physical partition constraint. -/
63theorem eventually_sampleShape_valid (d : ℕ) (n : ℕ → ℕ) (hn : Tendsto n atTop atTop)
64    (p : ℕ → Fin (d + 1) → ℝ) (hp : ∀ k, ∑ i, p k i = 1)
65    (p₀ : Fin (d + 1) → ℝ) (hp₀ : ∀ i, 0 < p₀ i) (hord : StrictAnti p₀)
66    (hlim : ∀ i, Tendsto (fun k ↦ p k i) atTop (𝓝 (p₀ i))) (x : rootSpace d) :
67    ∀ᶠ k in atTop,
68      Antitone (fun i ↦ (sampleShape d (n k) (p k) x i).val) ∧
69      (∑ i, (sampleShape d (n k) (p k) x i).val) = n k ∧
70      shapeLattice d (n k) (sampleShape d (n k) (p k) x) = sampleLabel d (n k) (p k) x := by
71  filter_upwards [eventually_sampleLabel_partition d n hn p hp p₀ hp₀ hord hlim x] with k hk
72  exact ⟨sampleShape_antitone d (n k) (p k) x hk.1 hk.2,
73    sampleShape_sum d (n k) (p k) x hk.1, shapeLattice_sampleShape d (n k) (p k) x hk.1⟩
74 
75theorem sampleShape_ratio_tendsto (d : ℕ) (n : ℕ → ℕ) (hn : Tendsto n atTop atTop)
76    (p : ℕ → Fin (d + 1) → ℝ) (hp : ∀ k, ∑ i, p k i = 1)
77    (p₀ : Fin (d + 1) → ℝ) (hp₀ : ∀ i, 0 < p₀ i) (hord : StrictAnti p₀)
78    (hlim : ∀ i, Tendsto (fun k ↦ p k i) atTop (𝓝 (p₀ i))) (x : rootSpace d)
79    (i : Fin (d + 1)) :
80    Tendsto (fun k ↦ ((sampleShape d (n k) (p k) x i).val : ℝ) / (n k : ℝ))
81      atTop (𝓝 (p₀ i)) := by
82  apply (sampleLabel_ratio_tendsto d n hn p hp p₀ hlim x i).congr'
83  filter_upwards [eventually_sampleLabel_partition d n hn p hp p₀ hp₀ hord hlim x] with k hk
84  congr 1
85  exact_mod_cast (sampleShape_cast d (n k) (p k) x hk.1 i).symm
86 
87end Cloning.YoungHyperplane