OAI/Combinatorics/UniformKServer/TreeRounding.lean
51 declarations, 0 contain sorry, 0 declared as axioms
- structure
OAI.UniformKServer.TreeRounding.Shapeline 11 - abbrev
OAI.UniformKServer.TreeRounding.Vertexline 15 - def
OAI.UniformKServer.TreeRounding.Childrenline 17 - instance
OAI.UniformKServer.TreeRounding.(instance at line 20)line 20 - def
OAI.UniformKServer.TreeRounding.parkline 26 - def
OAI.UniformKServer.TreeRounding.intParkline 29 - structure
OAI.UniformKServer.TreeRounding.Allocationline 32 - def
OAI.UniformKServer.TreeRounding.Roundedline 38 - structure
OAI.UniformKServer.TreeRounding.Lawline 43 - def
OAI.UniformKServer.TreeRounding.meanline 52 - structure
OAI.UniformKServer.TreeRounding.Extensionline 54 - def
OAI.UniformKServer.TreeRounding.movementline 60 - def
OAI.UniformKServer.TreeRounding.variationline 65 - abbrev
OAI.UniformKServer.TreeRounding.Localline 71 - def
OAI.UniformKServer.TreeRounding.localRealline 73 - def
OAI.UniformKServer.TreeRounding.localIntline 77 - theorem
OAI.UniformKServer.TreeRounding.sum_localRealline 81 - theorem
OAI.UniformKServer.TreeRounding.sum_localIntline 86 - theorem
OAI.UniformKServer.TreeRounding.cast_intParkline 91 - theorem
OAI.UniformKServer.TreeRounding.mean_subline 95 - theorem
OAI.UniformKServer.TreeRounding.mean_sumline 99 - theorem
OAI.UniformKServer.TreeRounding.mean_congrline 104 - theorem
OAI.UniformKServer.TreeRounding.mean_constline 108 - theorem
OAI.UniformKServer.TreeRounding.mean_monoline 111 - theorem
OAI.UniformKServer.TreeRounding.mean_nonnegline 115 - theorem
OAI.UniformKServer.TreeRounding.star_kernelline 120Source documentation
Make the kernel valid even at probability-zero states.
theorem star_kernel {Ω ι : Type} [Fintype Ω] [Fintype ι] (I : BalancedStar.Input Ω ι) : ∃ (g : Ω × Finset ι → ℝ) (y : Ω × Finset ι → ι → ℤ), (∀ z, 0 ≤ g z) ∧ (∀ ω, ∑ A, g (ω,A) = I.μ ω) ∧ (∀ z i, Balanced (I.b i) (y z i)) ∧ (∀ z, ∑ i, y z i = I.N z.1) ∧ (∀ i, ∑ z, g z * (y z i : ℝ) = I.b i) ∧ (∑ z, g z * ∑ i, |(y z i : ℝ) - (I.X z.1 i : ℝ)|) ≤ 32*BalancedStar.T I + 11*BalancedStar.imbalance I := by …Mentions: OAI.UniformKServer.BalancedStar.Input, OAI.UniformKServer.BalancedStar.T, OAI.UniformKServer.BalancedStar.imbalance
- theorem
OAI.UniformKServer.TreeRounding.extended_starline 167Source documentation
An extension of an already generated joint state preserves every old observable and permits completely correlated prescribed parent totals.
theorem extended_star (L : Law) {ι : Type} [Fintype ι] (a b : ι → ℝ) (ha : ∀ i, 0 ≤ a i) (hb : ∀ i, 0 ≤ b i) (X : L.State → ι → ℤ) (N : L.State → ℤ) (hX : ∀ s i, Balanced (a i) (X s i)) (hN : ∀ s, Balanced (∑ i, b i) (N s)) (hXm : ∀ i, mean L (fun s => (X s i : ℝ)) = a i) (hNm : mean L (fun s => (N s : ℝ)) = ∑ i, b i) : ∃ (L' : Law) (π : L'.State → L.State) (Y : L'.State → ι → ℤ), (∀ f : L.State → ℝ, mean L' (f ∘ π) = mean L f) ∧ (∀ s i, Balanced (b i) (Y s i)) ∧ (∀ s, ∑ i, Y s i = N (π s)) ∧ (∀ i, mean L' (fun s => (Y s i : ℝ)) = b i) ∧ …Mentions: OAI.UniformKServer.TreeRounding.Law, OAI.UniformKServer.TreeRounding.mean
- def
OAI.UniformKServer.TreeRounding.assignedline 197 - def
OAI.UniformKServer.TreeRounding.localMovementline 200 - def
OAI.UniformKServer.TreeRounding.nodeMovementline 205 - def
OAI.UniformKServer.TreeRounding.localVariationline 209 - structure
OAI.UniformKServer.TreeRounding.Goodline 212 - def
OAI.UniformKServer.TreeRounding.assignChildrenline 222 - theorem
OAI.UniformKServer.TreeRounding.parent_ne_selfline 227 - theorem
OAI.UniformKServer.TreeRounding.assigned_currentline 234 - theorem
OAI.UniformKServer.TreeRounding.assign_childline 239 - theorem
OAI.UniformKServer.TreeRounding.assign_unchangedline 246 - theorem
OAI.UniformKServer.TreeRounding.assign_earlierline 254 - theorem
OAI.UniformKServer.TreeRounding.assign_localline 266 - theorem
OAI.UniformKServer.TreeRounding.assign_old_localline 283 - theorem
OAI.UniformKServer.TreeRounding.old_local_meanline 294 - theorem
OAI.UniformKServer.TreeRounding.good_stepline 309 - theorem
OAI.UniformKServer.TreeRounding.good_zeroline 427 - theorem
OAI.UniformKServer.TreeRounding.good_allline 451 - theorem
OAI.UniformKServer.TreeRounding.sum_childrenline 465 - theorem
OAI.UniformKServer.TreeRounding.weighted_childrenline 471 - theorem
OAI.UniformKServer.TreeRounding.weight_separationline 489 - theorem
OAI.UniformKServer.TreeRounding.localVariation_leline 502 - theorem
OAI.UniformKServer.TreeRounding.childMovement_leline 526 - theorem
OAI.UniformKServer.TreeRounding.tree_roundingline 540Source documentation
Exact companion proposition rounding-global for one conditional finite update. Geometric separation tau ≥22 is stated as 22*w_child ≤ w_parent, which includes the exact source weights r_j. No local kernels are assumed.
theorem tree_rounding {n k : ℕ} (S : Shape n) (w : Vertex n → ℝ) (hw : ∀ v, 0 ≤ w v) (hsep : ∀ v, v ≠ 0 → 22*w v ≤ w (S.parent v)) (a b : Allocation S k) (L : Law) (X : L.State → Vertex n → ℤ) (hX : ∀ s, Rounded a (X s)) (hmean : ∀ v, mean L (fun s => (X s v : ℝ)) = a.amount v) : ∃ E : Extension L n, (∀ s, Rounded b (E.value s)) ∧ (∀ v, mean E.law (fun s => (E.value s v : ℝ)) = b.amount v) ∧ movement S w L X E ≤ 132 * variation w a b := by …Mentions: OAI.UniformKServer.TreeRounding.Shape, OAI.UniformKServer.TreeRounding.Vertex, OAI.UniformKServer.TreeRounding.Allocation, OAI.UniformKServer.TreeRounding.Law, OAI.UniformKServer.TreeRounding.Rounded, OAI.UniformKServer.TreeRounding.mean, OAI.UniformKServer.TreeRounding.Extension, OAI.UniformKServer.TreeRounding.movement, OAI.UniformKServer.TreeRounding.variation
- theorem
OAI.UniformKServer.TreeRounding.tree_initializationline 613Source documentation
The independent BalancedRepair.initial rounding: no movement is charged for selecting it.
theorem tree_initialization {n k : ℕ} (S : Shape n) (a : Allocation S k) : ∃ (L : Law) (X : L.State → Vertex n → ℤ), (∀ s, Rounded a (X s)) ∧ (∀ v, mean L (fun s => (X s v : ℝ)) = a.amount v) := by …Mentions: OAI.UniformKServer.TreeRounding.Shape, OAI.UniformKServer.TreeRounding.Allocation, OAI.UniformKServer.TreeRounding.Law, OAI.UniformKServer.TreeRounding.Vertex, OAI.UniformKServer.TreeRounding.Rounded, OAI.UniformKServer.TreeRounding.mean