Lean module · Foundations
BanditRLProof.Algorithms.CausalImportance
Covered finite mixtures and exact importance-weight identities.
Module map
Imports
BanditRLProof.Algorithms.CausalMarginalLaw
Imported by
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
def
BanditRLProof.Causal.mass
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.massReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def mass {Z : Type*} (p : PMF Z) (z : Z) : ℝ
theorem
BanditRLProof.Causal.mass_nonneg
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.mass_nonnegReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem mass_nonneg {Z : Type*} (p : PMF Z) (z : Z) : 0 ≤ mass p z
theorem
BanditRLProof.Causal.mass_le_one
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.mass_le_oneReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem mass_le_one {Z : Type*} (p : PMF Z) (z : Z) : mass p z ≤ 1
theorem
BanditRLProof.Causal.sum_mass
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.sum_massReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem sum_mass {Z : Type*} [Fintype Z] (p : PMF Z) : ∑ z, mass p z = 1
def
BanditRLProof.Causal.mixture
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.mixtureReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def mixture {A Z : Type*} (eta : PMF A) (p : A → PMF Z) : PMF Z
theorem
BanditRLProof.Causal.mixture_mass
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.mixture_massReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem mixture_mass {A Z : Type*} [Fintype A] (eta : PMF A) (p : A → PMF Z) (z : Z) : mass (mixture eta p) z = ∑ a, mass eta a * mass (p a) z
def
BanditRLProof.Causal.Covers
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.CoversReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def Covers {A Z : Type*} (p : A → PMF Z) (q : PMF Z) : Prop
def
BanditRLProof.Causal.ratio
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.ratioReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def ratio {Z : Type*} (p q : PMF Z) (z : Z) : ℝ
theorem
BanditRLProof.Causal.covered_cancel
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.covered_cancelReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem covered_cancel {A Z : Type*} (p : A → PMF Z) (q : PMF Z) (hc : Covers p q) (a : A) (z : Z) : mass q z * ratio (p a) q z = mass (p a) z
theorem
BanditRLProof.Causal.importance_identity
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.importance_identityReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem importance_identity {A Z : Type*} [Fintype Z] (p : A → PMF Z) (q : PMF Z) (hc : Covers p q) (a : A) (f : Z → ℝ) : ∑ z, mass q z * (ratio (p a) q z * f z) = ∑ z, mass (p a) z * f z
theorem
BanditRLProof.Causal.positive_allocation_covers
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.positive_allocation_coversReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem positive_allocation_covers {A Z : Type*} [Fintype A] (eta : PMF A) (p : A → PMF Z) (he : ∀ a, 0 < mass eta a) : Covers p (mixture eta p)
theorem
BanditRLProof.Causal.ratio_nonneg
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.ratio_nonnegReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem ratio_nonneg {Z : Type*} (p q : PMF Z) (z : Z) : 0 ≤ ratio p q z
def
BanditRLProof.Causal.secondMoment
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.secondMomentReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def secondMoment {Z : Type*} [Fintype Z] (p q : PMF Z) : ℝ
theorem
BanditRLProof.Causal.ratio_second_moment
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.ratio_second_momentReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem ratio_second_moment {A Z : Type*} [Fintype Z] (p : A → PMF Z) (q : PMF Z) (hc : Covers p q) (a : A) : ∑ z, mass q z * ratio (p a) q z ^ 2 = secondMoment (p a) q
def
BanditRLProof.Causal.truncationBias
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.truncationBiasReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def truncationBias {Z : Type*} [Fintype Z] (p q : PMF Z) (r : Z → ℝ) (B : ℝ) : ℝ
def
BanditRLProof.Causal.truncatedMean
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.truncatedMeanReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def truncatedMean {Z : Type*} [Fintype Z] (p q : PMF Z) (r : Z → ℝ) (B : ℝ) : ℝ
theorem
BanditRLProof.Causal.truncatedMean_add_bias
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.truncatedMean_add_biasReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem truncatedMean_add_bias {A Z : Type*} [Fintype Z] (p : A → PMF Z) (q : PMF Z) (hc : Covers p q) (a : A) (r : Z → ℝ) (B : ℝ) : truncatedMean (p a) q r B + truncationBias (p a) q r B = ∑ z, mass (p a) z * r z
theorem
BanditRLProof.Causal.truncationBias_nonneg
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.truncationBias_nonnegReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem truncationBias_nonneg {Z : Type*} [Fintype Z] (p q : PMF Z) (r : Z → ℝ) (hr : ∀ z, 0 ≤ r z) (B : ℝ) : 0 ≤ truncationBias p q r B
theorem
BanditRLProof.Causal.truncationBias_le
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.truncationBias_leReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem truncationBias_le {Z : Type*} [Fintype Z] (p q : PMF Z) (r : Z → ℝ) (hr : ∀ z, r z ≤ 1) (B : ℝ) (hB : 0 < B) : truncationBias p q r B ≤ secondMoment p q / B
def
BanditRLProof.Causal.pairedLaw
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.pairedLawReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def pairedLaw {Z V : Type*} (p : PMF Z) (k : Z → PMF V) : PMF (Z × V)
theorem
BanditRLProof.Causal.mixture_pairedLaw
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.mixture_pairedLawReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem mixture_pairedLaw {A Z V : Type*} (eta : PMF A) (p : A → PMF Z) (k : Z → PMF V) : mixture eta (fun a => pairedLaw (p a) k) = pairedLaw (mixture eta p) k
theorem
BanditRLProof.Causal.pairedLaw_mass
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.pairedLaw_massReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pairedLaw_mass {Z V : Type*} (p : PMF Z) (k : Z → PMF V) (z : Z) (y : V) : mass (pairedLaw p k) (z,y) = mass p z * mass (k z) y
def
BanditRLProof.Causal.weightedBit
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.weightedBitReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def weightedBit {Z : Type*} (p q : PMF Z) (B : ℝ) (zy : Z × Bool) : ℝ
theorem
BanditRLProof.Causal.weightedBit_mean
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.weightedBit_meanReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem weightedBit_mean {Z : Type*} [Fintype Z] (p q : PMF Z) (k : Z → PMF Bool) (B : ℝ) : (∑ z, ∑ y : Bool, mass (pairedLaw q k) (z,y) * weightedBit p q B (z,y)) = truncatedMean p q (fun z => mass (k z) true) B
theorem
BanditRLProof.Causal.weightedBit_bounds
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.weightedBit_boundsReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem weightedBit_bounds {Z : Type*} (p q : PMF Z) (B : ℝ) (hB : 0 ≤ B) (zy : Z × Bool) : 0 ≤ weightedBit p q B zy ∧ weightedBit p q B zy ≤ B
theorem
BanditRLProof.Causal.weightedBit_second_le
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.weightedBit_second_leReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem weightedBit_second_le {A Z : Type*} [Fintype Z] (p : A → PMF Z) (q : PMF Z) (hc : Covers p q) (a : A) (k : Z → PMF Bool) (B : ℝ) : (∑ z, ∑ y : Bool, mass (pairedLaw q k) (z,y) * weightedBit (p a) q B (z,y)^2) ≤ secondMoment (p a) q
theorem
BanditRLProof.Causal.GraphModel.mixture_parent_joint
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.Causal.GraphModel.mixture_parent_jointReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem GraphModel.mixture_parent_joint {A V : Type*} [Inhabited V] {n : ℕ} (g : GraphModel V n) (actions : A → Fin n → Option V) (eta : PMF A) (i : Fin n) (hi : ∀ a, actions a i = none) : mixture eta (fun a => (joint (g.doModel (actions a)).table).map (fun x => (g.parentConfig i (history x i),x i))) = pairedLaw (mixture eta (fun a => g.parentLaw (actions a) i)) (g.parentTable i)