openAI-math-dataset / lean /OAI /NumberTheory /Catalan /Analysis /ManuscriptCaseTwoX0LogPrecisionGroup2.lean
roseking's picture
Add lean source and binary files (part 95)
b224933 verified
Raw History Blame Contribute Delete
9.65 kB
9
def manuscriptCase2X0XV0Interval : ℚ × ℚ :=
body · 1 line
  manuscriptWeightedComplexLogInterval (15199211 / 100000000) (0 / 1) (-5) (0) (525223010738080369 / 305175781250000000) (0 / 1)
12
private theorem manuscriptCase2X0XV0_arg_eq : barrierCase2X0XV0LogArg = barrierComplex (724722713 / 3125000000) (0 / 1) := by
proof · 2 lines
  apply Complex.ext <;> norm_num [barrierCase2X0XV0LogArg, Case2PointData.X0, barrierV2Tail,
    barrierConjugatePair, barrierComplex, pow_two]
16
private theorem manuscriptCase2X0XV0_weight_eq : (barrierV2Tail.getD 0 (0, 0)).2 = barrierComplex (15199211 / 100000000) (0 / 1) := by
proof · 1 line
  apply Complex.ext <;> norm_num [barrierV2Tail, barrierConjugatePair, barrierComplex]
19
theorem manuscriptCase2X0XV0_exact_interval :
    barrierCase2XVLogTerm (Case2PointData.X0 : ℝ) (barrierV2Tail.getD 0 (0, 0)) ∈ Set.Icc (manuscriptCase2X0XV0Interval.1 : ℝ) (manuscriptCase2X0XV0Interval.2 : ℝ) := by
proof · 12 lines
  change ((barrierV2Tail.getD 0 (0, 0)).2 * Complex.log barrierCase2X0XV0LogArg).re ∈ _
  rw [manuscriptCase2X0XV0_weight_eq]
  have h := manuscript_weighted_complex_log_interval (15199211 / 100000000) (0 / 1)
    barrierCase2X0XV0LogArg (-5) (0) (525223010738080369 / 305175781250000000) (724722713 / 3125000000) (0 / 1)
  have hratio : ((0 / 1) / (724722713 / 3125000000) : ℚ) = (0 / 1) := by norm_num
  rw [hratio] at h
  unfold manuscriptCase2X0XV0Interval
  apply h
  all_goals
    try rw [manuscriptCase2X0XV0_arg_eq]
    try apply Complex.ext
    all_goals norm_num [barrierComplex, barrierOctantRotate, barrierOctantMultiplier, pow_two]
34
theorem manuscriptCase2X0XV0_rounded_endpoints :
    (-22212133723635100766269959189 / 100000000000000000000000000000) ≤ manuscriptCase2X0XV0Interval.1 ∧ manuscriptCase2X0XV0Interval.2 ≤ (-222121337236351007611381264579 / 1000000000000000000000000000000) := by
proof · 6 lines
  simp only [manuscriptCase2X0XV0Interval, manuscriptWeightedComplexLogInterval,
    manuscriptIntervalAdd, manuscriptIntervalScale, manuscriptScaledLogInterval,
    manuscriptLogHInterval, manuscriptArgInterval, manuscriptPiQuarterInterval,
    manuscriptAtanInterval, barrierLogHRat_two_eq,
    barrierAtanJRat_half_eq, barrierAtanJRat_third_eq]
  decide +kernel
43
theorem manuscriptCase2X0XV0_enclosure :
    barrierCase2XVLogTerm (Case2PointData.X0 : ℝ) (barrierV2Tail.getD 0 (0, 0)) ∈ Set.Icc ((-22212133723635100766269959189 / 100000000000000000000000000000) : ℝ) ((-222121337236351007611381264579 / 1000000000000000000000000000000) : ℝ) := by
proof · 7 lines
  have hlo : ((-22212133723635100766269959189 / 100000000000000000000000000000) : ℝ) ≤ (manuscriptCase2X0XV0Interval.1 : ℝ) := by
    simpa only [Rat.cast_div, Rat.cast_neg, Rat.cast_ofNat] using
      (Rat.cast_le (K := ℝ)).mpr manuscriptCase2X0XV0_rounded_endpoints.1
  have hhi : (manuscriptCase2X0XV0Interval.2 : ℝ) ≤ ((-222121337236351007611381264579 / 1000000000000000000000000000000) : ℝ) := by
    simpa only [Rat.cast_div, Rat.cast_neg, Rat.cast_ofNat] using
      (Rat.cast_le (K := ℝ)).mpr manuscriptCase2X0XV0_rounded_endpoints.2
  exact ⟨hlo.trans manuscriptCase2X0XV0_exact_interval.1, manuscriptCase2X0XV0_exact_interval.2.trans hhi⟩
53
def manuscriptCase2X0XV1Interval : ℚ × ℚ :=
body · 1 line
  manuscriptWeightedComplexLogInterval (2225831 / 50000000) (0 / 1) (-8) (0) (374137912267723321 / 238418579101562500) (0 / 1)
56
private theorem manuscriptCase2X0XV1_arg_eq : barrierCase2X0XV1LogArg = barrierComplex (611668139 / 7812500000) (0 / 1) := by
proof · 2 lines
  apply Complex.ext <;> norm_num [barrierCase2X0XV1LogArg, Case2PointData.X0, barrierV2Tail,
    barrierConjugatePair, barrierComplex, pow_two]
60
private theorem manuscriptCase2X0XV1_weight_eq : (barrierV2Tail.getD 1 (0, 0)).2 = barrierComplex (2225831 / 50000000) (0 / 1) := by
proof · 1 line
  apply Complex.ext <;> norm_num [barrierV2Tail, barrierConjugatePair, barrierComplex]
63
theorem manuscriptCase2X0XV1_exact_interval :
    barrierCase2XVLogTerm (Case2PointData.X0 : ℝ) (barrierV2Tail.getD 1 (0, 0)) ∈ Set.Icc (manuscriptCase2X0XV1Interval.1 : ℝ) (manuscriptCase2X0XV1Interval.2 : ℝ) := by
proof · 12 lines
  change ((barrierV2Tail.getD 1 (0, 0)).2 * Complex.log barrierCase2X0XV1LogArg).re ∈ _
  rw [manuscriptCase2X0XV1_weight_eq]
  have h := manuscript_weighted_complex_log_interval (2225831 / 50000000) (0 / 1)
    barrierCase2X0XV1LogArg (-8) (0) (374137912267723321 / 238418579101562500) (611668139 / 7812500000) (0 / 1)
  have hratio : ((0 / 1) / (611668139 / 7812500000) : ℚ) = (0 / 1) := by norm_num
  rw [hratio] at h
  unfold manuscriptCase2X0XV1Interval
  apply h
  all_goals
    try rw [manuscriptCase2X0XV1_arg_eq]
    try apply Complex.ext
    all_goals norm_num [barrierComplex, barrierOctantRotate, barrierOctantMultiplier, pow_two]
78
theorem manuscriptCase2X0XV1_rounded_endpoints :
    (-11339675944054200195960309293 / 100000000000000000000000000000) ≤ manuscriptCase2X0XV1Interval.1 ∧ manuscriptCase2X0XV1Interval.2 ≤ (-113396759440542001935555226169 / 1000000000000000000000000000000) := by
proof · 6 lines
  simp only [manuscriptCase2X0XV1Interval, manuscriptWeightedComplexLogInterval,
    manuscriptIntervalAdd, manuscriptIntervalScale, manuscriptScaledLogInterval,
    manuscriptLogHInterval, manuscriptArgInterval, manuscriptPiQuarterInterval,
    manuscriptAtanInterval, barrierLogHRat_two_eq,
    barrierAtanJRat_half_eq, barrierAtanJRat_third_eq]
  decide +kernel
87
theorem manuscriptCase2X0XV1_enclosure :
    barrierCase2XVLogTerm (Case2PointData.X0 : ℝ) (barrierV2Tail.getD 1 (0, 0)) ∈ Set.Icc ((-11339675944054200195960309293 / 100000000000000000000000000000) : ℝ) ((-113396759440542001935555226169 / 1000000000000000000000000000000) : ℝ) := by
proof · 7 lines
  have hlo : ((-11339675944054200195960309293 / 100000000000000000000000000000) : ℝ) ≤ (manuscriptCase2X0XV1Interval.1 : ℝ) := by
    simpa only [Rat.cast_div, Rat.cast_neg, Rat.cast_ofNat] using
      (Rat.cast_le (K := ℝ)).mpr manuscriptCase2X0XV1_rounded_endpoints.1
  have hhi : (manuscriptCase2X0XV1Interval.2 : ℝ) ≤ ((-113396759440542001935555226169 / 1000000000000000000000000000000) : ℝ) := by
    simpa only [Rat.cast_div, Rat.cast_neg, Rat.cast_ofNat] using
      (Rat.cast_le (K := ℝ)).mpr manuscriptCase2X0XV1_rounded_endpoints.2
  exact ⟨hlo.trans manuscriptCase2X0XV1_exact_interval.1, manuscriptCase2X0XV1_exact_interval.2.trans hhi⟩
97
def manuscriptCase2X0XV2Interval : ℚ × ℚ :=
body · 1 line
  manuscriptWeightedComplexLogInterval (1272699 / 50000000) (0 / 1) (1) (0) (3323874192405557724649 / 1953125000000000000000) (0 / 1)
100
private theorem manuscriptCase2X0XV2_arg_eq : barrierCase2X0XV2LogArg = barrierComplex (57653050157 / 31250000000) (0 / 1) := by
proof · 2 lines
  apply Complex.ext <;> norm_num [barrierCase2X0XV2LogArg, Case2PointData.X0, barrierV2Tail,
    barrierConjugatePair, barrierComplex, pow_two]
104
private theorem manuscriptCase2X0XV2_weight_eq : (barrierV2Tail.getD 2 (0, 0)).2 = barrierComplex (1272699 / 50000000) (0 / 1) := by
proof · 1 line
  apply Complex.ext <;> norm_num [barrierV2Tail, barrierConjugatePair, barrierComplex]
107
theorem manuscriptCase2X0XV2_exact_interval :
    barrierCase2XVLogTerm (Case2PointData.X0 : ℝ) (barrierV2Tail.getD 2 (0, 0)) ∈ Set.Icc (manuscriptCase2X0XV2Interval.1 : ℝ) (manuscriptCase2X0XV2Interval.2 : ℝ) := by
proof · 12 lines
  change ((barrierV2Tail.getD 2 (0, 0)).2 * Complex.log barrierCase2X0XV2LogArg).re ∈ _
  rw [manuscriptCase2X0XV2_weight_eq]
  have h := manuscript_weighted_complex_log_interval (1272699 / 50000000) (0 / 1)
    barrierCase2X0XV2LogArg (1) (0) (3323874192405557724649 / 1953125000000000000000) (57653050157 / 31250000000) (0 / 1)
  have hratio : ((0 / 1) / (57653050157 / 31250000000) : ℚ) = (0 / 1) := by norm_num
  rw [hratio] at h
  unfold manuscriptCase2X0XV2Interval
  apply h
  all_goals
    try rw [manuscriptCase2X0XV2_arg_eq]
    try apply Complex.ext
    all_goals norm_num [barrierComplex, barrierOctantRotate, barrierOctantMultiplier, pow_two]
122
theorem manuscriptCase2X0XV2_rounded_endpoints :
    (3117724515887614249246260421 / 200000000000000000000000000000) ≤ manuscriptCase2X0XV2Interval.1 ∧ manuscriptCase2X0XV2Interval.2 ≤ (1558862257943807124795024231 / 100000000000000000000000000000) := by
proof · 6 lines
  simp only [manuscriptCase2X0XV2Interval, manuscriptWeightedComplexLogInterval,
    manuscriptIntervalAdd, manuscriptIntervalScale, manuscriptScaledLogInterval,
    manuscriptLogHInterval, manuscriptArgInterval, manuscriptPiQuarterInterval,
    manuscriptAtanInterval, barrierLogHRat_two_eq,
    barrierAtanJRat_half_eq, barrierAtanJRat_third_eq]
  decide +kernel
131
theorem manuscriptCase2X0XV2_enclosure :
    barrierCase2XVLogTerm (Case2PointData.X0 : ℝ) (barrierV2Tail.getD 2 (0, 0)) ∈ Set.Icc ((3117724515887614249246260421 / 200000000000000000000000000000) : ℝ) ((1558862257943807124795024231 / 100000000000000000000000000000) : ℝ) := by
proof · 7 lines
  have hlo : ((3117724515887614249246260421 / 200000000000000000000000000000) : ℝ) ≤ (manuscriptCase2X0XV2Interval.1 : ℝ) := by
    simpa only [Rat.cast_div, Rat.cast_neg, Rat.cast_ofNat] using
      (Rat.cast_le (K := ℝ)).mpr manuscriptCase2X0XV2_rounded_endpoints.1
  have hhi : (manuscriptCase2X0XV2Interval.2 : ℝ) ≤ ((1558862257943807124795024231 / 100000000000000000000000000000) : ℝ) := by
    simpa only [Rat.cast_div, Rat.cast_neg, Rat.cast_ofNat] using
      (Rat.cast_le (K := ℝ)).mpr manuscriptCase2X0XV2_rounded_endpoints.2
  exact ⟨hlo.trans manuscriptCase2X0XV2_exact_interval.1, manuscriptCase2X0XV2_exact_interval.2.trans hhi⟩