cfahlgren1/math / lean /OAI /NumberTheory /Catalan /Estimates /ManuscriptCaseOneX7SubstitutionError.lean
cfahlgren1's picture
download
raw
3.15 kB
import OAI.NumberTheory.Catalan.Estimates.ManuscriptCaseOneX4PointRounding
namespace OAI
section
noncomputable section
namespace InternalCatalan
def manuscriptCase1X7SubstituteRat : ℚ :=
barrierCase1XApproxRat Case1PointData.X7 (-1) (-1) (0) (1 / 1) (1 / 1) (5 / 4)
theorem manuscript_case1X7_substitute_interval :
manuscriptCase1X7SubstituteRat ∈ Set.Icc manuscriptCase1X7Interval.1 manuscriptCase1X7Interval.2 := by
have hf := manuscript_x_substitute_interval (41 / 48) (barrierCase1XRat Case1PointData.X7) (-1) (-1) (0) (1 / 1) (1 / 1) (5 / 4) (by norm_num) (by norm_num) (by norm_num)
change (barrierCase1XApproxRat Case1PointData.X7 (-1) (-1) (0) (1 / 1) (1 / 1) (5 / 4)) ∈ Set.Icc manuscriptCase1X7Interval.1 manuscriptCase1X7Interval.2 at hf
exact hf
theorem manuscript_case1X7_substitute_cutoff :
manuscriptCase1X7SubstituteRat < ((-66221 / 50000) : ℚ) := by
have hp : Case1PointData.X7PrintedUpper < ((-66221 / 50000) : ℚ) := by norm_num [Case1PointData.X7PrintedUpper]
exact manuscript_case1X7_substitute_interval.2.trans_lt (manuscript_case1X7_endpoint_lt_printed.trans hp)
end InternalCatalan
end
end
section
noncomputable section
namespace InternalCatalan
def manuscriptCase1X7RoundedSubstituteRat : ℚ :=
manuscriptRoundedXFieldRat (41 / 48) (barrierCase1XRat Case1PointData.X7) (-1) (-1) (0) (1 / 1) (1 / 1) (5 / 4)
theorem manuscript_case1X7_additional_rounding_error :
|(manuscriptCase1X7SubstituteRat : ℝ) - (manuscriptCase1X7RoundedSubstituteRat : ℝ)| < (1 / 10 ^ 32 : ℝ) := by
let a0 : ℚ := barrierCase1XApproxRat Case1PointData.X7 (-1) (-1) (0) (1 / 1) (1 / 1) (5 / 4)
let r0 : ℚ := manuscriptRoundedXFieldRat (41 / 48) (barrierCase1XRat Case1PointData.X7) (-1) (-1) (0) (1 / 1) (1 / 1) (5 / 4)
let e0 : ℝ := ((19 / 48 : ℝ) + 1 / 12 + |(((41 / 48) : ℚ) : ℝ)|) * (3636 * manuscriptTermRoundStep)
have h0 : |(a0 : ℝ) - (r0 : ℝ)| ≤ e0 := by
exact manuscript_rounded_x_field_error_le (41 / 48) (barrierCase1XRat Case1PointData.X7) (-1) (-1) (0) (1 / 1) (1 / 1) (5 / 4) (by norm_num) (by norm_num) (by norm_num)
have hbudget : e0 < (1 / 10 ^ 32 : ℝ) := by
norm_num [e0, manuscriptTermRoundStep]
change |(manuscriptCase1X7SubstituteRat : ℝ) - (manuscriptCase1X7RoundedSubstituteRat : ℝ)| ≤ e0 at h0
exact h0.trans_lt hbudget
end InternalCatalan
end
end
section
noncomputable section
namespace InternalCatalan
theorem manuscript_case1X7_actual_substitution_error :
|barrierCase1X (Case1PointData.X7 : ℝ) - (manuscriptCase1X7SubstituteRat : ℝ)| < ((35 / 1000000000000000) : ℝ) := by
have hw : manuscriptCase1X7Interval.2 - manuscriptCase1X7Interval.1 < ((35 / 1000000000000000) : ℚ) :=
manuscript_case1X7_interval_width.trans (by norm_num)
simpa only [Rat.cast_div, Rat.cast_ofNat] using manuscript_interval_abs_sub_lt_of_width
manuscriptCase1X7Interval.1 manuscriptCase1X7Interval.2 manuscriptCase1X7SubstituteRat
(barrierCase1X (Case1PointData.X7 : ℝ)) (35 / 1000000000000000)
manuscript_case1X7_interval manuscript_case1X7_substitute_interval hw
end InternalCatalan
end
end
end OAI

Xet Storage Details

Size:
3.15 kB
·
Xet hash:
42676f073daa3ee1a81fcd94e3110ce622b68215b97ff4a0140434ac0a171290

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.