OAI/Combinatorics/EditApproximation/Geometry/BandEnvelopes.lean
6 declarations, 0 contain sorry, 0 declared as axioms
Actual dyadic child envelopes
The maximum scans the actual finite band. The dyadic ceiling uses the computable integer upper logarithm of a positive rational, including values below one.
- theorem
OAI.EditApproximation.rationalMaximum_leline 22 - theorem
OAI.EditApproximation.le_rationalMaximum_memberline 30 - theorem
OAI.EditApproximation.rationalDyadicCeiling_boundsline 41 - theorem
OAI.EditApproximation.bandChildEnvelope_lowerline 56Source documentation
Zero is a harmless duplicated fallback under the initial table lower invariant. The positive b/M floor ensures that the ceiling input is positive.
theorem bandChildEnvelope_lower {ny M : ℕ} (b : ℕ) (band : List (Fin M → TargetInterval ny)) (initial : Fin M → TargetInterval ny → ℚ) (i : Fin M) : (b : ℚ) / M ≤ bandChildEnvelope b band initial i ∧ ∀ action ∈ band, initial i (action i) ≤ bandChildEnvelope b band initial i := by …Mentions: OAI.EditApproximation.TargetInterval, OAI.EditApproximation.bandChildEnvelope
- theorem
OAI.EditApproximation.bandChildEnvelope_upperline 70Source documentation
Every finite envelope is bounded using the actual computed-band endpoint diameter and the initial table's spatial inequality.
theorem bandChildEnvelope_upper {nx ny M : ℕ} (parent : TargetInterval nx) (r : TargetInterval ny) (b P : ℕ) (hb : 0 < b) (hM : 0 < M) (tau theta velocity : ℚ) (htau : 0 < tau) (htheta : 0 ≤ theta) (child initial : Fin M → TargetInterval ny → ℚ) (comparison : Fin M → TargetInterval ny) (hcomparison : comparison ∈ computedBandActions parent r b P tau theta velocity child) (L0 : ℚ) (hL0 : 0 ≤ L0) (hinitial : ∀ i, 0 ≤ initial i (comparison i)) (hspatial : ∀ i s t, initial i s ≤ initial i t + L0 * targetEndpointDistance s t) (i : Fin M) : bandChildEnvelope b (computedBandActions parent r b P tau theta velocity child) initial i ≤ 2 * ((b : ℚ) / M) + 2 * initial i (comparison i) + 8 * L0 * theta * b / M := by …Mentions: OAI.EditApproximation.TargetInterval, OAI.EditApproximation.computedBandActions, OAI.EditApproximation.targetEndpointDistance, OAI.EditApproximation.bandChildEnvelope
- theorem
OAI.EditApproximation.bandChildEnvelope_sum_guardline 113Source documentation
The actual sum guard follows from the concrete envelopes, the initial cone bounds at the comparison child states, and their actual edit costs.
theorem bandChildEnvelope_sum_guard {α : Type*} (source target : List α) {M : ℕ} (parent : TargetInterval source.length) (r : TargetInterval target.length) (b P : ℕ) (hb : 0 < b) (hM : 0 < M) (tau theta velocity : ℚ) (htau : 0 < tau) (htheta : 0 ≤ theta) (child initial : Fin M → TargetInterval target.length → ℚ) (comparison : Fin M → TargetInterval target.length) (hcomparison : comparison ∈ computedBandActions parent r b P tau theta velocity child) (L0 F : ℚ) (hL0 : 0 ≤ L0) (hF : 1 ≤ F) (hsmall : L0 * theta ≤ 1) (hinitial : ∀ i, 0 ≤ initial i (comparison i)) (hspatial : ∀ i s t, initial i s ≤ initial i t + L0 * targetEndpointDistance s t) (hinitialUpper : ∀ i, initial i (comparison i) ≤ 2 * F * (stateEditCost (substring source (sourceChild parent i).lo (sourceChild parent i).hi) target (comparison i) : ℚ)) …Mentions: OAI.EditApproximation.TargetInterval, OAI.EditApproximation.computedBandActions, OAI.EditApproximation.targetEndpointDistance, OAI.EditApproximation.stateEditCost, OAI.EditApproximation.substring, OAI.EditApproximation.sourceChild