lemmaconnectionDifference_smooth (h g : KaehlerMetricA) (q : FinA.count)
{z : Coordinates d} (hz : z ∈ (A.chart q).target) (a : Fin d) :
ContDiffAtℝ∞ (fun y => h.connectionDifference g q y a) z :=by
proof · 6
lines
have hg := (g.smooth q).contDiffAt ((A.chart q).open_target.mem_nhds hz)
have hh := (h.smooth q).contDiffAt ((A.chart q).open_target.mem_nhds hz)
havehi : ContDiffAtℝ∞ (fun y => (h.matrix q y)⁻¹) z :=
((MongeAmpere.contDiffAt_inv _ (h.positive q z hz).det_pos.ne').restrict_scalars ℝ).comp z hh
exact (contDiffAt_holDerivative hg a).sub
(matrix_mul_contDiffAt (matrix_mul_contDiffAt hg hi) (contDiffAt_holDerivative hh a))
lemmaconnectionDifference_adjoint (h g : KaehlerMetricA) (q : FinA.count)
{z : Coordinates d} (hz : z ∈ (A.chart q).target) (a : Fin d) :
(h.connectionDifference g q z a)ᴴ =
barDerivative (g.matrix q) z a - barDerivative (h.matrix q) z a*(h.matrix q z)⁻¹*g.matrix q z :=by
proof · 5
lines
unfold connectionDifference
rw [conjTranspose_sub,conjTranspose_mul,conjTranspose_mul,
g.holDerivative_adjoint q hz,h.holDerivative_adjoint q hz,
(h.positive q z hz).inv.isHermitian.eq,(g.positive q z hz).isHermitian.eq]
simp only [mul_assoc]
lemmaholRealDeriv_traceMetric (h g : KaehlerMetricA) (q : FinA.count)
{z : Coordinates d} (hz : z ∈ (A.chart q).target) (a : Fin d) :
holRealDeriv ((h.traceMetric g).localExpression q) z a =
((h.matrix q z)⁻¹*h.connectionDifference g q z a).trace :=by
proof · 22
lines
havehs : ContDiffAtℝ∞ ((h.traceMetric g).localExpression q) z :=
((h.traceMetric g).smooth q).contDiffAt ((A.chart q).open_target.mem_nhds hz)
have hg := (g.smooth q).contDiffAt ((A.chart q).open_target.mem_nhds hz)
have hh := (h.smooth q).contDiffAt ((A.chart q).open_target.mem_nhds hz)
havehi : ContDiffAtℝ∞ (fun y => (h.matrix q y)⁻¹) z :=
((MongeAmpere.contDiffAt_inv _ (h.positive q z hz).det_pos.ne').restrict_scalars ℝ).comp z hh
havehe : (fun y => (((h.traceMetric g).localExpression q y):ℂ)) =ᶠ[nhds z]
(fun y => ((h.matrix q y)⁻¹*g.matrix q y).trace) :=by
filter_upwards [(A.chart q).open_target.mem_nhds hz] with y hy
rw [h.traceMetric_local g q hy]
exact MongeAmpere.trace_mul_real (h.positive q y hy).inv.isHermitian (g.positive q y hy).isHermitian
rw [← holDeriv_ofReal (hs.differentiableAt (by simp)),holDeriv_congr he,
holDeriv_trace (matrix_mul_differentiableAt (hi.differentiableAt (by simp)) (hg.differentiableAt (by simp))),
holDerivative_mul (hi.differentiableAt (by simp)) (hg.differentiableAt (by simp)),
holDerivative_inv (hh.differentiableAt (by simp)) (isUnit_iff_ne_zero.mpr (h.positive q z hz).det_pos.ne')]
simp only [connectionDifference,neg_mul,mul_sub,trace_add,trace_sub,trace_neg]
havehc : ((h.matrix q z)⁻¹*holDerivative (h.matrix q) z a*(h.matrix q z)⁻¹*g.matrix q z).trace =
((h.matrix q z)⁻¹*g.matrix q z*(h.matrix q z)⁻¹*holDerivative (h.matrix q) z a).trace :=by
simpa only [mul_assoc] usingMatrix.trace_mul_comm
((h.matrix q z)⁻¹*holDerivative (h.matrix q) z a) ((h.matrix q z)⁻¹*g.matrix q z)
simp only [mul_assoc] at hc ⊢
linear_combination -hc
lemmabarDerivative_connectionDifference (h g : KaehlerMetricA) (q : FinA.count)
{z : Coordinates d} (hz : z ∈ (A.chart q).target) (b a : Fin d) :
barDerivative (fun y => h.connectionDifference g q y a) z b =
barDerivative (fun y => holDerivative (g.matrix q) y a) z b -
(barDerivative (g.matrix q) z b*(h.matrix q z)⁻¹*holDerivative (h.matrix q) z a -
g.matrix q z*(h.matrix q z)⁻¹*barDerivative (h.matrix q) z b*(h.matrix q z)⁻¹*holDerivative (h.matrix q) z a +
g.matrix q z*(h.matrix q z)⁻¹*barDerivative (fun y => holDerivative (h.matrix q) y a) z b) :=by
proof · 14
lines
have hg := (g.smooth q).contDiffAt ((A.chart q).open_target.mem_nhds hz)
have hh := (h.smooth q).contDiffAt ((A.chart q).open_target.mem_nhds hz)
havehi : ContDiffAtℝ∞ (fun y => (h.matrix q y)⁻¹) z :=
((MongeAmpere.contDiffAt_inv _ (h.positive q z hz).det_pos.ne').restrict_scalars ℝ).comp z hh
have pd := (contDiffAt_holDerivative hh a).differentiableAt (by simp)
have gd := hg.differentiableAt (by simp)
have id := hi.differentiableAt (by simp)
unfold connectionDifference
rw [barDerivative_sub ((contDiffAt_holDerivative hg a).differentiableAt (by simp))
(matrix_mul_differentiableAt (matrix_mul_differentiableAt gd id) pd),
barDerivative_mul (matrix_mul_differentiableAt gd id) pd,
barDerivative_mul gd id,
barDerivative_inv (hh.differentiableAt (by simp)) (isUnit_iff_ne_zero.mpr (h.positive q z hz).det_pos.ne')]
simp only [mul_neg,neg_mul,add_mul,mul_assoc,sub_eq_add_neg]
lemmahessian_traceMetric (h g : KaehlerMetricA) (q : FinA.count)
{z : Coordinates d} (hz : z ∈ (A.chart q).target) (b a : Fin d) :
(h.traceMetric g).hessian q z b a =
(-((h.matrix q z)⁻¹*g.curvatureMatrix q z b a)).trace +
((h.matrix q z)⁻¹*(h.connectionDifference g q z b)ᴴ*(g.matrix q z)⁻¹*h.connectionDifference g q z a).trace +
((h.matrix q z)⁻¹*h.curvatureMatrix q z b a*(h.matrix q z)⁻¹*g.matrix q z).trace :=by
proof · 18
lines
have hh := (h.smooth q).contDiffAt ((A.chart q).open_target.mem_nhds hz)
havehi : ContDiffAtℝ∞ (fun y => (h.matrix q y)⁻¹) z :=
((MongeAmpere.contDiffAt_inv _ (h.positive q z hz).det_pos.ne').restrict_scalars ℝ).comp z hh
have hw := (h.connectionDifference_smooth g q hz a).differentiableAt (by simp)
havehe : (fun y => holRealDeriv ((h.traceMetric g).localExpression q) y a) =ᶠ[nhds z]
(fun y => ((h.matrix q y)⁻¹*h.connectionDifference g q y a).trace) :=by
filter_upwards [(A.chart q).open_target.mem_nhds hz] with y hy
exact h.holRealDeriv_traceMetric g q hy a
havehs : ContDiffAtℝ∞ ((h.traceMetric g).localExpression q) z :=
((h.traceMetric g).smooth q).contDiffAt ((A.chart q).open_target.mem_nhds hz)
change PotentialKaehler.potentialMatrix ((h.traceMetric g).localExpression q) z b a = _
rw [← barDeriv_holRealDeriv hs,
barDeriv_congr he,barDeriv_trace (matrix_mul_differentiableAt (hi.differentiableAt (by simp)) hw),
barDerivative_mul (hi.differentiableAt (by simp)) hw,
barDerivative_inv (hh.differentiableAt (by simp)) (isUnit_iff_ne_zero.mpr (h.positive q z hz).det_pos.ne'),
h.barDerivative_connectionDifference g q hz,h.connectionDifference_adjoint g q hz]
exact MongeAmpere.trace_lu_W_identity _ _ _ _ _ _ _ _
(isUnit_iff_ne_zero.mpr (g.positive q z hz).det_pos.ne')