cfahlgren1/math / lean /OAI /NumberTheory /Catalan /Estimates /ManuscriptCaseTwoY12SubstitutionError.lean
cfahlgren1's picture
download
raw
31.7 kB
import OAI.NumberTheory.Catalan.Analysis.ManuscriptCaseTwoY12LogPrecisionGroup0
import OAI.NumberTheory.Catalan.Analysis.ManuscriptCaseTwoY12LogPrecisionGroup1
import OAI.NumberTheory.Catalan.Analysis.ManuscriptCaseTwoY12LogPrecisionGroup2
import OAI.NumberTheory.Catalan.Estimates.ManuscriptCaseOneX4PointRounding
namespace OAI
section
noncomputable section
namespace InternalCatalan
open Case2PointData
def manuscriptCase2Y12FieldInterval : ℚ × ℚ :=
manuscriptYLogFieldInterval (barrierCase2YRat Y12) (-1) (-6) (9838463999 / 5000000000) (161536001 / 156250000)
theorem manuscriptCase2Y12_field_rounded :
(-1324799795846713884526353237969307888377 / 2000000000000000000000000000000000000000) ≤ manuscriptCase2Y12FieldInterval.1 ∧
manuscriptCase2Y12FieldInterval.2 ≤ (-3311999489616784710836407043974203583083 / 5000000000000000000000000000000000000000) := by
unfold manuscriptCase2Y12FieldInterval manuscriptYLogFieldInterval barrierCase2YRat
rw [barrierCase2TV_eq_explicit]
simp only [manuscriptIntervalAdd, manuscriptIntervalScale, manuscriptScaledLogInterval,
manuscriptLogHInterval, barrierLogHRat_two_eq]
decide +kernel
private theorem manuscriptCase2Y12_YV_tail_eq :
(barrierV2Tail.map (barrierCase2YVLogTerm (Y12 : ℝ))).sum =
barrierCase2YVLogTerm (Y12 : ℝ) (barrierV2Tail.getD 0 (0, 0)) +
barrierCase2YVLogTerm (Y12 : ℝ) (barrierV2Tail.getD 1 (0, 0)) +
barrierCase2YVLogTerm (Y12 : ℝ) (barrierV2Tail.getD 2 (0, 0)) +
barrierCase2YVLogTerm (Y12 : ℝ) (barrierV2Tail.getD 3 (0, 0)) +
barrierCase2YVLogTerm (Y12 : ℝ) (barrierV2Tail.getD 4 (0, 0)) +
2 * barrierCase2YVLogTerm (Y12 : ℝ) (barrierV2Tail.getD 5 (0, 0)) +
2 * barrierCase2YVLogTerm (Y12 : ℝ) (barrierV2Tail.getD 7 (0, 0)) +
2 * barrierCase2YVLogTerm (Y12 : ℝ) (barrierV2Tail.getD 9 (0, 0)) +
2 * barrierCase2YVLogTerm (Y12 : ℝ) (barrierV2Tail.getD 11 (0, 0)) := by
apply barrierV2Tail_paired_sum
intro i hi
rw [barrierV2Tail_getD_pair i hi]
simp only [List.mem_cons, List.not_mem_nil, or_false] at hi
rcases hi with rfl | rfl | rfl | rfl
· exact barrierCase2YVLogTerm_conj _ _ _ barrierCase2Y12YV5_arg_regular
· exact barrierCase2YVLogTerm_conj _ _ _ barrierCase2Y12YV7_arg_regular
· exact barrierCase2YVLogTerm_conj _ _ _ barrierCase2Y12YV9_arg_regular
· exact barrierCase2YVLogTerm_conj _ _ _ barrierCase2Y12YV11_arg_regular
def manuscriptCase2Y12Interval : ℚ × ℚ :=
(manuscriptCase2Y12FieldInterval.1 + 1 * manuscriptCase2Y12YV0Interval.1 + 1 * manuscriptCase2Y12YV1Interval.1 + 1 * manuscriptCase2Y12YV2Interval.1 + 1 * manuscriptCase2Y12YV3Interval.1 + 1 * manuscriptCase2Y12YV4Interval.1 + 2 * manuscriptCase2Y12YV5Interval.1 + 2 * manuscriptCase2Y12YV7Interval.1 + 2 * manuscriptCase2Y12YV9Interval.1 + 2 * manuscriptCase2Y12YV11Interval.1,
manuscriptCase2Y12FieldInterval.2 + 1 * manuscriptCase2Y12YV0Interval.2 + 1 * manuscriptCase2Y12YV1Interval.2 + 1 * manuscriptCase2Y12YV2Interval.2 + 1 * manuscriptCase2Y12YV3Interval.2 + 1 * manuscriptCase2Y12YV4Interval.2 + 2 * manuscriptCase2Y12YV5Interval.2 + 2 * manuscriptCase2Y12YV7Interval.2 + 2 * manuscriptCase2Y12YV9Interval.2 + 2 * manuscriptCase2Y12YV11Interval.2)
theorem manuscript_case2Y12_interval :
barrierCase2Y (Y12 : ℝ) ∈ Set.Icc (manuscriptCase2Y12Interval.1 : ℝ) (manuscriptCase2Y12Interval.2 : ℝ) := by
have he := barrierCase2Y_eval_rat Y12 (by norm_num [Y12])
rw [manuscriptCase2Y12_YV_tail_eq] at he
have hf := manuscript_y_log_field_interval (barrierCase2YRat Y12)
(Y12 : ℝ) (1 - (Y12 : ℝ)) (-1) (-6) (9838463999 / 5000000000) (161536001 / 156250000) Y12_normalizations.1 Y12_normalizations.2
change _ ∈ Set.Icc (manuscriptCase2Y12FieldInterval.1 : ℝ) (manuscriptCase2Y12FieldInterval.2 : ℝ) at hf
constructor
· change (manuscriptCase2Y12Interval.1 : ℝ) ≤ _
dsimp only [manuscriptCase2Y12Interval]
push_cast
linarith only [he, hf.1,
manuscriptCase2Y12YV0_exact_interval.1,
manuscriptCase2Y12YV1_exact_interval.1,
manuscriptCase2Y12YV2_exact_interval.1,
manuscriptCase2Y12YV3_exact_interval.1,
manuscriptCase2Y12YV4_exact_interval.1,
manuscriptCase2Y12YV5_exact_interval.1,
manuscriptCase2Y12YV7_exact_interval.1,
manuscriptCase2Y12YV9_exact_interval.1,
manuscriptCase2Y12YV11_exact_interval.1]
· change _ ≤ (manuscriptCase2Y12Interval.2 : ℝ)
dsimp only [manuscriptCase2Y12Interval]
push_cast
linarith only [he, hf.2,
manuscriptCase2Y12YV0_exact_interval.2,
manuscriptCase2Y12YV1_exact_interval.2,
manuscriptCase2Y12YV2_exact_interval.2,
manuscriptCase2Y12YV3_exact_interval.2,
manuscriptCase2Y12YV4_exact_interval.2,
manuscriptCase2Y12YV5_exact_interval.2,
manuscriptCase2Y12YV7_exact_interval.2,
manuscriptCase2Y12YV9_exact_interval.2,
manuscriptCase2Y12YV11_exact_interval.2]
theorem manuscript_case2Y12_rounded_endpoints :
(-16089604128354934236806518449531773094727 / 10000000000000000000000000000000000000000) ≤ manuscriptCase2Y12Interval.1 ∧ manuscriptCase2Y12Interval.2 ≤ (-8044802064177466746119740776266018913511 / 5000000000000000000000000000000000000000) := by
constructor
· dsimp only [manuscriptCase2Y12Interval]
linarith only [manuscriptCase2Y12_field_rounded.1,
manuscriptCase2Y12YV0_rounded_endpoints.1,
manuscriptCase2Y12YV1_rounded_endpoints.1,
manuscriptCase2Y12YV2_rounded_endpoints.1,
manuscriptCase2Y12YV3_rounded_endpoints.1,
manuscriptCase2Y12YV4_rounded_endpoints.1,
manuscriptCase2Y12YV5_rounded_endpoints.1,
manuscriptCase2Y12YV7_rounded_endpoints.1,
manuscriptCase2Y12YV9_rounded_endpoints.1,
manuscriptCase2Y12YV11_rounded_endpoints.1]
· dsimp only [manuscriptCase2Y12Interval]
linarith only [manuscriptCase2Y12_field_rounded.2,
manuscriptCase2Y12YV0_rounded_endpoints.2,
manuscriptCase2Y12YV1_rounded_endpoints.2,
manuscriptCase2Y12YV2_rounded_endpoints.2,
manuscriptCase2Y12YV3_rounded_endpoints.2,
manuscriptCase2Y12YV4_rounded_endpoints.2,
manuscriptCase2Y12YV5_rounded_endpoints.2,
manuscriptCase2Y12YV7_rounded_endpoints.2,
manuscriptCase2Y12YV9_rounded_endpoints.2,
manuscriptCase2Y12YV11_rounded_endpoints.2]
def manuscriptCase2Y12PrintedUpper : ℚ := (-321792082567 / 200000000000)
theorem manuscript_case2Y12_endpoint_lt_printed :
manuscriptCase2Y12Interval.2 < manuscriptCase2Y12PrintedUpper :=
manuscript_case2Y12_rounded_endpoints.2.trans_lt (by decide +kernel)
theorem manuscript_case2Y12_interval_width :
manuscriptCase2Y12Interval.2 - manuscriptCase2Y12Interval.1 < (216146856249281 / 1000000000000000000000000000000 : ℚ) := by
have hw : (-8044802064177466746119740776266018913511 / 5000000000000000000000000000000000000000) - (-16089604128354934236806518449531773094727 / 10000000000000000000000000000000000000000) < (216146856249281 / 1000000000000000000000000000000 : ℚ) := by decide +kernel
linarith only [hw, manuscript_case2Y12_rounded_endpoints.1, manuscript_case2Y12_rounded_endpoints.2]
theorem manuscript_case2Y12_printed_upper :
barrierCase2Y (Y12 : ℝ) < (manuscriptCase2Y12PrintedUpper : ℝ) :=
manuscript_case2Y12_interval.2.trans_lt ((Rat.cast_lt (K := ℝ)).2 manuscript_case2Y12_endpoint_lt_printed)
end InternalCatalan
end
end
section
noncomputable section
namespace InternalCatalan
def manuscriptCase2Y12SubstituteRat : ℚ :=
barrierCase2YApproxRat Case2PointData.Y12 (-1) (-6) (9838463999 / 5000000000) (161536001 / 156250000) +
(barrierWeightedComplexLogRat (-15199211 / 100000000) (0 / 1) (3) (0) (403546385839119072001 / 312500000000000000000) (0 / 1)) +
(barrierWeightedComplexLogRat (-2225831 / 50000000) (0 / 1) (3) (0) (3545058279156421648009 / 1953125000000000000000) (0 / 1)) +
(barrierWeightedComplexLogRat (-1272699 / 50000000) (0 / 1) (-10) (0) (7165772253707712121 / 3814697265625000000) (0 / 1)) +
(barrierWeightedComplexLogRat (2466317 / 50000000) (0 / 1) (-10) (0) (11016982551984992361 / 9765625000000000000) (0 / 1)) +
(barrierWeightedComplexLogRat (-11618157 / 100000000) (0 / 1) (-10) (0) (401157961756300303129 / 381469726562500000000) (0 / 1)) +
(barrierWeightedComplexLogRat (-13619357 / 100000000) (-600749 / 3125000) (1) (-2) (156810173640480608513521 / 125000000000000000000000) (97900000000 / 383700095961)) +
(barrierWeightedComplexLogRat (-13619357 / 100000000) (-(-600749 / 3125000)) (1) (-(-2)) (156810173640480608513521 / 125000000000000000000000) (-(97900000000 / 383700095961))) +
(barrierWeightedComplexLogRat (7835271 / 50000000) (-15094393 / 100000000) (1) (-2) (7930675282629144832081 / 5000000000000000000000) (9500000000 / 88546175991)) +
(barrierWeightedComplexLogRat (7835271 / 50000000) (-(-15094393 / 100000000)) (1) (-(-2)) (7930675282629144832081 / 5000000000000000000000) (-(9500000000 / 88546175991))) +
(barrierWeightedComplexLogRat (3346771 / 100000000) (5956127 / 100000000) (1) (-2) (3538931634397763365668481 / 2000000000000000000000000) (87975000000 / 1879146623809)) +
(barrierWeightedComplexLogRat (3346771 / 100000000) (-(5956127 / 100000000)) (1) (-(-2)) (3538931634397763365668481 / 2000000000000000000000000) (-(87975000000 / 1879146623809))) +
(barrierWeightedComplexLogRat (-2055213 / 200000000) (-21715849 / 200000000) (1) (-2) (1464810836722176940303129 / 781250000000000000000000) (19840000000 / 1210131071877)) +
(barrierWeightedComplexLogRat (-2055213 / 200000000) (-(-21715849 / 200000000)) (1) (-(-2)) (1464810836722176940303129 / 781250000000000000000000) (-(19840000000 / 1210131071877)))
theorem manuscript_case2Y12_substitute_interval :
manuscriptCase2Y12SubstituteRat ∈ Set.Icc manuscriptCase2Y12Interval.1 manuscriptCase2Y12Interval.2 := by
have hf := manuscript_y_substitute_interval (barrierCase2YRat Case2PointData.Y12) (-1) (-6) (9838463999 / 5000000000) (161536001 / 156250000) (by norm_num) (by norm_num)
change (barrierCase2YApproxRat Case2PointData.Y12 (-1) (-6) (9838463999 / 5000000000) (161536001 / 156250000)) ∈ Set.Icc manuscriptCase2Y12FieldInterval.1 manuscriptCase2Y12FieldInterval.2 at hf
have ht0 := manuscript_weightedComplexLogRat_interval (-15199211 / 100000000) (0 / 1) (3) (0) (403546385839119072001 / 312500000000000000000) (0 / 1) (by norm_num)
change (barrierWeightedComplexLogRat (-15199211 / 100000000) (0 / 1) (3) (0) (403546385839119072001 / 312500000000000000000) (0 / 1)) ∈ Set.Icc manuscriptCase2Y12YV0Interval.1 manuscriptCase2Y12YV0Interval.2 at ht0
have ht1 := manuscript_weightedComplexLogRat_interval (-2225831 / 50000000) (0 / 1) (3) (0) (3545058279156421648009 / 1953125000000000000000) (0 / 1) (by norm_num)
change (barrierWeightedComplexLogRat (-2225831 / 50000000) (0 / 1) (3) (0) (3545058279156421648009 / 1953125000000000000000) (0 / 1)) ∈ Set.Icc manuscriptCase2Y12YV1Interval.1 manuscriptCase2Y12YV1Interval.2 at ht1
have ht2 := manuscript_weightedComplexLogRat_interval (-1272699 / 50000000) (0 / 1) (-10) (0) (7165772253707712121 / 3814697265625000000) (0 / 1) (by norm_num)
change (barrierWeightedComplexLogRat (-1272699 / 50000000) (0 / 1) (-10) (0) (7165772253707712121 / 3814697265625000000) (0 / 1)) ∈ Set.Icc manuscriptCase2Y12YV2Interval.1 manuscriptCase2Y12YV2Interval.2 at ht2
have ht3 := manuscript_weightedComplexLogRat_interval (2466317 / 50000000) (0 / 1) (-10) (0) (11016982551984992361 / 9765625000000000000) (0 / 1) (by norm_num)
change (barrierWeightedComplexLogRat (2466317 / 50000000) (0 / 1) (-10) (0) (11016982551984992361 / 9765625000000000000) (0 / 1)) ∈ Set.Icc manuscriptCase2Y12YV3Interval.1 manuscriptCase2Y12YV3Interval.2 at ht3
have ht4 := manuscript_weightedComplexLogRat_interval (-11618157 / 100000000) (0 / 1) (-10) (0) (401157961756300303129 / 381469726562500000000) (0 / 1) (by norm_num)
change (barrierWeightedComplexLogRat (-11618157 / 100000000) (0 / 1) (-10) (0) (401157961756300303129 / 381469726562500000000) (0 / 1)) ∈ Set.Icc manuscriptCase2Y12YV4Interval.1 manuscriptCase2Y12YV4Interval.2 at ht4
have ht5 := manuscript_weightedComplexLogRat_interval (-13619357 / 100000000) (-600749 / 3125000) (1) (-2) (156810173640480608513521 / 125000000000000000000000) (97900000000 / 383700095961) (by norm_num)
change (barrierWeightedComplexLogRat (-13619357 / 100000000) (-600749 / 3125000) (1) (-2) (156810173640480608513521 / 125000000000000000000000) (97900000000 / 383700095961)) ∈ Set.Icc manuscriptCase2Y12YV5Interval.1 manuscriptCase2Y12YV5Interval.2 at ht5
have hc5 := manuscript_weightedComplexLogRat_conj (-13619357 / 100000000) (-600749 / 3125000) (1) (-2) (156810173640480608513521 / 125000000000000000000000) (97900000000 / 383700095961)
have ht6 := manuscript_weightedComplexLogRat_interval (7835271 / 50000000) (-15094393 / 100000000) (1) (-2) (7930675282629144832081 / 5000000000000000000000) (9500000000 / 88546175991) (by norm_num)
change (barrierWeightedComplexLogRat (7835271 / 50000000) (-15094393 / 100000000) (1) (-2) (7930675282629144832081 / 5000000000000000000000) (9500000000 / 88546175991)) ∈ Set.Icc manuscriptCase2Y12YV7Interval.1 manuscriptCase2Y12YV7Interval.2 at ht6
have hc6 := manuscript_weightedComplexLogRat_conj (7835271 / 50000000) (-15094393 / 100000000) (1) (-2) (7930675282629144832081 / 5000000000000000000000) (9500000000 / 88546175991)
have ht7 := manuscript_weightedComplexLogRat_interval (3346771 / 100000000) (5956127 / 100000000) (1) (-2) (3538931634397763365668481 / 2000000000000000000000000) (87975000000 / 1879146623809) (by norm_num)
change (barrierWeightedComplexLogRat (3346771 / 100000000) (5956127 / 100000000) (1) (-2) (3538931634397763365668481 / 2000000000000000000000000) (87975000000 / 1879146623809)) ∈ Set.Icc manuscriptCase2Y12YV9Interval.1 manuscriptCase2Y12YV9Interval.2 at ht7
have hc7 := manuscript_weightedComplexLogRat_conj (3346771 / 100000000) (5956127 / 100000000) (1) (-2) (3538931634397763365668481 / 2000000000000000000000000) (87975000000 / 1879146623809)
have ht8 := manuscript_weightedComplexLogRat_interval (-2055213 / 200000000) (-21715849 / 200000000) (1) (-2) (1464810836722176940303129 / 781250000000000000000000) (19840000000 / 1210131071877) (by norm_num)
change (barrierWeightedComplexLogRat (-2055213 / 200000000) (-21715849 / 200000000) (1) (-2) (1464810836722176940303129 / 781250000000000000000000) (19840000000 / 1210131071877)) ∈ Set.Icc manuscriptCase2Y12YV11Interval.1 manuscriptCase2Y12YV11Interval.2 at ht8
have hc8 := manuscript_weightedComplexLogRat_conj (-2055213 / 200000000) (-21715849 / 200000000) (1) (-2) (1464810836722176940303129 / 781250000000000000000000) (19840000000 / 1210131071877)
constructor
· change manuscriptCase2Y12Interval.1 ≤ manuscriptCase2Y12SubstituteRat
dsimp only [manuscriptCase2Y12Interval, manuscriptCase2Y12SubstituteRat]
linarith only [hf.1, ht0.1, ht1.1, ht2.1, ht3.1, ht4.1, ht5.1, ht6.1, ht7.1, ht8.1, hc5, hc6, hc7, hc8]
· change manuscriptCase2Y12SubstituteRat ≤ manuscriptCase2Y12Interval.2
dsimp only [manuscriptCase2Y12Interval, manuscriptCase2Y12SubstituteRat]
linarith only [hf.2, ht0.2, ht1.2, ht2.2, ht3.2, ht4.2, ht5.2, ht6.2, ht7.2, ht8.2, hc5, hc6, hc7, hc8]
theorem manuscript_case2Y12_substitute_cutoff :
manuscriptCase2Y12SubstituteRat < ((-160891 / 100000) : ℚ) := by
have hp : manuscriptCase2Y12PrintedUpper < ((-160891 / 100000) : ℚ) := by norm_num [manuscriptCase2Y12PrintedUpper]
exact manuscript_case2Y12_substitute_interval.2.trans_lt (manuscript_case2Y12_endpoint_lt_printed.trans hp)
end InternalCatalan
end
end
section
noncomputable section
namespace InternalCatalan
def manuscriptCase2Y12RoundedSubstituteRat : ℚ :=
manuscriptRoundedYFieldRat (barrierCase2YRat Case2PointData.Y12) (-1) (-6) (9838463999 / 5000000000) (161536001 / 156250000) +
(manuscriptRoundedWeightedComplexLogRat (-15199211 / 100000000) (0 / 1) (3) (0) (403546385839119072001 / 312500000000000000000) (0 / 1)) +
(manuscriptRoundedWeightedComplexLogRat (-2225831 / 50000000) (0 / 1) (3) (0) (3545058279156421648009 / 1953125000000000000000) (0 / 1)) +
(manuscriptRoundedWeightedComplexLogRat (-1272699 / 50000000) (0 / 1) (-10) (0) (7165772253707712121 / 3814697265625000000) (0 / 1)) +
(manuscriptRoundedWeightedComplexLogRat (2466317 / 50000000) (0 / 1) (-10) (0) (11016982551984992361 / 9765625000000000000) (0 / 1)) +
(manuscriptRoundedWeightedComplexLogRat (-11618157 / 100000000) (0 / 1) (-10) (0) (401157961756300303129 / 381469726562500000000) (0 / 1)) +
(manuscriptRoundedWeightedComplexLogRat (-13619357 / 100000000) (-600749 / 3125000) (1) (-2) (156810173640480608513521 / 125000000000000000000000) (97900000000 / 383700095961)) +
(manuscriptRoundedWeightedComplexLogRat (-13619357 / 100000000) (-(-600749 / 3125000)) (1) (-(-2)) (156810173640480608513521 / 125000000000000000000000) (-(97900000000 / 383700095961))) +
(manuscriptRoundedWeightedComplexLogRat (7835271 / 50000000) (-15094393 / 100000000) (1) (-2) (7930675282629144832081 / 5000000000000000000000) (9500000000 / 88546175991)) +
(manuscriptRoundedWeightedComplexLogRat (7835271 / 50000000) (-(-15094393 / 100000000)) (1) (-(-2)) (7930675282629144832081 / 5000000000000000000000) (-(9500000000 / 88546175991))) +
(manuscriptRoundedWeightedComplexLogRat (3346771 / 100000000) (5956127 / 100000000) (1) (-2) (3538931634397763365668481 / 2000000000000000000000000) (87975000000 / 1879146623809)) +
(manuscriptRoundedWeightedComplexLogRat (3346771 / 100000000) (-(5956127 / 100000000)) (1) (-(-2)) (3538931634397763365668481 / 2000000000000000000000000) (-(87975000000 / 1879146623809))) +
(manuscriptRoundedWeightedComplexLogRat (-2055213 / 200000000) (-21715849 / 200000000) (1) (-2) (1464810836722176940303129 / 781250000000000000000000) (19840000000 / 1210131071877)) +
(manuscriptRoundedWeightedComplexLogRat (-2055213 / 200000000) (-(-21715849 / 200000000)) (1) (-(-2)) (1464810836722176940303129 / 781250000000000000000000) (-(19840000000 / 1210131071877)))
theorem manuscript_case2Y12_additional_rounding_error :
|(manuscriptCase2Y12SubstituteRat : ℝ) - (manuscriptCase2Y12RoundedSubstituteRat : ℝ)| < (1 / 10 ^ 32 : ℝ) := by
let a0 : ℚ := barrierCase2YApproxRat Case2PointData.Y12 (-1) (-6) (9838463999 / 5000000000) (161536001 / 156250000)
let r0 : ℚ := manuscriptRoundedYFieldRat (barrierCase2YRat Case2PointData.Y12) (-1) (-6) (9838463999 / 5000000000) (161536001 / 156250000)
let e0 : ℝ := ((7 / 48 : ℝ) + 1 / 12) * (3636 * manuscriptTermRoundStep)
let a1 : ℚ := (barrierWeightedComplexLogRat (-15199211 / 100000000) (0 / 1) (3) (0) (403546385839119072001 / 312500000000000000000) (0 / 1))
let r1 : ℚ := (manuscriptRoundedWeightedComplexLogRat (-15199211 / 100000000) (0 / 1) (3) (0) (403546385839119072001 / 312500000000000000000) (0 / 1))
let e1 : ℝ := (|(((-15199211 / 100000000) : ℚ) : ℝ)| + |(((0 / 1) : ℚ) : ℝ)|) * (3636 * manuscriptTermRoundStep)
let a2 : ℚ := (barrierWeightedComplexLogRat (-2225831 / 50000000) (0 / 1) (3) (0) (3545058279156421648009 / 1953125000000000000000) (0 / 1))
let r2 : ℚ := (manuscriptRoundedWeightedComplexLogRat (-2225831 / 50000000) (0 / 1) (3) (0) (3545058279156421648009 / 1953125000000000000000) (0 / 1))
let e2 : ℝ := (|(((-2225831 / 50000000) : ℚ) : ℝ)| + |(((0 / 1) : ℚ) : ℝ)|) * (3636 * manuscriptTermRoundStep)
let a3 : ℚ := (barrierWeightedComplexLogRat (-1272699 / 50000000) (0 / 1) (-10) (0) (7165772253707712121 / 3814697265625000000) (0 / 1))
let r3 : ℚ := (manuscriptRoundedWeightedComplexLogRat (-1272699 / 50000000) (0 / 1) (-10) (0) (7165772253707712121 / 3814697265625000000) (0 / 1))
let e3 : ℝ := (|(((-1272699 / 50000000) : ℚ) : ℝ)| + |(((0 / 1) : ℚ) : ℝ)|) * (3636 * manuscriptTermRoundStep)
let a4 : ℚ := (barrierWeightedComplexLogRat (2466317 / 50000000) (0 / 1) (-10) (0) (11016982551984992361 / 9765625000000000000) (0 / 1))
let r4 : ℚ := (manuscriptRoundedWeightedComplexLogRat (2466317 / 50000000) (0 / 1) (-10) (0) (11016982551984992361 / 9765625000000000000) (0 / 1))
let e4 : ℝ := (|(((2466317 / 50000000) : ℚ) : ℝ)| + |(((0 / 1) : ℚ) : ℝ)|) * (3636 * manuscriptTermRoundStep)
let a5 : ℚ := (barrierWeightedComplexLogRat (-11618157 / 100000000) (0 / 1) (-10) (0) (401157961756300303129 / 381469726562500000000) (0 / 1))
let r5 : ℚ := (manuscriptRoundedWeightedComplexLogRat (-11618157 / 100000000) (0 / 1) (-10) (0) (401157961756300303129 / 381469726562500000000) (0 / 1))
let e5 : ℝ := (|(((-11618157 / 100000000) : ℚ) : ℝ)| + |(((0 / 1) : ℚ) : ℝ)|) * (3636 * manuscriptTermRoundStep)
let a6 : ℚ := (barrierWeightedComplexLogRat (-13619357 / 100000000) (-600749 / 3125000) (1) (-2) (156810173640480608513521 / 125000000000000000000000) (97900000000 / 383700095961))
let r6 : ℚ := (manuscriptRoundedWeightedComplexLogRat (-13619357 / 100000000) (-600749 / 3125000) (1) (-2) (156810173640480608513521 / 125000000000000000000000) (97900000000 / 383700095961))
let e6 : ℝ := (|(((-13619357 / 100000000) : ℚ) : ℝ)| + |(((-600749 / 3125000) : ℚ) : ℝ)|) * (3636 * manuscriptTermRoundStep)
let a7 : ℚ := (barrierWeightedComplexLogRat (-13619357 / 100000000) (-(-600749 / 3125000)) (1) (-(-2)) (156810173640480608513521 / 125000000000000000000000) (-(97900000000 / 383700095961)))
let r7 : ℚ := (manuscriptRoundedWeightedComplexLogRat (-13619357 / 100000000) (-(-600749 / 3125000)) (1) (-(-2)) (156810173640480608513521 / 125000000000000000000000) (-(97900000000 / 383700095961)))
let e7 : ℝ := (|(((-13619357 / 100000000) : ℚ) : ℝ)| + |(((-(-600749 / 3125000)) : ℚ) : ℝ)|) * (3636 * manuscriptTermRoundStep)
let a8 : ℚ := (barrierWeightedComplexLogRat (7835271 / 50000000) (-15094393 / 100000000) (1) (-2) (7930675282629144832081 / 5000000000000000000000) (9500000000 / 88546175991))
let r8 : ℚ := (manuscriptRoundedWeightedComplexLogRat (7835271 / 50000000) (-15094393 / 100000000) (1) (-2) (7930675282629144832081 / 5000000000000000000000) (9500000000 / 88546175991))
let e8 : ℝ := (|(((7835271 / 50000000) : ℚ) : ℝ)| + |(((-15094393 / 100000000) : ℚ) : ℝ)|) * (3636 * manuscriptTermRoundStep)
let a9 : ℚ := (barrierWeightedComplexLogRat (7835271 / 50000000) (-(-15094393 / 100000000)) (1) (-(-2)) (7930675282629144832081 / 5000000000000000000000) (-(9500000000 / 88546175991)))
let r9 : ℚ := (manuscriptRoundedWeightedComplexLogRat (7835271 / 50000000) (-(-15094393 / 100000000)) (1) (-(-2)) (7930675282629144832081 / 5000000000000000000000) (-(9500000000 / 88546175991)))
let e9 : ℝ := (|(((7835271 / 50000000) : ℚ) : ℝ)| + |(((-(-15094393 / 100000000)) : ℚ) : ℝ)|) * (3636 * manuscriptTermRoundStep)
let a10 : ℚ := (barrierWeightedComplexLogRat (3346771 / 100000000) (5956127 / 100000000) (1) (-2) (3538931634397763365668481 / 2000000000000000000000000) (87975000000 / 1879146623809))
let r10 : ℚ := (manuscriptRoundedWeightedComplexLogRat (3346771 / 100000000) (5956127 / 100000000) (1) (-2) (3538931634397763365668481 / 2000000000000000000000000) (87975000000 / 1879146623809))
let e10 : ℝ := (|(((3346771 / 100000000) : ℚ) : ℝ)| + |(((5956127 / 100000000) : ℚ) : ℝ)|) * (3636 * manuscriptTermRoundStep)
let a11 : ℚ := (barrierWeightedComplexLogRat (3346771 / 100000000) (-(5956127 / 100000000)) (1) (-(-2)) (3538931634397763365668481 / 2000000000000000000000000) (-(87975000000 / 1879146623809)))
let r11 : ℚ := (manuscriptRoundedWeightedComplexLogRat (3346771 / 100000000) (-(5956127 / 100000000)) (1) (-(-2)) (3538931634397763365668481 / 2000000000000000000000000) (-(87975000000 / 1879146623809)))
let e11 : ℝ := (|(((3346771 / 100000000) : ℚ) : ℝ)| + |(((-(5956127 / 100000000)) : ℚ) : ℝ)|) * (3636 * manuscriptTermRoundStep)
let a12 : ℚ := (barrierWeightedComplexLogRat (-2055213 / 200000000) (-21715849 / 200000000) (1) (-2) (1464810836722176940303129 / 781250000000000000000000) (19840000000 / 1210131071877))
let r12 : ℚ := (manuscriptRoundedWeightedComplexLogRat (-2055213 / 200000000) (-21715849 / 200000000) (1) (-2) (1464810836722176940303129 / 781250000000000000000000) (19840000000 / 1210131071877))
let e12 : ℝ := (|(((-2055213 / 200000000) : ℚ) : ℝ)| + |(((-21715849 / 200000000) : ℚ) : ℝ)|) * (3636 * manuscriptTermRoundStep)
let a13 : ℚ := (barrierWeightedComplexLogRat (-2055213 / 200000000) (-(-21715849 / 200000000)) (1) (-(-2)) (1464810836722176940303129 / 781250000000000000000000) (-(19840000000 / 1210131071877)))
let r13 : ℚ := (manuscriptRoundedWeightedComplexLogRat (-2055213 / 200000000) (-(-21715849 / 200000000)) (1) (-(-2)) (1464810836722176940303129 / 781250000000000000000000) (-(19840000000 / 1210131071877)))
let e13 : ℝ := (|(((-2055213 / 200000000) : ℚ) : ℝ)| + |(((-(-21715849 / 200000000)) : ℚ) : ℝ)|) * (3636 * manuscriptTermRoundStep)
have h0 : |(a0 : ℝ) - (r0 : ℝ)| ≤ e0 := by
exact manuscript_rounded_y_field_error_le (barrierCase2YRat Case2PointData.Y12) (-1) (-6) (9838463999 / 5000000000) (161536001 / 156250000) (by norm_num) (by norm_num)
have h1 : |(a1 : ℝ) - (r1 : ℝ)| ≤ e1 := by
exact manuscript_rounded_weighted_complex_log_error_le (-15199211 / 100000000) (0 / 1) (3) (0) (403546385839119072001 / 312500000000000000000) (0 / 1) (by norm_num) (by norm_num)
have h2 : |(a2 : ℝ) - (r2 : ℝ)| ≤ e2 := by
exact manuscript_rounded_weighted_complex_log_error_le (-2225831 / 50000000) (0 / 1) (3) (0) (3545058279156421648009 / 1953125000000000000000) (0 / 1) (by norm_num) (by norm_num)
have h3 : |(a3 : ℝ) - (r3 : ℝ)| ≤ e3 := by
exact manuscript_rounded_weighted_complex_log_error_le (-1272699 / 50000000) (0 / 1) (-10) (0) (7165772253707712121 / 3814697265625000000) (0 / 1) (by norm_num) (by norm_num)
have h4 : |(a4 : ℝ) - (r4 : ℝ)| ≤ e4 := by
exact manuscript_rounded_weighted_complex_log_error_le (2466317 / 50000000) (0 / 1) (-10) (0) (11016982551984992361 / 9765625000000000000) (0 / 1) (by norm_num) (by norm_num)
have h5 : |(a5 : ℝ) - (r5 : ℝ)| ≤ e5 := by
exact manuscript_rounded_weighted_complex_log_error_le (-11618157 / 100000000) (0 / 1) (-10) (0) (401157961756300303129 / 381469726562500000000) (0 / 1) (by norm_num) (by norm_num)
have h6 : |(a6 : ℝ) - (r6 : ℝ)| ≤ e6 := by
exact manuscript_rounded_weighted_complex_log_error_le (-13619357 / 100000000) (-600749 / 3125000) (1) (-2) (156810173640480608513521 / 125000000000000000000000) (97900000000 / 383700095961) (by norm_num) (by norm_num)
have h7 : |(a7 : ℝ) - (r7 : ℝ)| ≤ e7 := by
exact manuscript_rounded_weighted_complex_log_error_le (-13619357 / 100000000) (-(-600749 / 3125000)) (1) (-(-2)) (156810173640480608513521 / 125000000000000000000000) (-(97900000000 / 383700095961)) (by norm_num) (by norm_num)
have h8 : |(a8 : ℝ) - (r8 : ℝ)| ≤ e8 := by
exact manuscript_rounded_weighted_complex_log_error_le (7835271 / 50000000) (-15094393 / 100000000) (1) (-2) (7930675282629144832081 / 5000000000000000000000) (9500000000 / 88546175991) (by norm_num) (by norm_num)
have h9 : |(a9 : ℝ) - (r9 : ℝ)| ≤ e9 := by
exact manuscript_rounded_weighted_complex_log_error_le (7835271 / 50000000) (-(-15094393 / 100000000)) (1) (-(-2)) (7930675282629144832081 / 5000000000000000000000) (-(9500000000 / 88546175991)) (by norm_num) (by norm_num)
have h10 : |(a10 : ℝ) - (r10 : ℝ)| ≤ e10 := by
exact manuscript_rounded_weighted_complex_log_error_le (3346771 / 100000000) (5956127 / 100000000) (1) (-2) (3538931634397763365668481 / 2000000000000000000000000) (87975000000 / 1879146623809) (by norm_num) (by norm_num)
have h11 : |(a11 : ℝ) - (r11 : ℝ)| ≤ e11 := by
exact manuscript_rounded_weighted_complex_log_error_le (3346771 / 100000000) (-(5956127 / 100000000)) (1) (-(-2)) (3538931634397763365668481 / 2000000000000000000000000) (-(87975000000 / 1879146623809)) (by norm_num) (by norm_num)
have h12 : |(a12 : ℝ) - (r12 : ℝ)| ≤ e12 := by
exact manuscript_rounded_weighted_complex_log_error_le (-2055213 / 200000000) (-21715849 / 200000000) (1) (-2) (1464810836722176940303129 / 781250000000000000000000) (19840000000 / 1210131071877) (by norm_num) (by norm_num)
have h13 : |(a13 : ℝ) - (r13 : ℝ)| ≤ e13 := by
exact manuscript_rounded_weighted_complex_log_error_le (-2055213 / 200000000) (-(-21715849 / 200000000)) (1) (-(-2)) (1464810836722176940303129 / 781250000000000000000000) (-(19840000000 / 1210131071877)) (by norm_num) (by norm_num)
have hs1 := manuscript_rat_add_rounding_error (a0) (r0) a1 r1 h0 h1
have hs2 := manuscript_rat_add_rounding_error (a0 + a1) (r0 + r1) a2 r2 hs1 h2
have hs3 := manuscript_rat_add_rounding_error (a0 + a1 + a2) (r0 + r1 + r2) a3 r3 hs2 h3
have hs4 := manuscript_rat_add_rounding_error (a0 + a1 + a2 + a3) (r0 + r1 + r2 + r3) a4 r4 hs3 h4
have hs5 := manuscript_rat_add_rounding_error (a0 + a1 + a2 + a3 + a4) (r0 + r1 + r2 + r3 + r4) a5 r5 hs4 h5
have hs6 := manuscript_rat_add_rounding_error (a0 + a1 + a2 + a3 + a4 + a5) (r0 + r1 + r2 + r3 + r4 + r5) a6 r6 hs5 h6
have hs7 := manuscript_rat_add_rounding_error (a0 + a1 + a2 + a3 + a4 + a5 + a6) (r0 + r1 + r2 + r3 + r4 + r5 + r6) a7 r7 hs6 h7
have hs8 := manuscript_rat_add_rounding_error (a0 + a1 + a2 + a3 + a4 + a5 + a6 + a7) (r0 + r1 + r2 + r3 + r4 + r5 + r6 + r7) a8 r8 hs7 h8
have hs9 := manuscript_rat_add_rounding_error (a0 + a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8) (r0 + r1 + r2 + r3 + r4 + r5 + r6 + r7 + r8) a9 r9 hs8 h9
have hs10 := manuscript_rat_add_rounding_error (a0 + a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9) (r0 + r1 + r2 + r3 + r4 + r5 + r6 + r7 + r8 + r9) a10 r10 hs9 h10
have hs11 := manuscript_rat_add_rounding_error (a0 + a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10) (r0 + r1 + r2 + r3 + r4 + r5 + r6 + r7 + r8 + r9 + r10) a11 r11 hs10 h11
have hs12 := manuscript_rat_add_rounding_error (a0 + a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10 + a11) (r0 + r1 + r2 + r3 + r4 + r5 + r6 + r7 + r8 + r9 + r10 + r11) a12 r12 hs11 h12
have hs13 := manuscript_rat_add_rounding_error (a0 + a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10 + a11 + a12) (r0 + r1 + r2 + r3 + r4 + r5 + r6 + r7 + r8 + r9 + r10 + r11 + r12) a13 r13 hs12 h13
have hbudget : e0 + e1 + e2 + e3 + e4 + e5 + e6 + e7 + e8 + e9 + e10 + e11 + e12 + e13 < (1 / 10 ^ 32 : ℝ) := by
norm_num [e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, manuscriptTermRoundStep]
change |(manuscriptCase2Y12SubstituteRat : ℝ) - (manuscriptCase2Y12RoundedSubstituteRat : ℝ)| ≤ e0 + e1 + e2 + e3 + e4 + e5 + e6 + e7 + e8 + e9 + e10 + e11 + e12 + e13 at hs13
exact hs13.trans_lt hbudget
end InternalCatalan
end
end
section
noncomputable section
namespace InternalCatalan
theorem manuscript_case2Y12_actual_substitution_error :
|barrierCase2Y (Case2PointData.Y12 : ℝ) - (manuscriptCase2Y12SubstituteRat : ℝ)| < ((14 / 1000000000000000) : ℝ) := by
have hw : manuscriptCase2Y12Interval.2 - manuscriptCase2Y12Interval.1 < ((14 / 1000000000000000) : ℚ) :=
manuscript_case2Y12_interval_width.trans (by norm_num)
simpa only [Rat.cast_div, Rat.cast_ofNat] using manuscript_interval_abs_sub_lt_of_width
manuscriptCase2Y12Interval.1 manuscriptCase2Y12Interval.2 manuscriptCase2Y12SubstituteRat
(barrierCase2Y (Case2PointData.Y12 : ℝ)) (14 / 1000000000000000)
manuscript_case2Y12_interval manuscript_case2Y12_substitute_interval hw
end InternalCatalan
end
end
end OAI

Xet Storage Details

Size:
31.7 kB
·
Xet hash:
573391baf35c28d869beb23dfe440a1ee4280f4184838e255746f9e84760c7ba

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