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