Lean module · Coordinate-unit transport
BanditRLProof.OnlineUnitScaling
Generated source map for this Lean module.
Module map
Imports
BanditRLProof.OnlineSubgradientPolicy, BanditRLProof.OnlineHuber, BanditRLProof.OnlineAffineSubgradient, BanditRLProof.OnlineOptimalStep
Imported by
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
abbrev
BanditRL.OnlineUnitScaling.V
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.VReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
abbrev V : Domain (E := E)
def
BanditRL.OnlineUnitScaling.scaledLoss
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.scaledLossReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def scaledLoss (c : ℝ) (f : E → EReal) : E → EReal
def
BanditRL.OnlineUnitScaling.scaledEta
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.scaledEtaReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def scaledEta (c : ℝ) (η : ℕ → ℝ) : ℕ → ℝ
def
BanditRL.OnlineUnitScaling.scaledPolicy
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.scaledPolicyReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def scaledPolicy (c : ℝ) (p : SupportPolicy (E := E)) : SupportPolicy (E := E)
theorem
BanditRL.OnlineUnitScaling.unit_exponents
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.unit_exponentsReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem unit_exponents {D : Type*} [AddCommGroup D] (X L H : D) (h : H + (L - X) = X) : H = X + X - L
theorem
BanditRL.OnlineUnitScaling.regret_unit_exponents
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.regret_unit_exponentsReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem regret_unit_exponents {D : Type*} [AddCommGroup D] (X L : D) : (X + X - (X + X - L) = L) ∧ ((X + X - L) + (L - X) + (L - X) = L)
theorem
BanditRL.OnlineUnitScaling.inverse_loss
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.inverse_lossReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem inverse_loss (c : ℝ) (hc : 0 < c) (f : E → EReal) : scaledLoss c⁻¹ (scaledLoss c f) = f
theorem
BanditRL.OnlineUnitScaling.proper_scaled_loss
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.proper_scaled_lossReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem proper_scaled_loss (c : ℝ) (hc : 0 < c) (f : E → EReal) (hf : SourceProper f) : SourceProper (scaledLoss c f)
theorem
BanditRL.OnlineUnitScaling.subgradient_scaled
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.subgradient_scaledReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem subgradient_scaled (c : ℝ) (hc : 0 < c) (f : E → EReal) (hf : SourceProper f) (y g : E) (hg : g ∈ SourceSubdifferential f (c • y)) : c • g ∈ SourceSubdifferential (scaledLoss c f) y
theorem
BanditRL.OnlineUnitScaling.subdifferentiable_scaled
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.subdifferentiable_scaledReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem subdifferentiable_scaled (c : ℝ) (hc : 0 < c) (f : E → EReal) (hf : BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V f) : BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (scaledLoss c f)
theorem
BanditRL.OnlineUnitScaling.hasGradientAt_scaled
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.hasGradientAt_scaledReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem hasGradientAt_scaled (c : ℝ) (f : E → ℝ) (y g : E) (hf : HasGradientAt f g (c • y)) : HasGradientAt (fun z => f (c • z)) (c • g) y
theorem
BanditRL.OnlineUnitScaling.gradient_scaled
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.gradient_scaledReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gradient_scaled (c : ℝ) (f : E → ℝ) (y : E) (hf : DifferentiableAt ℝ f (c • y)) : gradient (fun z => f (c • z)) y = c • gradient f (c • y)
theorem
BanditRL.OnlineUnitScaling.step_scaling
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.step_scalingReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem step_scaling (c : ℝ) (hc : 0 < c) (η : ℝ) (x g : E) : c⁻¹ • (x - η • g) = c⁻¹ • x - (η / c ^ 2) • (c • g)
theorem
BanditRL.OnlineUnitScaling.wrong_step_scaling
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.wrong_step_scalingReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem wrong_step_scaling (c : ℝ) (hc : 0 < c) (η : ℝ) (x g : E) : c • (c⁻¹ • x - η • (c • g)) = x - (c ^ 2 * η) • g
theorem
BanditRL.OnlineUnitScaling.scaled_eta_positive
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.scaled_eta_positiveReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem scaled_eta_positive (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (t : ℕ) (hη : 0 < η t) : 0 < scaledEta c η t
theorem
BanditRL.OnlineUnitScaling.history_scaling
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.history_scalingReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem history_scaling (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (t : ℕ) : history V (scaledEta c η) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) t = fun i => c⁻¹ • history V η loss x₁ p t i
theorem
BanditRL.OnlineUnitScaling.output_scaling
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.output_scalingReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem output_scaling (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (t : ℕ) : output V (scaledEta c η) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) t = c⁻¹ • output V η loss x₁ p t
theorem
BanditRL.OnlineUnitScaling.selected_scaling
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.selected_scalingReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem selected_scaling (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (t : ℕ) : selected V (scaledEta c η) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) t = c • selected V η loss x₁ p t
theorem
BanditRL.OnlineUnitScaling.legal_feedback_scaling
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.legal_feedback_scalingReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem legal_feedback_scaling (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (T : ℕ) (hproper : ∀ t < T, SourceProper (loss t)) (hlegal : LegalFeedback V η loss x₁ p T) : LegalFeedback V (scaledEta c η) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) T
theorem
BanditRL.OnlineUnitScaling.loss_value_scaling
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.loss_value_scalingReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem loss_value_scaling (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (t : ℕ) : scaledLoss c (loss t) (output V (scaledEta c η) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) t) = loss t (output V η loss x₁ p t)
theorem
BanditRL.OnlineUnitScaling.regret_scaling
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.regret_scalingReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem regret_scaling (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (u : E) (T : ℕ) : regret V (scaledEta c η) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) (c⁻¹ • u) T = regret V η loss x₁ p u T
theorem
BanditRL.OnlineUnitScaling.wrong_step_output
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.wrong_step_outputReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem wrong_step_output (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (t : ℕ) : c • output V η (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) t = output V (fun s => c ^ 2 * η s) loss x₁ p t
theorem
BanditRL.OnlineUnitScaling.distance_square_scaling
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.distance_square_scalingReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem distance_square_scaling (c : ℝ) (hc : 0 < c) (x u : E) : ‖c⁻¹ • x - c⁻¹ • u‖ ^ 2 = ‖x - u‖ ^ 2 / c ^ 2
theorem
BanditRL.OnlineUnitScaling.energy_scaling
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.energy_scalingReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem energy_scaling (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (T : ℕ) : (∑ t ∈ range T, ‖selected V (scaledEta c η) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) t‖ ^ 2) = c ^ 2 * (∑ t ∈ range T, ‖selected V η loss x₁ p t‖ ^ 2)
theorem
BanditRL.OnlineUnitScaling.upper_bound_scaling
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.upper_bound_scalingReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem upper_bound_scaling (c : ℝ) (hc : 0 < c) (A B η : ℝ) (hη : 0 < η) : BanditRL.OnlineOptimalStep.upperBound (A / c ^ 2) (c ^ 2 * B) (η / c ^ 2) = BanditRL.OnlineOptimalStep.upperBound A B η
theorem
BanditRL.OnlineUnitScaling.regret_fixed_scaled
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Coordinate units and matched subgradient trajectories
Canonical node identity
declaration:BanditRL.OnlineUnitScaling.regret_fixed_scaledReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem regret_fixed_scaled (c : ℝ) (hc : 0 < c) (η : ℝ) (hη : 0 < η) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) (hlegal : LegalFeedback V (fun _ => η) loss x₁ p T) (u : E) : regret V (scaledEta c (fun _ => η)) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) (c⁻¹ • u) T ≤ ‖x₁ - u‖ ^ 2 / (2 * η) + η / 2 * (∑ t ∈ range T, ‖selected V (fun _ => η) loss x₁ p t‖ ^ 2) - ‖output V (fun _ => η) loss x₁ p T - u‖ ^ 2 / (2 * η)