Lemma 3: bounds on an inverse weighted sum of Bernoulli variables
ProvedConformalBeyondExchangeability.inverse_bernoulli_boundsLet with , and let be independent with . Then
The upper bound converts the conditional bound in the proof of Theorem 6 into the factor .
Formalization Note The expectation is the finite sum over . The upper bound is stated in with for , so the case , where the right side is , is included.
import Mathlib import Definitions.Def_ConformalBeyondExchangeability_Basic open MeasureTheory
namespace ConformalBeyondExchangeability
theorem inverse_bernoulli_bounds {n : ℕ} (p a : Fin n → ℝ) (hp : ∀ i, 0 ≤ p i ∧ p i ≤ 1)
(ha : ∀ i, 0 ≤ a i ∧ a i ≤ 1) (hapos : 0 < ∑ i, a i) :
(∑ i, a i + 1) / (∑ i, a i * p i + 1) ≤ bernoulliExp p (invBernoulliRatio a) ∧
ENNReal.ofReal (bernoulliExp p (invBernoulliRatio a)) ≤
ENNReal.ofReal (∑ i, a i) / ENNReal.ofReal (∑ i, a i * p i) := by sorry
end ConformalBeyondExchangeabilityRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix a natural number and two real vectors and . The theorem assumes:
- for every ;
- for every ;
- . This forces and at least one . The may equal or .
The averaged quantity. For , define the ratio
Its denominator is at least , so no division by zero occurs. Define
The sum runs over all vectors . Each weight is chosen by cases, so no convention is involved. Under the hypotheses, is the expectation of for independent . Every summand is nonnegative.
Conclusion. Both of the following hold.
- Lower bound (real numbers):
The left-hand denominator is at least .
- Upper bound (extended nonnegative reals ):
This comparison is made after mapping each real number to . That map changes nothing here, since , and are all nonnegative. The division is also taken in . If , for example when for every with , the right-hand side is (a positive number divided by ), and the bound holds trivially.
The upper bound's right-hand side is . It does not contain the "" terms that appear in and in the lower bound.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.