OAI/Combinatorics/KServer/Allocation.lean
169 declarations, 0 contain sorry, 0 declared as axioms
The exact source primitives installed in the actual affine minimizer recursion. The coefficients use raw core flags; fine caps are deliberately absent. The zero-potential cases do not evaluate the marked denominator.
- structure
OAI.KServer.SimplexFamilies.Dataline 20 - def
OAI.KServer.SimplexFamilies.Kline 33 - def
OAI.KServer.SimplexFamilies.Zline 35 - def
OAI.KServer.SimplexFamilies.coreline 37 - def
OAI.KServer.SimplexFamilies.potentialline 39 - def
OAI.KServer.SimplexFamilies.coefficientline 42 - lemma
OAI.KServer.SimplexFamilies.K_continuousline 47 - lemma
OAI.KServer.SimplexFamilies.Z_continuousline 56 - lemma
OAI.KServer.SimplexFamilies.coefficient_continuousline 64 - def
OAI.KServer.SimplexFamilies.familyline 73 - lemma
OAI.KServer.SimplexFamilies.value_eqline 84Source documentation
Algebraic equality with the literal sum of the source's improper integrals. In particular the family does not substitute another potential.
lemma value_eq (C ell : ℝ) (d : Data J R) (p : J × R → ℝ) (a : J → ℝ) (ha : a ∈ ChangingDomains.simplex d.active) : (family C ell).value d p a=potential C ell d (core d p) a := by …Mentions: OAI.KServer.SimplexFamilies.Data, OAI.KServer.ChangingDomains.simplex, OAI.KServer.SimplexFamilies.family, OAI.KServer.SimplexFamilies.potential, OAI.KServer.SimplexFamilies.core
- lemma
OAI.KServer.SimplexFamilies.value_boundline 111Source documentation
Uniform endpoint bound from the same dimension-free rank slopes; the finite number of coordinates may occur only in this additive endpoint.
lemma value_bound (C ell : ℝ) (d : Data J R) (p : J × R → ℝ) (a : J → ℝ) {L : ℝ} (hc : ∀ ir, |coefficient C ell d a ir| ≤ L) (hp : ∀ ir, p ir ∈ Set.Icc 0 1) : |(family C ell).value d p a| ≤ L*Fintype.card (J × R) := by …Mentions: OAI.KServer.SimplexFamilies.Data, OAI.KServer.SimplexFamilies.coefficient, OAI.KServer.SimplexFamilies.family
- def
OAI.KServer.SimplexFamilies.regularline 122 - lemma
OAI.KServer.SimplexFamilies.regular_coefficient_boundline 136 - def
OAI.KServer.SimplexFamilies.markedline 164Source documentation
The marked base point is exactly one; no value with
u=0is accepted.def marked (A : Finset J) (flags : J → R → Bool) (o : J) (h eta : J → ℝ) (u : ℝ) (hu : 0 < u) (hu1 : u ≤ 1) (hh : ∀ i ≠ o, 1 ≤ h i) : Data J R where …Mentions: OAI.KServer.SimplexFamilies.Data
- lemma
OAI.KServer.SimplexFamilies.marked_coefficient_boundline 192 - def
OAI.KServer.SimplexFamilies.automaticline 241Source documentation
The automatic empty/singleton rule is a genuine zero potential, not a singular marked potential evaluated at a zero side parameter.
def automatic (A : Finset J) (flags : J → R → Bool) : Data J R := …
Mentions: OAI.KServer.SimplexFamilies.Data
- lemma
OAI.KServer.SimplexFamilies.automatic_valueline 244 - def
OAI.KServer.SimplexTracker.simplexline 258 - def
OAI.KServer.SimplexTracker.potentialline 260 - def
OAI.KServer.SimplexTracker.movementline 262 - def
OAI.KServer.SimplexTracker.objectiveline 264 - lemma
OAI.KServer.SimplexTracker.max_coordinateline 267 - lemma
OAI.KServer.SimplexTracker.weighted_deficitline 272Source documentation
Quantitative deficit from replacing alpha_i by alpha_i/(1+eta_i).
lemma weighted_deficit {a h η : ι → ℝ} {ct ell ηmax : ℝ} (ha : a ∈ simplex) (hh : ∀ i, 0 ≤ h i) (hc : 0 < ct) (hl : 0 < ell) (hη : ∀ i, η i = ct * h i / ell) (hmax : ∀ i, η i ≤ ηmax) : ∑ i, a i / (1 + η i) ≤ 1 - ct / (ell * (1 + ηmax)) * ∑ i, a i * h i := by …Mentions: OAI.KServer.SimplexTracker.simplex
- lemma
OAI.KServer.SimplexTracker.exists_negative_derivativeline 302Source documentation
The derivative contradiction in eq:alpha-derivative-contradiction, with coefficients general enough to include the marked denominator.
lemma exists_negative_derivative {a h η F B γ : ι → ℝ} {ct ell ηmax Cα CF S : ℝ} (ha : a ∈ simplex) (hh : ∀ i, 0 ≤ h i) (hc : 0 < ct) (hl : 0 < ell) (hη : ∀ i, η i = ct * h i / ell) (hmax : ∀ i, η i ≤ ηmax) (hCa : 0 < Cα) (_hCF : 0 ≤ CF) (hS : 0 < S) (hB : ∑ i, B i = S) (hF : ∀ i, 0 ≤ F i) (hT : 0 < ∑ i, a i * h i) (hden : ∑ i, a i * F i ≤ CF * ∑ i, a i * h i) (hgap : 2 * CF * (1 + ηmax) < Cα * ct) (hidentity : ∀ i, a i * F i / (1 + η i) * γ i = Cα * ell * (S * (a i / (1 + η i)) - B i)) : ∃ i, γ i < -2 * S := by …Mentions: OAI.KServer.SimplexTracker.simplex
- lemma
OAI.KServer.SimplexTracker.simplex_isCompactline 358 - lemma
OAI.KServer.SimplexTracker.objective_continuousOnline 369 - lemma
OAI.KServer.SimplexTracker.exists_minimizerline 381 - lemma
OAI.KServer.SimplexTracker.minimizer_paymentline 386 - lemma
OAI.KServer.SimplexTracker.sum_replaceline 395 - def
OAI.KServer.SimplexTracker.transferline 409Source documentation
Transfer epsilon from donor i to receiver j, exactly as in §04.
def transfer [DecidableEq ι] (a : ι → ℝ) (i j : ι) (ε : ℝ) : ι → ℝ := …
- lemma
OAI.KServer.SimplexTracker.sum_transferline 412 - lemma
OAI.KServer.SimplexTracker.transfer_mem_simplexline 418 - lemma
OAI.KServer.SimplexTracker.transfer_min_comparisonline 430 - lemma
OAI.KServer.SimplexTracker.minimizer_derivative_gapline 449 - lemma
OAI.KServer.SimplexTracker.minimizer_not_inward_atBotline 475Source documentation
A singular inward slope cannot occur at a constrained global minimum: there is always a positive donor in the unit simplex.
lemma minimizer_not_inward_atBot [DecidableEq ι] {f : ι → ℝ → ℝ} {S : ℝ} {a₀ a : ι → ℝ} (hS : 0 ≤ S) (ha : a ∈ simplex) (hm : IsMinOn (objective f S a₀) simplex a) (hderiv : ∀ i, 0 < a i → DifferentiableAt ℝ (f i) (a i)) {j : ι} (hj : a j = 0) : ¬ Tendsto (fun ε : ℝ => (f j ε - f j 0) / ε) (𝓝[>] 0) atBot := by …Mentions: OAI.KServer.SimplexTracker.simplex, OAI.KServer.SimplexTracker.objective
- lemma
OAI.KServer.SimplexTracker.minimizer_feasibleline 516Source documentation
Complete minimizer feasibility reduction, using the genuine derivative and singular endpoint properties of the source primitives.
lemma minimizer_feasible [DecidableEq ι] {f : ι → ℝ → ℝ} {a₀ a h η F B : ι → ℝ} {ct ell ηmax Cα CF S : ℝ} (ha : a ∈ simplex) (hm : IsMinOn (objective f S a₀) simplex a) (hh : ∀ i, 0 ≤ h i) (hc : 0 < ct) (hl : 0 < ell) (hη : ∀ i, η i = ct * h i / ell) (hmax : ∀ i, η i ≤ ηmax) (hCa : 0 < Cα) (hCF : 0 ≤ CF) (hS : 0 < S) (hB0 : ∀ i, 0 ≤ B i) (hB : ∑ i, B i = S) (hF : ∀ i, 0 ≤ F i) (hFp : ∀ i, 0 < a i → 0 < F i) (hT : 0 < ∑ i, a i * h i) (hden : ∑ i, a i * F i ≤ CF * ∑ i, a i * h i) (hgap : 2 * CF * (1 + ηmax) < Cα * ct) (hderiv : ∀ i, 0 < a i → HasDerivAt (f i) …Mentions: OAI.KServer.SimplexTracker.simplex, OAI.KServer.SimplexTracker.objective
- lemma
OAI.KServer.Allocation.simplex_weight_posline 584 - lemma
OAI.KServer.Allocation.log_inverse_nonneg_closedline 595 - lemma
OAI.KServer.Allocation.exists_simplex_updateline 603Source documentation
The exact integral update, including compact existence, singular endpoint exclusion, feasibility and payment. Its analytic premises are proved above for both displayed denominator types; no convexity is presumed.
lemma exists_simplex_update [DecidableEq ι] {F : ι → ℝ → ℝ} {a₀ h c B base : ι → ℝ} {ct ell ηmax Cα CF : ℝ} (ha₀ : a₀ ∈ simplex) (hh : ∀ i, 0 < h i) (hc : 0 < ct) (hl : 0 < ell) (hmax : ∀ i, ct * h i / ell ≤ ηmax) (hCa : 0 < Cα) (hCF : 0 ≤ CF) (hB0 : ∀ i, 0 ≤ B i) (hb : ∀ i, base i ∈ Set.Icc 0 1) (hFc : ∀ i, Continuous (F i)) (hci : ∀ i, 0 < c i) (hF : ∀ i y, 0 ≤ y → c i * (1 + y)^2 ≤ F i y) (hdecay : ∀ i, Tendsto (fun s : ℝ => s * F i (Real.log (1 / s))) (𝓝[>] 0) (𝓝 0)) (hden : ∀ a ∈ simplex, ∑ i, a i * F i (Real.log (1 / a i)) ≤ CF * ∑ i, a i * h i) (hgap : 2 * CF * (1 + ηmax) < Cα * ct) : let S := ∑ i, B i … - lemma
OAI.KServer.Allocation.regular_simplex_updateline 652Source documentation
Instantiation on a domain without a dominant child, with the manuscript's regular denominators and base point zero, at all simplex points including zero.
lemma regular_simplex_update [DecidableEq ι] {a₀ h B : ι → ℝ} {ct ell ηmax Cα Cexp : ℝ} (ha₀ : a₀ ∈ simplex) (hh : ∀ i, 1 ≤ h i) (hc : 0 < ct) (hl : 0 < ell) (hmax : ∀ i, ct * h i / ell ≤ ηmax) (hCa : 0 < Cα) (hB0 : ∀ i, 0 ≤ B i) (hCexp : 0 ≤ Cexp) (htail : ∑ i, Real.exp (-h i) ≤ Cexp) (hgap : 2 * (25 + 32 * Cexp) * (1 + ηmax) < Cα * ct) : let S := ∑ i, B i … - lemma
OAI.KServer.Allocation.marked_simplex_updateline 677Source documentation
Marked-domain instantiation; the base point is one exactly on the marked coordinate, preserving the source's cancellation under parameter changes.
lemma marked_simplex_update [DecidableEq ι] {a₀ h B : ι → ℝ} {ct ell ηmax Cα Cexp c u H : ℝ} (o : ι) (ha₀ : a₀ ∈ simplex) (hu : 0 < u) (hu1 : u ≤ 1) (hH : H = 1 + Real.log (1 / u)) (ho : h o = u) (hh : ∀ i ≠ o, 1 ≤ h i) (hc : 0 < ct) (hl : 0 < ell) (hmax : ∀ i, ct * h i / ell ≤ ηmax) (hCa : 0 < Cα) (hB0 : ∀ i, 0 ≤ B i) (hCexp : 0 ≤ Cexp) (hsideC : 0 < c) (hsideC1 : c ≤ 1) (hside : ∀ i ≠ o, c * H ≤ h i) (htail : ∑ i ∈ Finset.univ.erase o, Real.exp (-h i) ≤ Cexp * u) (hgap : 2 * ((25 * c + 2 + 32 * Cexp) / c) * (1 + ηmax) < Cα * ct) : let S := ∑ i, B i … - def
OAI.KServer.SupportedAllocation.restrictline 748 - def
OAI.KServer.SupportedAllocation.extendline 750 - lemma
OAI.KServer.SupportedAllocation.extend_apply_memline 753 - lemma
OAI.KServer.SupportedAllocation.extend_apply_not_memline 757 - lemma
OAI.KServer.SupportedAllocation.restrict_extendline 761 - lemma
OAI.KServer.SupportedAllocation.extend_restrictline 765 - lemma
OAI.KServer.SupportedAllocation.sum_restrictline 773 - lemma
OAI.KServer.SupportedAllocation.sum_extendline 778 - lemma
OAI.KServer.SupportedAllocation.restrict_simplexline 783 - lemma
OAI.KServer.SupportedAllocation.extend_simplexline 789 - lemma
OAI.KServer.SupportedAllocation.movement_restrictline 800 - lemma
OAI.KServer.SupportedAllocation.movement_extendline 806 - lemma
OAI.KServer.SupportedAllocation.potential_restrictline 813 - lemma
OAI.KServer.SupportedAllocation.restrict_isMinline 821Source documentation
Restriction is exact, including both the movement penalty and the literal source potentials. No dummy inactive coordinate enters the denominator bound.
lemma restrict_isMin {A : Finset J} (hA : A.Nonempty) {f : J → ℝ → ℝ} {S : ℝ} {a a₀ : J → ℝ} (ha : a ∈ ChangingDomains.simplex A) (ha₀ : a₀ ∈ ChangingDomains.simplex A) (hf : ∀ i∉A, f i 0=0) (hm : IsMinOn (fun b => (∑ i, f i (b i))+S*ChangingDomains.variation b a₀) (ChangingDomains.simplex A) a) : IsMinOn (SimplexTracker.objective (fun i : A => f i) S (restrict A a₀)) SimplexTracker.simplex (restrict A a) := by …Mentions: OAI.KServer.ChangingDomains.simplex, OAI.KServer.ChangingDomains.variation, OAI.KServer.SimplexTracker.objective, OAI.KServer.SupportedAllocation.restrict, OAI.KServer.SimplexTracker.simplex
- lemma
OAI.KServer.Allocation.every_simplex_minimizer_feasibleline 851Source documentation
The feasibility argument holds for every attained minimizer, in particular for the fixed noncomputable choice in the causal recurrence.
lemma every_simplex_minimizer_feasible {F : ι → ℝ → ℝ} {a₀ a h c B base : ι → ℝ} {ct ell ηmax Cα CF : ℝ} (ha : a ∈ simplex) (hh : ∀ i, 0 < h i) (hc : 0 < ct) (hl : 0 < ell) (hmax : ∀ i, ct*h i/ell ≤ ηmax) (hCa : 0 < Cα) (hCF : 0 ≤ CF) (hB0 : ∀ i, 0 ≤ B i) (hb : ∀ i, base i ∈ Set.Icc 0 1) (hFc : ∀ i, Continuous (F i)) (hci : ∀ i, 0 < c i) (hF : ∀ i y, 0 ≤ y → c i*(1+y)^2 ≤ F i y) (hdecay : ∀ i, Tendsto (fun s : ℝ => s*F i (Real.log (1/s))) (𝓝[>] 0) (𝓝 0)) (hden : ∀ b ∈ simplex, ∑ i, b i*F i (Real.log (1/b i)) ≤ CF*∑ i, b i*h i) (hgap : 2*CF*(1+ηmax) < Cα*ct) (hm : IsMinOn (objective (fun i => primitive (F i) Cα ell (ct*h i/ell) (∑ j, B j) (B i) (base i)) (∑ i, B i) a₀) simplex a) : … - lemma
OAI.KServer.Allocation.every_regular_minimizer_feasibleline 897 - lemma
OAI.KServer.SupportedAllocation.regular_supported_minimizer_feasibleline 926Source documentation
Uniform feasibility on the changing active domain. Its exp-tail hypothesis is a sum over active children only, exactly as in the source.
lemma regular_supported_minimizer_feasible {A : Finset J} (hA : A.Nonempty) {a₀ a h B : J → ℝ} {ct ell ηmax Cα Cexp : ℝ} (ha : a ∈ ChangingDomains.simplex A) (ha₀ : a₀ ∈ ChangingDomains.simplex A) (hh : ∀ i∈A, 1≤h i) (hc : 0<ct) (hl : 0<ell) (hmax : ∀ i∈A, ct*h i/ell≤ηmax) (hCa : 0<Cα) (hB0 : ∀ i, 0≤B i) (hBout : ∀ i∉A, B i=0) (hCexp : 0≤Cexp) (htail : ∑ i∈A, Real.exp (-h i)≤Cexp) (hgap : 2*(25+32*Cexp)*(1+ηmax)<Cα*ct) (hm : IsMinOn (fun b => (∑ i, primitive (regularF (h i)) Cα ell (ct*h i/ell) (∑ j, B j) (B i) 0 (b i))+(∑ i, B i)*ChangingDomains.variation b a₀) (ChangingDomains.simplex A) a) : ∀ i, (∑ j, B j)*a i≤(1+ct*h i/ell)*B i := by …Mentions: OAI.KServer.ChangingDomains.simplex, OAI.KServer.ChangingDomains.variation
- lemma
OAI.KServer.Allocation.every_marked_minimizer_feasibleline 964 - lemma
OAI.KServer.SupportedAllocation.marked_supported_minimizer_feasibleline 1038Source documentation
Feasibility for the actual changing marked domain; inactive coordinates are zero instead of being assigned a spurious positive denominator weight.
lemma marked_supported_minimizer_feasible {A : Finset J} {o : J} (hoA : o ∈ A) {a₀ a h B : J → ℝ} {ct ell ηmax Cα Cexp c u H : ℝ} (ha : a ∈ ChangingDomains.simplex A) (ha₀ : a₀ ∈ ChangingDomains.simplex A) (hu : 0 < u) (hu1 : u ≤ 1) (hH : H = 1 + Real.log (1 / u)) (ho : h o = u) (hh : ∀ i∈A, i ≠ o → 1 ≤ h i) (hc : 0<ct) (hl : 0<ell) (hmax : ∀ i∈A, ct*h i/ell ≤ ηmax) (hCa : 0<Cα) (hB0 : ∀ i, 0≤B i) (hBout : ∀ i∉A, B i=0) (hCexp : 0≤Cexp) (hsideC : 0<c) (hsideC1 : c≤1) (hside : ∀ i∈A, i≠o → c*H≤h i) (htail : ∑ i∈A.erase o, Real.exp (-h i) ≤ Cexp*u) (hgap : 2*((25*c+2+32*Cexp)/c)*(1+ηmax)<Cα*ct) (hm : IsMinOn (fun b => (∑ i, primitive (if i=o then markedF u H else regularF (h i)) Cα ell (ct*h i/ell) (∑ j, B j) (B i) (if i=o then 1 else 0) (b i))+ …Mentions: OAI.KServer.ChangingDomains.simplex
- lemma
OAI.KServer.AdaptiveAllocation.update_isMinline 1098 - lemma
OAI.KServer.AdaptiveAllocation.regular_update_feasibleline 1110 - lemma
OAI.KServer.AdaptiveAllocation.core_eqline 1135 - def
OAI.KServer.AdaptiveAllocation.preparedFlagsline 1141Source documentation
The prepared input is concrete and uses only new flags on the common old/new active domain, as in §04 (not intersection of old and new flags).
def preparedFlags (A B : Finset J) (g : J → R → Bool) : J → R → Bool := …
- def
OAI.KServer.AdaptiveAllocation.preparedInputline 1144 - lemma
OAI.KServer.AdaptiveAllocation.prepared_flags_outsideline 1148 - lemma
OAI.KServer.AdaptiveAllocation.prepared_input_outsideline 1154 - lemma
OAI.KServer.AdaptiveAllocation.regular_potential_zeroline 1160 - lemma
OAI.KServer.AdaptiveAllocation.nonneg_total_zeroline 1166 - lemma
OAI.KServer.AdaptiveAllocation.regular_transpose_valueline 1172 - lemma
OAI.KServer.AdaptiveAllocation.regular_input_boundline 1189 - lemma
OAI.KServer.AdaptiveAllocation.regular_parameter_jumpline 1200 - lemma
OAI.KServer.AdaptiveAllocation.total_variation_boundline 1237 - lemma
OAI.KServer.AdaptiveAllocation.transpose_capline 1243 - def
OAI.KServer.AdaptiveAllocation.regularPrepareline 1255Source documentation
This is the prepared minimizer from the manuscript; no drift inequality is an input to its definition.
def regularPrepare (C ell ct : ℝ) (A B : Finset J) (g : J → R → Bool) (h : J → ℝ) (hh : ∀ i, 1≤h i) (p : J × R → ℝ) (a : J → ℝ) : J → ℝ := … - def
OAI.KServer.AdaptiveAllocation.regularTransportline 1262Source documentation
Delete and insert zero coordinates following the prepared minimizing update, with a canonical simplex state only when its weight is exactly zero.
def regularTransport (C ell ct : ℝ) (A B : Finset J) (g : J → R → Bool) (h : J → ℝ) (hh : ∀ i, 1≤h i) (p : J × R → ℝ) (a : J → ℝ) : J → ℝ := … - lemma
OAI.KServer.AdaptiveAllocation.regular_transport_memline 1267 - lemma
OAI.KServer.AdaptiveAllocation.literal_update_paymentline 1290 - def
OAI.KServer.AdaptiveAllocation.regularStepline 1303Source documentation
The final update after genuine preparation and transport.
def regularStep (C ell ct : ℝ) (A B : Finset J) (g : J → R → Bool) (h h' : J → ℝ) (hh : ∀ i, 1≤h i) (hh' : ∀ i, 1≤h' i) (p : J × R → ℝ) (a : J → ℝ) : J → ℝ := … - lemma
OAI.KServer.AdaptiveAllocation.regular_step_paymentline 1310 - lemma
OAI.KServer.AdaptiveAllocation.marked_update_feasibleline 1390 - lemma
OAI.KServer.AdaptiveAllocation.marked_input_boundline 1416 - lemma
OAI.KServer.AdaptiveAllocation.marked_potential_zeroline 1429 - lemma
OAI.KServer.AdaptiveAllocation.marked_transpose_valueline 1436 - lemma
OAI.KServer.AdaptiveAllocation.simplex_side_weightline 1447 - lemma
OAI.KServer.AdaptiveAllocation.marked_parameter_jumpline 1463Source documentation
Marked parameter edits charge the dominant component only when
uchanges, and charge it to the side total, not the dominant mass.lemma marked_parameter_jump (A A' : Finset J) (hA' : A'.Nonempty) (f g : J → R → Bool) (o : J) (h h' eta eta' : J → ℝ) {u u' : ℝ} (hu : 0<u) (hu1 : u≤1) (hu' : 0<u') (hu1' : u'≤1) (hh : ∀ i≠o, 1≤h i) (hh' : ∀ i≠o, 1≤h' i) (he : ∀ i, eta i∈Set.Icc 0 1) (he' : ∀ i, eta' i∈Set.Icc 0 1) (heq : ∀ i, h i=h' i → eta i=eta' i) (heqo : u=u' → eta o=eta' o) (heo : eta o≤u) (heo' : eta' o≤u') {C ell : ℝ} (hC : 0≤C) (hl : 0≤ell) {B a : J → ℝ} (hB : ∀ i, 0≤B i) (ha : a∈ChangingDomains.simplex A') (hcap : ∀ i, (∑ j, B j)*a i≤(1+eta i)*B i) : |potential C ell (marked A' g o h' eta' u' hu' hu1' hh') B a- potential C ell (marked A f o h eta u hu hu1 hh) B a| ≤ …Mentions: OAI.KServer.ChangingDomains.simplex
- def
OAI.KServer.AdaptiveAllocation.markedPrepareline 1545 - def
OAI.KServer.AdaptiveAllocation.markedTransportline 1552 - lemma
OAI.KServer.AdaptiveAllocation.marked_transport_memline 1558 - def
OAI.KServer.AdaptiveAllocation.markedStepline 1579 - lemma
OAI.KServer.AdaptiveAllocation.marked_step_paymentline 1587 - def
OAI.KServer.SideTracker.primitiveline 1680Source documentation
The explicit integral in eq:side-primitive-explicit.
def primitive (c b θ z B D w : ℝ) : ℝ := …
- lemma
OAI.KServer.SideTracker.primitive_derivativeline 1685 - lemma
OAI.KServer.SideTracker.derivative_le_of_left_comparisonline 1710Source documentation
One-sided necessary optimality, allowing a nondifferentiable movement cost.
lemma derivative_le_of_left_comparison {f : ℝ → ℝ} {f' D x : ℝ} (hx : 0 < x) (hd : HasDerivAt f f' x) (hc : ∀ y ∈ Set.Icc 0 x, f x ≤ f y + D * (x - y)) : f' ≤ D := by … - lemma
OAI.KServer.SideTracker.neg_derivative_le_of_right_comparisonline 1727 - def
OAI.KServer.SideTracker.domainline 1747 - def
OAI.KServer.SideTracker.potentialline 1749 - def
OAI.KServer.SideTracker.movementline 1752 - def
OAI.KServer.SideTracker.objectiveline 1754 - lemma
OAI.KServer.SideTracker.movement_selfline 1757 - lemma
OAI.KServer.SideTracker.domain_isCompactline 1759 - lemma
OAI.KServer.SideTracker.primitive_continuousOnline 1770 - lemma
OAI.KServer.SideTracker.objective_continuousOnline 1775 - lemma
OAI.KServer.SideTracker.exists_minimizerline 1788 - lemma
OAI.KServer.SideTracker.minimizer_paymentline 1794 - lemma
OAI.KServer.SideTracker.sum_replaceline 1804 - lemma
OAI.KServer.SideTracker.replace_mem_domainline 1817 - lemma
OAI.KServer.SideTracker.coordinate_min_comparisonline 1828 - lemma
OAI.KServer.SideTracker.derivative_upper_violationline 1844 - lemma
OAI.KServer.SideTracker.derivative_lower_violationline 1869 - lemma
OAI.KServer.SideTracker.minimizer_upperline 1897Source documentation
Every minimizing update has the source's upper side feasibility.
lemma minimizer_upper {M b D Cw : ℝ} {θ z B w₀ w : ι → ℝ} (hb : 1 ≤ b) (hθ : ∀ i, 0 < θ i) (hz : ∀ i, 0 < z i) (hB : ∀ i, 0 ≤ B i) (hD : 0 ≤ D) (hM : ∀ i, b + θ i ≤ M) (hw : w ∈ domain Cw) (hm : IsMinOn (objective (8 * M) b θ z B D w₀) (domain Cw) w) : ∀ i, D * w i ≤ (b + θ i) * B i := by …Mentions: OAI.KServer.SideTracker.domain, OAI.KServer.SideTracker.objective
- lemma
OAI.KServer.SideTracker.minimizer_lowerline 1930Source documentation
The lower bound uses the slack proved from the upper bound, not a new assumption that the simplex constraint is inactive.
lemma minimizer_lower {M b D Cw : ℝ} {θ z B w₀ w : ι → ℝ} (hb : 1 ≤ b) (hθ : ∀ i, 0 < θ i) (hz : ∀ i, 0 < z i) (hB : ∀ i, 0 ≤ B i) (hD : 0 ≤ D) (hM : ∀ i, b + θ i ≤ M) (hCw : 2 * M < Cw) (hS : ∑ i, B i ≤ 2 * D) (hw : w ∈ domain Cw) (hm : IsMinOn (objective (8 * M) b θ z B D w₀) (domain Cw) w) : ∀ i, b * B i - θ i * z i * D ≤ D * w i := by …Mentions: OAI.KServer.SideTracker.domain, OAI.KServer.SideTracker.objective
- theorem
OAI.KServer.SideTracker.side_updateline 1973Source documentation
Section 04, Lemma side-tracker, with the explicit sufficient multiplier C'_w = 8M. No rank assumption or positivity assumption on D is added.
theorem side_update {M b D Cw : ℝ} {θ z B w₀ : ι → ℝ} (hb : 1 ≤ b) (hθ : ∀ i, 0 < θ i) (hz : ∀ i, 0 < z i) (hB : ∀ i, 0 ≤ B i) (hD : 0 ≤ D) (hM : ∀ i, b + θ i ≤ M) (hCw : 2 * M < Cw) (hw₀ : w₀ ∈ domain Cw) : ∃ w ∈ domain Cw, IsMinOn (objective (8 * M) b θ z B D w₀) (domain Cw) w ∧ (∀ i, D * w i ≤ (b + θ i) * B i) ∧ ((∑ i, B i) ≤ 2 * D → ∀ i, b * B i - θ i * z i * D ≤ D * w i) ∧ D * movement w w₀ ≤ potential (8 * M) b θ z B D w₀ - potential (8 * M) b θ z B D w := by …Mentions: OAI.KServer.SideTracker.domain, OAI.KServer.SideTracker.objective, OAI.KServer.SideTracker.movement, OAI.KServer.SideTracker.potential
- lemma
OAI.KServer.SideTracker.primitive_eq_integralline 1990Source documentation
The logarithmic formula is exactly the source's interval integral.
lemma primitive_eq_integral {c b θ z B D w : ℝ} (hθ : 0 < θ) (hz : 0 < z) (hw : 0 ≤ w) : primitive c b θ z B D w = c * ∫ s in (0 : ℝ)..w, (D * s - (b + θ / 2) * B + D * θ * z / 2) / (θ * (s + z)) := by …Mentions: OAI.KServer.SideTracker.primitive
- lemma
OAI.KServer.SideTracker.primitive_affine_inputsline 2017Source documentation
Affinity in (B,D), used before every update decision in the all-step filtering telescope. In particular the held-D part is constant.
lemma primitive_affine_inputs (c b θ z B₁ B₂ D₁ D₂ t w : ℝ) : primitive c b θ z ((1 - t) * B₁ + t * B₂) ((1 - t) * D₁ + t * D₂) w = (1 - t) * primitive c b θ z B₁ D₁ w + t * primitive c b θ z B₂ D₂ w := by …Mentions: OAI.KServer.SideTracker.primitive
- lemma
OAI.KServer.SideTracker.log_factorsline 2028 - lemma
OAI.KServer.SideTracker.side_log_boundline 2040 - def
OAI.KServer.SideTracker.Dcoefline 2074Source documentation
Coefficients of the actual primitive; all are nonnegative on the side domain. Their estimates use size-derived logarithmic cancellation.
def Dcoef (c θ z w : ℝ) : ℝ := …
- def
OAI.KServer.SideTracker.Bcoefline 2076 - lemma
OAI.KServer.SideTracker.primitive_coefficientsline 2079 - lemma
OAI.KServer.SideTracker.coefficients_nonnegline 2084 - lemma
OAI.KServer.SideTracker.Dcoef_boundline 2093 - lemma
OAI.KServer.SideTracker.Bcoef_boundline 2119 - lemma
OAI.KServer.SideTracker.primitive_component_boundline 2134 - lemma
OAI.KServer.SideTracker.side_z_identityline 2155 - lemma
OAI.KServer.SideTracker.potential_input_boundline 2162 - def
OAI.KServer.SideSupported.restrictline 2217 - def
OAI.KServer.SideSupported.extendline 2219 - lemma
OAI.KServer.SideSupported.extend_apply_memline 2222 - lemma
OAI.KServer.SideSupported.extend_apply_not_memline 2226 - lemma
OAI.KServer.SideSupported.restrict_extendline 2230 - lemma
OAI.KServer.SideSupported.extend_restrictline 2234 - lemma
OAI.KServer.SideSupported.sum_restrictline 2242 - lemma
OAI.KServer.SideSupported.sum_extendline 2247 - lemma
OAI.KServer.SideSupported.restrict_memline 2259 - lemma
OAI.KServer.SideSupported.extend_memline 2264 - lemma
OAI.KServer.SideSupported.sideDomain_compactline 2276 - lemma
OAI.KServer.SideSupported.movement_restrictline 2289 - lemma
OAI.KServer.SideSupported.potential_restrictline 2295 - lemma
OAI.KServer.SideSupported.restrict_isMinline 2303 - lemma
OAI.KServer.SideSupported.supported_feasibleline 2323 - structure
OAI.KServer.SideFamilies.Dataline 2356 - def
OAI.KServer.SideFamilies.coreline 2368 - def
OAI.KServer.SideFamilies.coefficientline 2371 - def
OAI.KServer.SideFamilies.offsetline 2374 - lemma
OAI.KServer.SideFamilies.Dcoef_continuousOnline 2377 - lemma
OAI.KServer.SideFamilies.Bcoef_continuousOnline 2386 - lemma
OAI.KServer.SideFamilies.coefficient_continuousline 2396 - lemma
OAI.KServer.SideFamilies.offset_continuousline 2405 - def
OAI.KServer.SideFamilies.familyline 2413 - lemma
OAI.KServer.SideFamilies.value_eqline 2425 - lemma
OAI.KServer.SideFamilies.update_feasibleline 2437 - lemma
OAI.KServer.SideFamilies.update_paymentline 2467 - lemma
OAI.KServer.SideFamilies.domain_coordinateline 2483 - def
OAI.KServer.SideFamilies.fromLogline 2489Source documentation
The exact side regularizers obtained from the stored log size.
def fromLog (A : Finset J) (f : J → R → Bool) (W b D cw ell : ℝ) (h : J → ℝ) (hW : 0≤W) (hcw : 0<cw) (hell : 0<ell) (hh : ∀ i, 1≤h i) : Data J R where …Mentions: OAI.KServer.SideFamilies.Data
- lemma
OAI.KServer.SideFamilies.fromLog_input_boundline 2503 - lemma
OAI.KServer.SideFamilies.parameter_jumpline 2525 - def
OAI.KServer.SideFamilies.prepareDataline 2567Source documentation
Synthetic ranks use the new flags on the intersection of active sets.
def prepareData (old new : Data J R) : Data J R := …
Mentions: OAI.KServer.SideFamilies.Data
- def
OAI.KServer.SideFamilies.prepareline 2570 - def
OAI.KServer.SideFamilies.transportline 2573 - def
OAI.KServer.SideFamilies.stepline 2576 - lemma
OAI.KServer.SideFamilies.prepare_memline 2579 - lemma
OAI.KServer.SideFamilies.transport_memline 2583 - lemma
OAI.KServer.SideFamilies.step_memline 2589 - lemma
OAI.KServer.SideFamilies.prepared_core_zeroline 2594 - lemma
OAI.KServer.SideFamilies.transport_paymentline 2598 - lemma
OAI.KServer.SideFamilies.transport_valueline 2612 - lemma
OAI.KServer.SideFamilies.step_paymentline 2643Source documentation
Local side edit payment for the actual two minimizers and deletion. The potential discrepancy terms will be bounded with the literal log parameters.
lemma step_payment (old new : Data J R) {M : ℝ} (hb : 1≤old.b) (hD : 0≤new.D) (hM : ∀ i∈old.active, old.b+old.θ i≤M) (hW : 2*M<old.W) (p : J × R → ℝ) (hp : ∀ ir, 0≤p ir) (a : J → ℝ) (ha : a∈ChangingDomains.sideDomain old.active old.W) (hWW : old.W=new.W) : new.D*ChangingDomains.variation (step (8*M) old new p a) a ≤ (family (8*M)).value old p a-(family (8*M)).value new p (step (8*M) old new p a)+ |(family (8*M)).value (prepareData old new) p a-(family (8*M)).value old p a|+ |(family (8*M)).value new p (transport (8*M) old new p a)- (family (8*M)).value (prepareData old new) p (transport (8*M) old new p a)| := by …Mentions: OAI.KServer.SideFamilies.Data, OAI.KServer.ChangingDomains.sideDomain, OAI.KServer.ChangingDomains.variation, OAI.KServer.SideFamilies.step, OAI.KServer.SideFamilies.family, OAI.KServer.SideFamilies.prepareData, OAI.KServer.SideFamilies.transport