OAI/Combinatorics/EditApproximation/Binary/IntegerInputInspection.lean
6 declarations, 0 contain sorry, 0 declared as axioms
Explicit linear scans select the input-dependent symbol and position widths. The alphabet exponent is used only in the analysis.
- theorem
OAI.EditApproximation.integerMagnitudeWithWork_specline 15 - theorem
OAI.EditApproximation.integerMagnitude_appendline 23 - theorem
OAI.EditApproximation.size_div_twoline 32Source documentation
Count the shifts in a literal binary-length loop.
private theorem size_div_two (n : ℕ) (hn : n ≠ 0) : n.size = (n / 2).size + 1 := by …
- theorem
OAI.EditApproximation.inputBitLengthWithWork_specline 38 - theorem
OAI.EditApproximation.integerInputInspectionWithWork_specline 51 - theorem
OAI.EditApproximation.integerInputInspectionWithWork_costline 58