classical
choose b hb using fun i : α => hA (Pi.single i 1)
refine ⟨fun j i => b i j, ?_⟩
ext i j
change (A.mulVec (b j)) i = (1 : Matrix α α K) i j
rw [hb]
simp [Matrix.one_apply, Pi.single_apply]
lemmasmooth_extension {KLσ : Type*} [FieldK] [IsAlgClosedK] [FieldL] [AlgebraKL]
[Fintype σ] (f : MvPolynomial σ K)
(hs : ∀y : σ →K, eval y f = 0→ (∀ j, eval y (pderiv j f) = 0) → y = 0)
(y : σ →L) (hf : aeval y f = 0) (hd : ∀ j, aeval y (pderiv j f) = 0) : y = 0:=by
proof · 22
lines
classical
letF : Option σ →MvPolynomial σ K:=fun i =>match i with
| none => f
| some j => pderiv j f
letI:=Ideal.span (Set.range F)
havehz : ∀ x ∈ zeroLocus KI, x = 0:=by
intro x hx
apply hs x
· exact hx _ (Ideal.subset_span ⟨none,rfl⟩)
· intro j
exact hx _ (Ideal.subset_span ⟨some j,rfl⟩)
havehy : y ∈ zeroLocus LI:=by
rw [zeroLocus_span]
rintro _ ⟨i,rfl⟩
cases i with
| none => exact hf
| some j => exact hd j
ext j
obtain ⟨n,hn⟩ := variable_power_certificate I hz j
havehpow : y j ^ n = 0:=by simpa using hy _ hn
by_contra h
exact pow_ne_zero n h hpow
lemmageneric_bad_zero (f : MvPolynomial (PolarVars τ) K) {r : ℕ}
(hh : f.IsHomogeneous r)
(hs : ∀y : PolarVars τ →K, eval y f = 0→
(∀ j, eval y (pderiv j f) = 0) → y = 0)
(y : PolarVars τ →E)
(hy : ∀ i, eval y (badPolarSystem genericDirections genericLinear (map (algebraMap KE) f) i) = 0) :
y = 0:=by
proof · 18
lines
classical
by_contra hyn
havehf : aeval y f = 0:=by simpa [badPolarSystem, eval_map, aeval_def] using hy none
havehp : ∀ i, polarValue genericDirections f y i = 0:=by
intro i
simpa only [badPolarSystem, eval_polarPolynomial] using hy (some (some i))
havehg : ∃ j, aeval y (pderiv j f) ≠0:=by
by_contra h
exact hyn (smooth_extension f hs y hf (by simpa only [not_exists, not_not] using h))
havehn : ∑ j, genericLinear j * y j ≠0:=fun h =>
hyn (generic_no_infinity f hh y hf hp hg h)
have hu := generic_square_isUnit f hh y hf hp hyn hg
havehj : (squareJacobian genericDirections genericLinear f y).det ≠0:=
isUnit_iff_ne_zero.mp ((Matrix.isUnit_iff_isUnit_det _).mp hu)
have hb := hy (some none)
simp only [badPolarSystem, map_mul, eval_linearPolynomial, RingHom.map_det,
RingHom.mapMatrix_apply, eval_squarePolynomial] at hb
exact (mul_ne_zero hn hj) hb
theoremexists_good_polar_certificate (f : MvPolynomial (PolarVars τ) K) {r : ℕ}
(hh : f.IsHomogeneous r)
(hs : ∀y : PolarVars τ →K, eval y f = 0→
(∀ j, eval y (pderiv j f) = 0) → y = 0) :
∃w : τ →PolarVars τ →K, ∃l : PolarVars τ →K, ∃D : ℕ,
Function.Surjective (macaulayMatrix (fun i => (badPolarDegrees τ r i : ℤ))
(badPolarSystem w l f) D).mulVec :=by
proof · 35
lines
classical
letF:= badPolarSystem (genericDirections (K:=K) (τ := τ)) genericLinear
(map (algebraMap KE) f)
have hhom (i : PolarVars τ) : (F i).IsHomogeneous (badPolarDegrees τ r i) :=
badPolarSystem_homogeneous _ _ (hh.map _) i
havehz : ∀ y ∈ zeroLocus E (Ideal.span (Set.range F)), y = 0:=by
intro y hy
apply generic_bad_zero f hh hs y
intro i
exact hy _ Ideal.mem_span_range_self
obtain ⟨D,hD⟩ := homogeneous_piece_certificate (Ideal.span (Set.range F)) hz
havehM : Function.Surjective
(macaulayMatrix (fun i => (badPolarDegrees τ r i : ℤ)) FD).mulVec :=by
apply (macaulay_surjective_iff _ _ (fun i => homogeneous_intWeight (hhom i)) D).mpr
intro p hp
exact hD p (intWeight_homogeneous hp)
letM:= macaulayMatrix (fun i => (badPolarDegrees τ r i : ℤ)) (universalBadPolar f) DhavehMa : Function.Surjective (M.map (eval₂Hom (algebraMap KE) (genericParameter KP))).mulVec :=byhavehe : M.map (eval₂Hom (algebraMap KE) (genericParameter KP)) =
macaulayMatrix (fun i => (badPolarDegrees τ r i : ℤ)) FD:=by
rw [← macaulayMatrix_map]
apply congrArg (funQ=> macaulayMatrix (fun i => (badPolarDegrees τ r i : ℤ)) QD)
funext i
exact universalBadPolar_specialize f (genericParameter KP) i
rwa [he]
obtain ⟨a,ha⟩ := polynomial_rank_specialize M (genericParameter KP) hMa
refine ⟨fun i j => a (some i,j), fun j => a (none,j), D, ?_⟩
havehe : M.map (eval₂Hom (RingHom.id K) a) =
macaulayMatrix (fun i => (badPolarDegrees τ r i : ℤ))
(badPolarSystem (fun i j => a (some i,j)) (fun j => a (none,j)) f) D:=by
rw [← macaulayMatrix_map]
apply congrArg (funQ=> macaulayMatrix (fun i => (badPolarDegrees τ r i : ℤ)) QD)
funext i
simpa only [Algebra.algebraMap_self, MvPolynomial.map_id] using universalBadPolar_specialize f a i
rwa [he] at ha
lemmapolar_certificate_good (w : τ →PolarVars τ →ℂ) (l : PolarVars τ →ℂ)
(f : MvPolynomial (PolarVars τ) ℂ) {r : ℕ} (hh : f.IsHomogeneous r) (D : ℕ)
(hM : Function.Surjective (macaulayMatrix (fun i => (badPolarDegrees τ r i : ℤ))
(badPolarSystem w l f) D).mulVec) : CI.Good (hypersurfacePolars w f) l :=by
proof · 17
lines
classical
have hz := macaulay_surjective_zero (badPolarSystem w l f) (badPolarDegrees τ r)
(badPolarSystem_homogeneous w l hh) D hM
intro y hn hy
havehp : eval y (linearPolynomial l) * ((squarePolynomial w l f).map (eval y)).det ≠0:=by
intro he
apply hn (hz y ?_)
rintro (_ | (_ | i))
· exact hy none
· simpa only [badPolarSystem, map_mul, RingHom.map_det, RingHom.mapMatrix_apply] using he
· exact hy (some i)
refine ⟨(mul_ne_zero_iff.mp hp).1, ?_⟩
havehe : (CI.square (hypersurfacePolars w f) l).map (eval y) =
((squarePolynomial w l f).map (eval y)).submatrix swapFirstRows id :=by
rw [hypersurfacePolars_square]
rfl
exact determinant_permutation_ne_zero _ _ _ _ swapFirstRows he (mul_ne_zero_iff.mp hp).2
theoremsmooth_polar_count (f : MvPolynomial (PolarVars τ) ℂ) {r : ℕ} (hr : 2≤ r)
(hh : f.IsHomogeneous r)
(hs : ∀y : PolarVars τ →ℂ, eval y f = 0→
(∀ j, eval y (pderiv j f) = 0) → y = 0) :
∃w : τ →PolarVars τ →ℂ, ∃l : PolarVars τ →ℂ,
CI.Good (hypersurfacePolars w f) l ∧Nat.card (CI.Roots (hypersurfacePolars w f) l) = r * (r-1) ^ Fintype.card τ :=by
proof · 7
lines
obtain ⟨w,l,D,hD⟩ := exists_good_polar_certificate f hh hs
have hg := polar_certificate_good w l f hh D hD
refine ⟨w,l,hg,?_⟩
have hc :=CI.good_card (hypersurfacePolars w f) l (hypersurfaceDegrees r)
(by rintro (_ | i) <;> simp only [hypersurfaceDegrees,Option.elim'_none,Option.elim'_some] <;> omega)
(hypersurfacePolars_homogeneous w hh) hg
simpa [hypersurfaceDegrees] using hc
noncomputabledefcoordinateSplit (l : Option ι →ℂ) (h : l none ≠0) :
(Option ι →ℂ) ≃ₗ[ℂ] (Option ι →ℂ) where
body · 30
lines
toFun y :=Option.elim' (∑ j, l j * y j) (fun i => y (some i))
invFun z :=Option.elim' ((z none - ∑ i, l (some i) * z (some i)) / l none)
(fun i => z (some i))
left_inv y :=by
funext i
cases i with
| none => simp only [Option.elim'_none, Option.elim'_some, Fintype.sum_option]
field_simp
ring
| some i => rfl
right_inv z :=by
funext i
cases i with
| none => simp only [Option.elim'_none, Option.elim'_some, Fintype.sum_option]
field_simp
ring
| some i => rfl
map_add' y z :=by
funext i
cases i <;> simp [mul_add, Finset.sum_add_distrib]
map_smul' c y :=by
funext i
cases i with
| none =>
change (∑ j, l j * (c * y j)) = c * ∑ j, l j * y j
rw [Finset.mul_sum]
apply Finset.sum_congr rfl
intro j _
ring
| some i => rfl
lemmaexists_normalizer_equiv (l : Option ι →ℂ) (hl : l ≠0) :
∃e : (Option ι →ℂ) ≃L[ℂ] (Option ι →ℂ),
∀ y, e y none = ∑ j, l j * y j :=by
proof · 17
lines
classical
obtain ⟨i,hi⟩ : ∃ i, l i ≠0:=by
by_contra! h
exact hl (funext h)
let p :=Equiv.swap none i
letc : (Option ι →ℂ) ≃ₗ[ℂ] (Option ι →ℂ) :=LinearEquiv.funCongrLeft ℂℂ p.symm
have hc (y : Option ι →ℂ) (j : Option ι) : c y j = y (p j) := rfl
let l' :=fun j => l (p j)
havehl' : l' none ≠0:=by simpa [l',p] using hi
let e := c.trans (coordinateSplit l' hl')
refine ⟨e.toContinuousLinearEquiv, ?_⟩
intro y
change (coordinateSplit l' hl' (c y)) none = _
rw [coordinateSplit_none]
change (∑ j, l (p j) * y (p j)) = _
exact Equiv.sum_comp p (fun j => l j * y j)