OAI/Probability/TraceReconstruction/FiniteLaw.lean
109 declarations, 0 contain sorry, 0 declared as axioms
FiniteLaw
Finite laws, common-reference total variation, Hellinger affinity, overlap, scalar moments, hypercontractivity, clipping, and leaf densities.
- structure
OAI.TraceReconstruction.FiniteLawline 18Source documentation
Finite probability laws used for the exact statistical transfer.
structure FiniteLaw (α : Type*) [Fintype α] where …
- def
OAI.TraceReconstruction.FiniteLaw.tvline 26 - def
OAI.TraceReconstruction.FiniteLaw.hellingerSqline 27 - def
OAI.TraceReconstruction.FiniteLaw.affinityline 29 - theorem
OAI.TraceReconstruction.FiniteLaw.affinity_nonnegline 32 - theorem
OAI.TraceReconstruction.FiniteLaw.hellingerSq_nonnegline 36 - theorem
OAI.TraceReconstruction.FiniteLaw.hellingerSq_eqline 40 - theorem
OAI.TraceReconstruction.FiniteLaw.affinity_le_oneline 54 - theorem
OAI.TraceReconstruction.FiniteLaw.tv_nonnegline 59 - theorem
OAI.TraceReconstruction.FiniteLaw.tv_sq_le_hellingerSqline 61 - theorem
OAI.TraceReconstruction.FiniteLaw.tv_le_sqrt_hellingerSqline 95 - def
OAI.TraceReconstruction.FiniteLaw.productline 102 - theorem
OAI.TraceReconstruction.FiniteLaw.affinity_productline 109 - theorem
OAI.TraceReconstruction.FiniteLaw.hellingerSq_product_leline 122 - theorem
OAI.TraceReconstruction.FiniteLaw.sqrt_sub_one_sq_leline 139 - theorem
OAI.TraceReconstruction.FiniteLaw.hellingerSq_le_scoreline 147 - theorem
OAI.TraceReconstruction.FiniteLaw.tv_product_le_sqrt_scoreline 172 - def
OAI.TraceReconstruction.FiniteLaw.bindline 180 - theorem
OAI.TraceReconstruction.FiniteLaw.tv_bind_leline 188 - theorem
OAI.TraceReconstruction.FiniteLaw.tv_triangleline 209 - theorem
OAI.TraceReconstruction.FiniteLaw.tv_symmline 217 - theorem
OAI.TraceReconstruction.FiniteLaw.expectation_diff_le_tvline 223 - theorem
OAI.TraceReconstruction.FiniteLaw.binary_testing_boundline 249 - theorem
OAI.TraceReconstruction.FiniteLaw.sum_max_eqline 260 - theorem
OAI.TraceReconstruction.FiniteLaw.independent_binary_testingline 274Source documentation
Joint exact recovery of independent binary choices, allowing arbitrary randomized estimators. No coordinatewise decision rule is assumed.
theorem independent_binary_testing (P Q : FiniteLaw α) (g : ℕ) (A : (Fin g → α) → (Fin g → Bool) → ℝ) (hA0 : ∀ z θ, 0 ≤ A z θ) (hA1 : ∀ z, ∑ θ, A z θ = 1) : (1 / (2 : ℝ) ^ g) * ∑ θ : Fin g → Bool, ∑ z : Fin g → α, (∏ j, (if θ j then P.mass (z j) else Q.mass (z j))) * A z θ ≤ ((1 + tv P Q) / 2) ^ g := by …Mentions: OAI.TraceReconstruction.FiniteLaw, OAI.TraceReconstruction.FiniteLaw.tv
- def
OAI.TraceReconstruction.FiniteLaw.tensorline 308 - theorem
OAI.TraceReconstruction.FiniteLaw.tv_tensor_leline 316 - theorem
OAI.TraceReconstruction.FiniteLaw.tv_product_succline 340 - theorem
OAI.TraceReconstruction.FiniteLaw.tv_product_leline 351 - theorem
OAI.TraceReconstruction.FiniteLaw.affinity_bind_geline 362 - theorem
OAI.TraceReconstruction.FiniteLaw.hellingerSq_bind_leline 390 - theorem
OAI.TraceReconstruction.FiniteLaw.approximate_score_transferline 397Source documentation
Restoration of approximate oracle simulations before taking independent complete observations; the simulation error is charged once per sample.
theorem approximate_score_transfer (P Q : FiniteLaw α) (K : α → FiniteLaw β) (R S : FiniteLaw β) (Z : α → ℝ) (hZ : ∀ a, Q.mass a = P.mass a * (1 + Z a)) (E : ℝ) (hR : tv R (P.bind K) ≤ E) (hS : tv S (Q.bind K) ≤ E) (m : ℕ) : tv (R.product m) (S.product m) ≤ Real.sqrt ((m : ℝ) * ∑ a, P.mass a * Z a ^ 2) + 2 * m * E := by …Mentions: OAI.TraceReconstruction.FiniteLaw, OAI.TraceReconstruction.FiniteLaw.tv
- def
OAI.TraceReconstruction.FiniteLaw.overlapline 419 - theorem
OAI.TraceReconstruction.FiniteLaw.overlap_eq_one_sub_tvline 421 - theorem
OAI.TraceReconstruction.FiniteLaw.overlap_nonnegline 430 - def
OAI.TraceReconstruction.FiniteLaw.commonPartline 435 - theorem
OAI.TraceReconstruction.FiniteLaw.commonPart_le_leftline 440 - def
OAI.TraceReconstruction.FiniteLaw.remainderLawline 450 - theorem
OAI.TraceReconstruction.FiniteLaw.common_part_decompositionline 458 - def
OAI.TraceReconstruction.FiniteLaw.prodline 490 - def
OAI.TraceReconstruction.FiniteLaw.expectline 498 - theorem
OAI.TraceReconstruction.FiniteLaw.expect_constline 500 - theorem
OAI.TraceReconstruction.FiniteLaw.expect_monoline 504 - theorem
OAI.TraceReconstruction.FiniteLaw.expect_prodline 508 - def
OAI.TraceReconstruction.FiniteLaw.Associatedline 515Source documentation
Association is only used for increasing likelihood-threshold events.
def Associated [Preorder α] (P : FiniteLaw α) : Prop := …
Mentions: OAI.TraceReconstruction.FiniteLaw
- theorem
OAI.TraceReconstruction.FiniteLaw.associated_linearOrderline 519 - theorem
OAI.TraceReconstruction.FiniteLaw.Associated.prodline 541 - theorem
OAI.TraceReconstruction.FiniteLaw.product_succ_expectline 559 - theorem
OAI.TraceReconstruction.FiniteLaw.associated_productline 574 - theorem
OAI.TraceReconstruction.FiniteLaw.density_threshold_massline 605Source documentation
An elementary Paley--Zygmund bound at threshold 1/2, for a density.
theorem density_threshold_mass (P : FiniteLaw α) (f : α → ℝ) (hmean : P.expect f = 1) : (1 : ℝ) / 4 ≤ (P.expect (fun a => if 1 / 2 ≤ f a then 1 else 0)) * P.expect (fun a => f a ^ 2) := by …Mentions: OAI.TraceReconstruction.FiniteLaw
- theorem
OAI.TraceReconstruction.FiniteLaw.increasing_density_overlapline 643Source documentation
The common-density overlap used for consecutive pure primitive runs.
theorem increasing_density_overlap [Preorder α] (P : FiniteLaw α) (hP : P.Associated) (f g : α → ℝ) (hf : ∀ a, 0 ≤ f a) (hg : ∀ a, 0 ≤ g a) (hfm : Monotone f) (hgm : Monotone g) (hf1 : P.expect f = 1) (hg1 : P.expect g = 1) : (1 : ℝ) / 32 ≤ P.expect (fun a => min (f a) (g a)) * P.expect (fun a => f a ^ 2) * P.expect (fun a => g a ^ 2) := by …Mentions: OAI.TraceReconstruction.FiniteLaw
- def
OAI.TraceReconstruction.FiniteLaw.orientedProdline 702Source documentation
Orientation
falseuses P,Q in chronological order; true reverses them.def orientedProd (P Q : FiniteLaw α) (b : Bool) : FiniteLaw (α × α) := …
Mentions: OAI.TraceReconstruction.FiniteLaw
- def
OAI.TraceReconstruction.FiniteLaw.pairedHiddenMassline 705 - theorem
OAI.TraceReconstruction.FiniteLaw.sum_pairedHiddenMassline 708 - theorem
OAI.TraceReconstruction.FiniteLaw.pairedHiddenMass_leline 715 - def
OAI.TraceReconstruction.FiniteLaw.pairedFlagMassline 730Source documentation
None is the joint hidden flag; a visible flag reports the true orientation.
def pairedFlagMass (P Q H : FiniteLaw α) (ω : ℝ) (b : Bool) (z : Option Bool × (α × α)) : ℝ := …Mentions: OAI.TraceReconstruction.FiniteLaw
- theorem
OAI.TraceReconstruction.FiniteLaw.pairedFlagMass_nonnegline 736 - theorem
OAI.TraceReconstruction.FiniteLaw.pairedFlagMass_sumline 747 - def
OAI.TraceReconstruction.FiniteLaw.pairedFlagLawline 756 - theorem
OAI.TraceReconstruction.FiniteLaw.pairedFlag_simulationline 763Source documentation
Forgetting the report recovers conditional independence for each orientation.
theorem pairedFlag_simulation (P Q H : FiniteLaw α) (ω : ℝ) (b : Bool) (z : α × α) : (∑ c : Option Bool, pairedFlagMass P Q H ω b (c, z)) = (orientedProd P Q b).mass z := by …Mentions: OAI.TraceReconstruction.FiniteLaw, OAI.TraceReconstruction.FiniteLaw.pairedFlagMass, OAI.TraceReconstruction.FiniteLaw.orientedProd
- theorem
OAI.TraceReconstruction.FiniteLaw.pairedFlag_hidden_jointline 770Source documentation
Hidden reports carry exactly zero information about the fair orientation, even after both strings have been observed.
theorem pairedFlag_hidden_joint (P Q H : FiniteLaw α) (ω : ℝ) (b : Bool) (z : α × α) : (1 / 2 : ℝ) * pairedFlagMass P Q H ω b (none, z) = (1 / 2 : ℝ) * (ω ^ 2 * (H.prod H).mass z) := by …Mentions: OAI.TraceReconstruction.FiniteLaw, OAI.TraceReconstruction.FiniteLaw.pairedFlagMass
- theorem
OAI.TraceReconstruction.FiniteLaw.pairedFlag_hidden_probabilityline 776 - theorem
OAI.TraceReconstruction.FiniteLaw.small_geometric_sumline 783 - theorem
OAI.TraceReconstruction.FiniteLaw.small_binomial_tailline 792Source documentation
Elementary tail of a binomial polynomial after cancelling orders zero and one.
theorem small_binomial_tail (n : ℕ) {x : ℝ} (hx : 0 ≤ x) (hsmall : (n : ℝ) * x ≤ 1 / 2) : (∑ j ∈ Finset.range (n - 1), (n.choose (j + 2) : ℝ) * x ^ (j + 2)) ≤ 2 * ((n : ℝ) * x) ^ 2 := by … - theorem
OAI.TraceReconstruction.FiniteLaw.expect_pow_expansionline 811 - theorem
OAI.TraceReconstruction.FiniteLaw.expect_small_affine_powline 823 - theorem
OAI.TraceReconstruction.FiniteLaw.expect_lower_moment_le_twoline 859Source documentation
Only the centered first moment must vanish; lower absolute moments are obtained from the one available source moment, without boundedness.
theorem expect_lower_moment_le_two (P : FiniteLaw α) (Z : α → ℝ) (t : ℕ) (ht : P.expect (fun a => |Z a| ^ t) ≤ 1) (j : ℕ) (hj : j ≤ t) : |P.expect (fun a => Z a ^ j)| ≤ 2 := by …Mentions: OAI.TraceReconstruction.FiniteLaw
- theorem
OAI.TraceReconstruction.FiniteLaw.expect_affine_pow_leline 883 - theorem
OAI.TraceReconstruction.FiniteLaw.scalar_even_moment_unitline 899Source documentation
Scalar two-smoothness at even moment order; its constant is linear in that order after taking the square root, as required for tensorization.
theorem scalar_even_moment_unit (P : FiniteLaw α) (Z : α → ℝ) (k : ℕ) (hk : 1 ≤ k) (hcenter : P.expect Z = 0) (ht : P.expect (fun a => |Z a| ^ (2 * k)) ≤ 1) (u : ℝ) : P.expect (fun a => (1 + u * Z a) ^ (2 * k)) ≤ (1 + (6 * (2 * k : ℕ) : ℝ) ^ 2 * u ^ 2) ^ k := by …Mentions: OAI.TraceReconstruction.FiniteLaw
- theorem
OAI.TraceReconstruction.FiniteLaw.scalar_even_momentline 930Source documentation
Homogeneous version of the scalar even-moment inequality.
theorem scalar_even_moment (P : FiniteLaw α) (Z : α → ℝ) (k : ℕ) (hk : 1 ≤ k) (hcenter : P.expect Z = 0) (ht : P.expect (fun a => |Z a| ^ (2 * k)) ≤ 1) (b v : ℝ) : P.expect (fun a => (b + v * Z a) ^ (2 * k)) ≤ (b ^ 2 + (6 * (2 * k : ℕ) : ℝ) ^ 2 * v ^ 2) ^ k := by …Mentions: OAI.TraceReconstruction.FiniteLaw
- theorem
OAI.TraceReconstruction.FiniteLaw.weighted_minkowski_boundline 978 - theorem
OAI.TraceReconstruction.FiniteLaw.product_succ_expect_tailline 1017 - def
OAI.TraceReconstruction.multilinearline 1033 - def
OAI.TraceReconstruction.multilinearEnergyline 1036 - theorem
OAI.TraceReconstruction.multilinearEnergy_nonnegline 1039 - theorem
OAI.TraceReconstruction.multilinear_consline 1048 - theorem
OAI.TraceReconstruction.multilinearEnergy_consline 1064 - theorem
OAI.TraceReconstruction.multilinear_even_momentline 1081Source documentation
The finite-product moment inequality used for every score expansion. The order-cost is linear per degree, and no boundedness assumption is needed.
theorem multilinear_even_moment {α : Type*} [Fintype α] (P : FiniteLaw α) (Z : α → ℝ) (k : ℕ) (hk : 1 ≤ k) (hcenter : P.expect Z = 0) (ht : P.expect (fun a => |Z a| ^ (2 * k)) ≤ 1) (n : ℕ) (A : (Fin n → Bool) → ℝ) : (P.product n).expect (fun x => multilinear A Z x ^ (2 * k)) ≤ (multilinearEnergy A (6 * (2 * k : ℕ))) ^ k := by …Mentions: OAI.TraceReconstruction.FiniteLaw, OAI.TraceReconstruction.multilinear, OAI.TraceReconstruction.multilinearEnergy
- def
OAI.TraceReconstruction.monomialDegreeline 1129 - theorem
OAI.TraceReconstruction.monomial_weightline 1132 - theorem
OAI.TraceReconstruction.multilinearEnergy_homogeneousline 1137 - theorem
OAI.TraceReconstruction.homogeneous_even_momentline 1149 - def
OAI.TraceReconstruction.FiniteLaw.evenMomentSqline 1161Source documentation
Squared L^(2k)-norm for a finite law, expressed without measure coercions.
def FiniteLaw.evenMomentSq {α : Type*} [Fintype α] (P : FiniteLaw α) (f : α → ℝ) (k : ℕ) : ℝ := …Mentions: OAI.TraceReconstruction.FiniteLaw
- theorem
OAI.TraceReconstruction.homogeneous_moment_sqline 1165 - def
OAI.TraceReconstruction.FiniteLaw.eventMassline 1193 - theorem
OAI.TraceReconstruction.FiniteLaw.eventMass_nonnegline 1195 - theorem
OAI.TraceReconstruction.FiniteLaw.eventMass_le_oneline 1198 - def
OAI.TraceReconstruction.FiniteLaw.conditionline 1203 - theorem
OAI.TraceReconstruction.FiniteLaw.overlap_conditionline 1214 - theorem
OAI.TraceReconstruction.FiniteLaw.tv_conditionline 1231 - def
OAI.TraceReconstruction.FiniteLaw.withDensityline 1238Source documentation
Densities relative to one finite reference, preserving the exact normalization.
def withDensity (P : FiniteLaw α) (f : α → ℝ) (hf : ∀ a, 0 ≤ f a) (hmean : P.expect f = 1) : FiniteLaw α where …Mentions: OAI.TraceReconstruction.FiniteLaw
- theorem
OAI.TraceReconstruction.FiniteLaw.density_bad_mass_sqline 1244 - theorem
OAI.TraceReconstruction.FiniteLaw.low_density_reference_massline 1262Source documentation
Loss from the small-reference-density event by the exact available moment.
theorem low_density_reference_mass (P : FiniteLaw α) (f : α → ℝ) (t : ℕ) (A : Finset α) (hA : ∀ a ∈ A, f a < 1 / 2) : P.eventMass A ≤ (2 : ℝ) ^ t * P.expect (fun a => |f a - 1| ^ t) := by …Mentions: OAI.TraceReconstruction.FiniteLaw
- theorem
OAI.TraceReconstruction.FiniteLaw.conditioned_density_identityline 1280Source documentation
Exact common-event likelihood ratio: no lower bound is imposed off the event.
theorem conditioned_density_identity (R : FiniteLaw α) (f g : α → ℝ) (hf : ∀ a, 0 ≤ f a) (hg : ∀ a, 0 ≤ g a) (hfm : R.expect f = 1) (hgm : R.expect g = 1) (A : Finset α) (hAf : ∀ a ∈ A, 0 < f a) (hP : 0 < (R.withDensity f hf hfm).eventMass A) (hQ : 0 < (R.withDensity g hg hgm).eventMass A) (a : α) : (condition (R.withDensity g hg hgm) A hQ).mass a = (condition (R.withDensity f hf hfm) A hP).mass a * ((R.withDensity f hf hfm).eventMass A / (R.withDensity g hg hgm).eventMass A * (g a / f a)) := by …Mentions: OAI.TraceReconstruction.FiniteLaw, OAI.TraceReconstruction.FiniteLaw.eventMass, OAI.TraceReconstruction.FiniteLaw.condition
- theorem
OAI.TraceReconstruction.FiniteLaw.clipped_raw_momentline 1301Source documentation
The raw likelihood score on a common clipping event, at every integer moment.
theorem clipped_raw_moment (R : FiniteLaw α) (f g : α → ℝ) (hf : ∀ a, 0 ≤ f a) (hfm : R.expect f = 1) (A : Finset α) (hAf : ∀ a ∈ A, 1 / 2 ≤ f a) (hP : 0 < (R.withDensity f hf hfm).eventMass A) (k : ℕ) : (condition (R.withDensity f hf hfm) A hP).expect (fun a => |g a / f a - 1| ^ (k + 1)) ≤ (2 : ℝ) ^ k / (R.withDensity f hf hfm).eventMass A * R.expect (fun a => |g a - f a| ^ (k + 1)) := by …Mentions: OAI.TraceReconstruction.FiniteLaw, OAI.TraceReconstruction.FiniteLaw.eventMass, OAI.TraceReconstruction.FiniteLaw.condition, OAI.TraceReconstruction.FiniteLaw.expect
- theorem
OAI.TraceReconstruction.FiniteLaw.score_rescaling_momentline 1349Source documentation
Normalizing the second conditioned law costs only its scalar normalization error.
theorem score_rescaling_moment (P : FiniteLaw α) (u : α → ℝ) (c : ℝ) (hc : 0 ≤ c) (k : ℕ) : P.expect (fun a => |c * u a - 1| ^ (k + 1)) ≤ 2 ^ k * (c ^ (k + 1) * P.expect (fun a => |u a - 1| ^ (k + 1)) + |c - 1| ^ (k + 1)) := by …Mentions: OAI.TraceReconstruction.FiniteLaw
- def
OAI.TraceReconstruction.FiniteLaw.coordinateProductline 1379 - def
OAI.TraceReconstruction.FiniteLaw.mixtureline 1384 - def
OAI.TraceReconstruction.selectionCoefficientline 1394 - def
OAI.TraceReconstruction.selectionDensityline 1397 - def
OAI.TraceReconstruction.averagedCoefficientline 1400 - def
OAI.TraceReconstruction.averagedDensityline 1403 - theorem
OAI.TraceReconstruction.selectionDensity_expansionline 1406 - theorem
OAI.TraceReconstruction.averagedDensity_expansionline 1416 - theorem
OAI.TraceReconstruction.averagedDensity_differenceline 1430 - theorem
OAI.TraceReconstruction.coefficient_nonnegline 1437 - theorem
OAI.TraceReconstruction.coefficient_le_oneline 1446 - theorem
OAI.TraceReconstruction.averagedCoefficient_emptyline 1458Source documentation
The coefficient for the empty subset is exactly one, before or after averaging.
theorem averagedCoefficient_empty {n : ℕ} (R : FiniteLaw Ω) (θ : Ω → Fin n → Bool) : averagedCoefficient R θ (fun _ => false) = 1 := by …Mentions: OAI.TraceReconstruction.FiniteLaw, OAI.TraceReconstruction.averagedCoefficient
- theorem
OAI.TraceReconstruction.leaf_oracle_densityline 1463Source documentation
Exact density of the conditionally independent leaf oracle used in the source.
theorem leaf_oracle_density [Fintype α] {n : ℕ} (P Q : FiniteLaw α) (Z : α → ℝ) (hscore : ∀ a, Q.mass a = P.mass a * (1 + Z a)) (R : FiniteLaw Ω) (θ : Ω → Fin n → Bool) (x : Fin n → α) : (R.mixture (fun ω => FiniteLaw.coordinateProduct (fun i => if θ ω i then Q else P))).mass x = (∏ i, P.mass (x i)) * averagedDensity R θ Z x := by …Mentions: OAI.TraceReconstruction.FiniteLaw, OAI.TraceReconstruction.FiniteLaw.coordinateProduct, OAI.TraceReconstruction.averagedDensity