theoremcube_decomposition (n : Eisenstein) :
∃s t c : Eisenstein, Squarefree s ∧Squarefree t ∧IsCoprime s t ∧ n = s*t^2*c^3:=by
proof · 23
lines
refine UniqueFactorizationMonoid.induction_on_prime n ?_ ?_ ?_
· exact ⟨1,1,0,squarefree_one,squarefree_one,isCoprime_one_left,by simp⟩
· intro u hu
exact ⟨u,1,1,hu.squarefree,squarefree_one,isCoprime_one_right,by simp⟩
· intro b p hb hp ih
obtain ⟨s,t,c,hss,hst,hcop,rfl⟩ := ih
by_cases hps : p ∣ s
· obtain ⟨s',rfl⟩ := hps
havehps' : IsCoprime p s' := isRelPrime_iff_isCoprime.mp (squarefree_mul_iff.mp hss).1havehpt : IsCoprime p t := hcop.of_mul_left_left
refine ⟨s',p*t,c,hss.of_mul_right,
squarefree_mul_iff.mpr ⟨hpt.isRelPrime,hp.squarefree,hst⟩,
hps'.symm.mul_right hcop.of_mul_left_right,?_⟩
ring
· by_cases hpt : p ∣ t
· obtain ⟨t',rfl⟩ := hpt
refine ⟨s,t',p*c,hss,hst.of_mul_right,hcop.of_mul_right_right,?_⟩
ring
· have hps' := hp.coprime_iff_not_dvd.mpr hps
have hpt' := hp.coprime_iff_not_dvd.mpr hpt
refine ⟨p*s,t,c,squarefree_mul_iff.mpr ⟨hps'.isRelPrime,hp.squarefree,hss⟩,
hst,hpt'.mul_left hcop,?_⟩
ring
theoremsquarefree_ramified_split (n : Eisenstein) (hs : Squarefree n) :
∃d e : Eisenstein, d ∣3∧IsCoprime e 3∧ n = d*e :=by
proof · 20
lines
haveh : ∀n : Eisenstein, Squarefree n →∃d e : Eisenstein, d ∣3∧IsCoprime e 3∧ n = d*e :=by
intro n
refine UniqueFactorizationMonoid.induction_on_prime n ?_ ?_ ?_
· intro hs
have hh := hs 0 (by simp)
exact (not_isUnit_zero hh).elim
· intro u hu hs
refine ⟨1,u,one_dvd _,?_,by simp⟩
exact (isCoprime_zero_right.mpr hu).of_isCoprime_of_dvd_right (dvd_zero 3)
· intro b p hb hp ih hs
obtain ⟨d,e,hd,he,hbe⟩ := ih hs.of_mul_right
havehpb : IsCoprime p b := isRelPrime_iff_isCoprime.mp (squarefree_mul_iff.mp hs).1by_cases hp3 : p ∣3
· havehpd : IsCoprime p d := (hbe ▸ hpb).of_mul_right_left
refine ⟨p*d,e,hpd.mul_dvd hp3 hd,he,?_⟩
rw [hbe]; ring
· refine ⟨d,p*e,hd,(hp.coprime_iff_not_dvd.mpr hp3).mul_left he,?_⟩
rw [hbe]; ring
exact h n hs
theoremfull_cube_decomposition {n : Eisenstein} (hn : n ≠0) :
∃r s t c : Eisenstein, r ≠0∧ norm r ≤729∧
primary s ∧ primary t ∧Squarefree s ∧Squarefree t ∧IsCoprime s t ∧
c ≠0∧ n = r*s*t^2*c^3:=by
lemmaresidualCubeSupport_mass_le (PRSTC : FinsetEisenstein)
(hP : ∀ b ∈P, primary b) (u : Eisenstein→ℂ) :
(∑ n ∈ residualCubeSupport RSTC, ‖∑ b ∈P, u b*cubicSymbol b n‖^2) ≤
(R.card : ℝ) *
min ((T.card : ℝ)*C.card*finiteCubicBound PS)
((S.card : ℝ)*C.card*finiteCubicBound PT) * ∑ b ∈P, ‖u b‖^2:=by
proof · 41
lines
letL:= min ((T.card : ℝ)*C.card*finiteCubicBound PS)
((S.card : ℝ)*C.card*finiteCubicBound PT)
have htw (r : Eisenstein) :
(∑ n ∈ (cubeBlockSupport STC).image (r * ·), ‖∑ b ∈P, u b*cubicSymbol b n‖^2) ≤L * ∑ b ∈P, ‖u b‖^2:=byhave h := finiteCubicBound_twist_controls_mass P (cubeBlockSupport STC) u
(fun b => cubicSymbol b r) (fun b hb => norm_cubicSymbol_le_one (hP b hb) r)
calc
_ ≤∑ n ∈ cubeBlockSupport STC, ‖∑ b ∈P, u b*cubicSymbol b (r*n)‖^2:=Finset.sum_image_le_of_nonneg (g :=fun n => r*n)
(f :=fun n => ‖∑ b ∈P, u b*cubicSymbol b n‖^2) (fun _ _ => sq_nonneg _)
_ = ∑ n ∈ cubeBlockSupport STC, ‖∑ b ∈P, u b*cubicSymbol b r*cubicSymbol b n‖^2:=by
apply Finset.sum_congr rfl; intro n hn
congr 2
apply Finset.sum_congr rfl; intro b hb
rw [cubicSymbol_mul_upper (hP b hb)]; ring
_ ≤ finiteCubicBound P (cubeBlockSupport STC) * ∑ b ∈P, ‖u b‖^2:= h
_ ≤ _ := mul_le_mul_of_nonneg_right (finiteCubicBound_cubeBlock PSTC hP)
(Finset.sum_nonneg (fun _ _ => sq_nonneg _))
havehunion : (∑ n ∈ residualCubeSupport RSTC, ‖∑ b ∈P, u b*cubicSymbol b n‖^2) ≤∑ r ∈R, ∑ n ∈ (cubeBlockSupport STC).image (r * ·),
‖∑ b ∈P, u b*cubicSymbol b n‖^2:=by
classical
induction RusingFinset.induction_on with
| empty => simp [residualCubeSupport]
| @insert r R hr ih =>
rw [residualCubeSupport, Finset.biUnion_insert, Finset.sum_insert hr]
dsimp only [residualCubeSupport] at ih
havehh : ∀ n ∈ (cubeBlockSupport STC).image (r * ·) ∩R.biUnion (fun r => (cubeBlockSupport STC).image (r * ·)),
(0 : ℝ) ≤ ‖∑ b ∈P, u b*cubicSymbol b n‖^2:=fun _ _ => sq_nonneg _
have he :=Finset.sum_union_inter (s₁ := (cubeBlockSupport STC).image (r * ·))
(s₂ :=R.biUnion (fun r => (cubeBlockSupport STC).image (r * ·)))
(f :=fun n => ‖∑ b ∈P, u b*cubicSymbol b n‖^2)
have hn :=Finset.sum_nonneg hh
linarith
calc
_ ≤∑ r ∈R, ∑ n ∈ (cubeBlockSupport STC).image (r * ·),
‖∑ b ∈P, u b*cubicSymbol b n‖^2:= hunion
_ ≤∑ r ∈R, L * ∑ b ∈P, ‖u b‖^2:=Finset.sum_le_sum (fun r _ => htw r)
_ = _ :=by simp only [Finset.sum_const, nsmul_eq_mul]; ring