introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
2 kB
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