havehs : Function.SurjectiveD:= (LinearMap.injective_iff_surjective).mp hD
let e :=LinearEquiv.ofBijective D.toLinearMap ⟨hD,hs⟩
exact ⟨e.toContinuousLinearEquiv, rfl⟩
lemmanormalizer_simple_restrict
(e : (Option ι →ℂ) ≃L[ℂ] (Option ι →ℂ))
(F : (Option ι →ℂ) → (Option ι →ℂ))
(hfirst : ∀ y, F y none = e y none - 1) (z : ι →ℂ)
(hF : DifferentiableAtℂF (affineNormChart e z))
(hs : (fderiv ℂF (affineNormChart e z)).IsInvertible) :
(fderiv ℂ (fun z i =>F (affineNormChart e z) (some i)) z).IsInvertible:=by
proof · 30
lines
letD:= (fderiv ℂF (affineNormChart e z)).comp
(e.symm.toContinuousLinearMap.comp optionInsert)
havehfull : HasFDerivAt (fun z =>F (affineNormChart e z)) D z :=
hF.hasFDerivAt.comp z (affineNormChart_hasFDerivAt e z)
letE : (ι →ℂ) →L[ℂ] (ι →ℂ) :=ContinuousLinearMap.pi (fun i => (ContinuousLinearMap.proj (some i)).comp D)
havehred : HasFDerivAt (fun z i =>F (affineNormChart e z) (some i)) E z :=
hasFDerivAt_pi.mpr (fun i => (ContinuousLinearMap.proj (some i) : (Option ι →ℂ) →L[ℂ] ℂ).hasFDerivAt.comp z hfull)
havehzero : (fun z =>F (affineNormChart e z) none) = fun _ => (0 : ℂ) :=by
funext z
rw [hfirst, affineNormChart, e.apply_symm_apply]
simp
havehnone : (ContinuousLinearMap.proj none).comp D = 0:=byhave hd := (ContinuousLinearMap.proj none : (Option ι →ℂ) →L[ℂ] ℂ).hasFDerivAt.comp z hfull
change HasFDerivAt (fun z =>F (affineNormChart e z) none) _ z at hd
rw [hzero] at hd
exact hd.unique (hasFDerivAt_const _ _)
rw [hred.fderiv]
apply isInvertible_of_injective
apply LinearMap.ker_eq_bot.mp
apply LinearMap.ker_eq_bot'.mpr
intro v hv
havehd : D v = 0:=by
funext i
cases i with
| none => exact congrArg (funT : (ι →ℂ) →L[ℂ] ℂ=>T v) hnone
| some i => exact congrFun hv i
havehe : e.symm (optionInsert v) = 0:= hs.injective (hd.trans (map_zero _).symm)
havehi : optionInsert v = 0:= e.symm.injective (he.trans (map_zero _).symm)
exact funext (fun i => congrFun hi (some i))
theoremsum_over_exponentCube {P : Poly σ} {n : ℕ}
(hP : P.support ⊆ exponentCube n) :
P = ∑ d ∈ exponentCube n, monomial d (P.coeff d) :=by
proof · 6
lines
calcP = ∑ d ∈P.support, monomial d (P.coeff d) :=MvPolynomial.as_sum P
_ = _ := ?_
apply Finset.sum_subset hP
intro d _ hd
simp only [notMem_support_iff.mp hd, map_zero]
intro e
have hc := support_subset_cube_of_limit hP hp
have ht := tendsto_finsetSum (exponentCube (σ := σ) n)
(fun d _ => (hp d).mul (tendsto_const_nhds (x := (F (monomial d 1)).coeff e)))
convert ht using1
· funext j
exact coeff_linear_map_cube F (hP j) e
· congr 1
exact coeff_linear_map_cube F hc e
theoremdegree_affineMatrixPolynomial (n : ℕ)
(A₀ : Matrix (Fin n) (Fin n) ℂ) (A : σ →Matrix (Fin n) (Fin n) ℂ) :
(affineMatrixPolynomial n A₀A).totalDegree ≤ n :=by
proof · 12
lines
classical
unfold affineMatrixPolynomial
have he :=Matrix.det_apply (showMatrix (Fin n) (Fin n) (Poly σ) fromfun i j =>C (A₀ i j) + ∑ v, C (A v i j) * X v)
rw [he]
apply totalDegree_finsetSum_le
intro s _
apply (totalDegree_smul_le _ _).trans
apply (totalDegree_finsetProd _ _).trans
calc
_ ≤∑_ : Fin n, 1:=Finset.sum_le_sum fun i _ => degree_affine_form _ _
_ = n :=by simp
theoremaffineSubstitution_matrix (b : σ →ℂ) (B : σ → τ →ℂ)
(n : ℕ) (A₀ : Matrix (Fin n) (Fin n) ℂ) (A : σ →Matrix (Fin n) (Fin n) ℂ) :
affineSubstitution b B (affineMatrixPolynomial n A₀A) =
affineMatrixPolynomial n
(fun i j =>A₀ i j + ∑v : σ, A v i j * b v)
(fun w i j =>∑v : σ, A v i j * B v w) :=by
proof · 17
lines
classical
unfold affineMatrixPolynomial
have he :=RingHom.map_det (affineSubstitution b B).toRingHom
(showMatrix (Fin n) (Fin n) (Poly σ) fromfun i j =>C (A₀ i j) + ∑ v, C (A v i j) * X v)
refine he.trans ?_
apply congrArg Matrix.det
funext i j
change (affineSubstitution b B) (C (A₀ i j) + ∑ v, C (A v i j) * X v) =
C (A₀ i j + ∑ v, A v i j * b v) + ∑ w, C (∑ v, A v i j * B v w) * X w
simp only [affineSubstitution, map_add, map_sum, map_mul,
aeval_C, aeval_X, algebraMap_eq]
simp only [mul_add, Finset.mul_sum, Finset.sum_add_distrib, ← map_mul]
rw [← add_assoc]
congr 1
rw [Finset.sum_comm]
simp only [Finset.sum_mul, map_mul, mul_assoc]
theoremHasBorderDeterminant.affineSubstitution {n : ℕ} {p : Poly σ}
(h : HasBorderDeterminant n p) (b : σ →ℂ) (B : σ → τ →ℂ) :
HasBorderDeterminant n (affineSubstitution b B p) :=by
proof · 9
lines
classical
obtain ⟨hn, A₀, A, hlim⟩ := h
refine ⟨hn,
(fun l i j =>A₀ l i j + ∑v : σ, A l v i j * b v),
(fun l w i j =>∑v : σ, A l v i j * B v w), ?_⟩
have hf := coefficientwise_linear_map_limit (PermanentBorder.affineSubstitution b B).toLinearMap
(fun l => support_subset_exponentCube (degree_affineMatrixPolynomial n (A₀ l) (A l))) hlim
intro e
simpa only [AlgHom.toLinearMap_apply, affineSubstitution_matrix] using hf e
theoremaffineMatrixPolynomial_scaleRow (n : ℕ) (i₀ : Fin n) (a : ℂ)
(A₀ : Matrix (Fin n) (Fin n) ℂ) (A : σ →Matrix (Fin n) (Fin n) ℂ) :
affineMatrixPolynomial n (A₀.updateRow i₀ (a • A₀ i₀))
(fun v => (A v).updateRow i₀ (a • A v i₀)) =
a • affineMatrixPolynomial n A₀A:=by
proof · 24
lines
classical
letM : Matrix (Fin n) (Fin n) (Poly σ) :=fun i j =>C (A₀ i j) + ∑ v, C (A v i j) * X v
letM' : Matrix (Fin n) (Fin n) (Poly σ) :=fun i j =>C ((A₀.updateRow i₀ (a • A₀ i₀)) i j) +
∑ v, C (((A v).updateRow i₀ (a • A v i₀)) i j) * X v
havehM : M' = M.updateRow i₀ ((Ca : Poly σ) • M i₀) :=by
funext i j
change C ((A₀.updateRow i₀ (a • A₀ i₀)) i j) + (∑ v,
C (((A v).updateRow i₀ (a • A v i₀)) i j) * X v) = _
by_cases hi : i = i₀
· subst i
rw [Matrix.updateRow_self, Matrix.updateRow_self]
simp only [Matrix.updateRow_self, Pi.smul_apply, smul_eq_mul, map_mul]
change _ = C a * (C (A₀ i₀ j) + ∑ v, C (A v i₀ j) * X v)
simp only [mul_add, Finset.mul_sum, mul_assoc]
· rw [Matrix.updateRow_ne hi, Matrix.updateRow_ne hi]
simp only [Matrix.updateRow_ne hi]
rfl
change M'.det = a • M.det
rw [hM]
rw [Matrix.det_updateRow_smul]
rw [Matrix.updateRow_eq_self]
exact (MvPolynomial.smul_eq_C_mul M.det a).symm
theoremHasBorderDeterminant.smul {n : ℕ} {p : Poly σ}
(h : HasBorderDeterminant n p) (a : ℂ) : HasBorderDeterminant n (a • p) :=by
proof · 8
lines
classical
obtain ⟨hn, A₀, A, hlim⟩ := h
leti₀ : Fin n := ⟨0, hn⟩
refine ⟨hn, (fun l => (A₀ l).updateRow i₀ (a • A₀ l i₀)),
(fun l v => (A l v).updateRow i₀ (a • A l v i₀)), ?_⟩
intro e
simp only [affineMatrixPolynomial_scaleRow, coeff_smul, smul_eq_mul]
exact tendsto_const_nhds.mul (hlim e)