OAI/Combinatorics/ContingencyTables/Transport/PowerOfTwoApproximation.lean
15 declarations, 0 contain sorry, 0 declared as axioms
A bounded rational approximation to the evaluator's power of two
- def
OAI.ContingencyTables.PowerOfTwoApproximation.numeratorline 14 - def
OAI.ContingencyTables.PowerOfTwoApproximation.roundedline 16 - def
OAI.ContingencyTables.PowerOfTwoApproximation.approximationline 18 - lemma
OAI.ContingencyTables.PowerOfTwoApproximation.rounded_boundsline 20 - lemma
OAI.ContingencyTables.PowerOfTwoApproximation.rounded_power_rootline 36 - lemma
OAI.ContingencyTables.PowerOfTwoApproximation.rounded_power_errorline 46Source documentation
Rounding downward loses at most 1/s in relative value. The proof uses only the tangent bound for exp and log 2 ≤ 1.
lemma rounded_power_error (beta : ℚ) (s : ℕ) (hs : 0 < s) : 0 ≤ (2:ℝ)^(beta:ℝ)-(2:ℝ)^rounded beta s ∧ (2:ℝ)^(beta:ℝ)-(2:ℝ)^rounded beta s ≤ (2:ℝ)^(beta:ℝ)/(s:ℝ) := by …Mentions: OAI.ContingencyTables.PowerOfTwoApproximation.rounded
- theorem
OAI.ContingencyTables.PowerOfTwoApproximation.approximation_errorline 68Source documentation
The only non-rational quantity in the proof is the target. The returned value is the midpoint of a fixed number of rational comparisons.
theorem approximation_error (beta : ℚ) (hlo : -2 ≤ beta) (hhi : beta ≤ 2) (s n : ℕ) (hs : 0 < s) (sigma : ℝ) (hbudget : 1/(s:ℝ)+32/(2:ℝ)^n ≤ sigma) : |(approximation beta s n:ℝ)-(2:ℝ)^(beta:ℝ)| ≤ sigma*(2:ℝ)^(beta:ℝ) := by …Mentions: OAI.ContingencyTables.PowerOfTwoApproximation.approximation
- def
OAI.ContingencyTables.PowerOfTwoApproximation.rootDegreeline 103 - def
OAI.ContingencyTables.PowerOfTwoApproximation.depthline 105 - def
OAI.ContingencyTables.PowerOfTwoApproximation.approximateline 107 - lemma
OAI.ContingencyTables.PowerOfTwoApproximation.degree_positiveline 109 - lemma
OAI.ContingencyTables.PowerOfTwoApproximation.degree_leline 115 - lemma
OAI.ContingencyTables.PowerOfTwoApproximation.error_budgetline 119 - theorem
OAI.ContingencyTables.PowerOfTwoApproximation.approximate_errorline 140 - theorem
OAI.ContingencyTables.PowerOfTwoApproximation.approximate_positiveline 145