OAI/Combinatorics/EditApproximation/Binary/IntegerBinaryAccuracy.lean
4 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.EditApproximation.integerBinaryAnswerline 10Source documentation
The uniform implementation uses exact dynamic programming below the proved cutoff and the evaluated binary memo above it.
noncomputable def integerBinaryAnswer (source target : List ℤ) (N : ℕ) (epsilon : BinaryFraction) (outcome : ComputedFullOutcome (source.map integerSymbolCode) (target.map integerSymbolCode) N) : ℕ := …Mentions: OAI.EditApproximation.BinaryFraction, OAI.EditApproximation.ComputedFullOutcome, OAI.EditApproximation.integerSymbolCode
- theorem
OAI.EditApproximation.integerBinaryAnswer_largeline 19 - theorem
OAI.EditApproximation.integerBinaryAnswer_equalline 30 - theorem
OAI.EditApproximation.integerBinaryAnswer_conditional_accuracyline 46Source documentation
Accuracy of the concrete binary answer under the finite Bernstein hypothesis for the reference algorithm.
theorem integerBinaryAnswer_conditional_accuracy (source target : List ℤ) (N : ℕ) (epsilon : BinaryFraction) (hepsilon : 0 < epsilon.value) (hsize : source.length + target.length ≤ N) (bernstein : ComputedBernsteinInputs N) : (2 / 3 : ℝ) ≤ (computedFullLaw (source.map integerSymbolCode) (target.map integerSymbolCode) N epsilon).real {outcome | EditDistortion.edit source target ≤ integerBinaryAnswer source target N epsilon outcome ∧ (integerBinaryAnswer source target N epsilon outcome : ℝ) ≤ (1 + (epsilon.value : ℝ)) * EditDistortion.edit source target} := by …Mentions: OAI.EditApproximation.BinaryFraction, OAI.EditApproximation.ComputedBernsteinInputs, OAI.EditApproximation.computedFullLaw, OAI.EditApproximation.integerSymbolCode, OAI.EditDistortion.edit, OAI.EditApproximation.integerBinaryAnswer