File size: 1,996 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | import OAI.Combinatorics.EditApproximation.Specification.RawBandPipelineFootprintBridges
import OAI.Combinatorics.EditApproximation.Definitions
namespace OAI.EditApproximation
open Filter MeasureTheory
attribute [local instance] queryRoundsNeZero
theorem almostLinearEditDistanceRawBand (epsilon : BinaryFraction)
(hepsilon : 0 < epsilon.value) (_hepsilonOne : epsilon.value < 1)
:
(β (source target : List β€) (N : β), source.length + target.length β€ N β
(2 / 3 : β) β€ (computedFullLaw (source.map integerSymbolCode) (target.map integerSymbolCode) N epsilon).real
{outcome | EditDistortion.edit source target β€ integerBinaryAnswerRawBand source target N epsilon outcome β§
(integerBinaryAnswerRawBand source target N epsilon outcome : β) β€
(1 + (epsilon.value : β)) * EditDistortion.edit source target}) β§
(β (source target : List β€) (N : β), source = target β β outcome,
integerBinaryAnswerRawBand source target N epsilon outcome = 0) β§
(β (C : β) (eta : β), 0 < eta β βαΆ N : β in atTop,
β source target : List β€, source.length + target.length β€ N β
(β z β source ++ target, z.natAbs β€ (N + 2) ^ C) β
(β« outcome, integerBinaryWorkRawBand source target N epsilon outcome
βcomputedFullLaw (source.map integerSymbolCode) (target.map integerSymbolCode) N epsilon) β€
(N + 2 : β) ^ (1 + eta)) β§
(β C : β, βαΆ N : β in atTop, β source target : List β€,
source.length + target.length β€ N β
(β z β source ++ target, z.natAbs β€ (N + 2) ^ C) β
β outcome, integerBinarySpaceFootprintRawBand source target N epsilon outcome β€ (N + 2) ^ (C + 65564)) := by
simpa only [integerBinaryAnswerRawBand_eq, integerBinaryWorkRawBand_eq,
integerBinarySpaceFootprintRawBand_eq] using
almostLinearEditDistance_main epsilon hepsilon _hepsilonOne
end OAI.EditApproximation
|