cfahlgren1's picture
download
raw
5.38 kB
import OAI.Geometry.IsometricImmersion.Calculus.AffineHessian
import OAI.Geometry.IsometricImmersion.Curvature.IntrinsicCurvature
namespace OAI
noncomputable section
open scoped ContDiff Topology BigOperators Matrix
open Filter
namespace SmoothLocal.Geometry
namespace AffineCalculus
theorem coordPartial_const_mul_at {f : Coord → ℝ} {p : Coord}
(hf : DifferentiableAt ℝ f p) (c : ℝ) (i : Fin 2) :
coordPartial i (fun q => c * f q) p = c * coordPartial i f p := by
simp [coordPartial, fderiv_const_mul hf]
theorem coordPartial_mul_const_at {f : Coord → ℝ} {p : Coord}
(hf : DifferentiableAt ℝ f p) (c : ℝ) (i : Fin 2) :
coordPartial i (fun q => f q * c) p = coordPartial i f p * c := by
simpa only [mul_comm] using coordPartial_const_mul_at hf c i
end AffineCalculus
theorem coordPartial_affine_comp {f : Coord → ℝ}
(b : Coord) (R : Matrix (Fin 2) (Fin 2) ℝ) (q : Coord)
(hf : DifferentiableAt ℝ f (affineCoordinates b R q)) (i : Fin 2) :
coordPartial i (f ∘ affineCoordinates b R) q =
∑ a, R a i * coordPartial a f (affineCoordinates b R q) := by
change fderiv ℝ (f ∘ affineCoordinates b R) q (Pi.single i 1) = _
rw [fderiv_affine_comp_apply b R q (Pi.single i 1) hf,
matrix_column_basis_expansion R i]
simp only [map_add, map_smul, smul_eq_mul, Fin.sum_univ_two, coordPartial]
theorem coordPartial_affinePullbackMetric {g : MetricField} {U : Set Coord}
(hg : SmoothPositiveOn g U) (hU : IsOpen U)
(b : Coord) (R : Matrix (Fin 2) (Fin 2) ℝ) (q : Coord)
(hq : affineCoordinates b R q ∈ U) (k i j : Fin 2) :
coordPartial k (fun p => affinePullbackMetric g b R p i j) q =
∑ a, ∑ c, ∑ d, R a i * R c j * R d k *
coordPartial d (fun p => g p a c) (affineCoordinates b R q) := by
have hd (a c : Fin 2) : DifferentiableAt ℝ (fun p => g p a c)
(affineCoordinates b R q) :=
(((hg.1 a c) _ hq).contDiffAt (hU.mem_nhds hq)).differentiableAt (by simp)
have hdc (a c : Fin 2) : DifferentiableAt ℝ
(fun p => g (affineCoordinates b R p) a c) q :=
(hd a c).comp q (affineCoordinates_hasFDerivAt b R q).differentiableAt
have hs (c : Fin 2) : DifferentiableAt ℝ
(fun p => ∑ a, R a i * g (affineCoordinates b R p) a c) q :=
DifferentiableAt.fun_sum fun a _ => (hdc a c).const_mul (R a i)
have hchain (a c : Fin 2) :
coordPartial k (fun p => g (affineCoordinates b R p) a c) q =
∑ d, R d k * coordPartial d (fun p => g p a c) (affineCoordinates b R q) :=
coordPartial_affine_comp b R q (hd a c) k
simp only [affinePullbackMetric, Matrix.mul_apply, Matrix.transpose_apply]
rw [HessianCalculus.coordPartial_sum_two _
(fun c => (hs c).mul_const (R c j)) k]
simp_rw [AffineCalculus.coordPartial_mul_const_at (hs _) _ k,
HessianCalculus.coordPartial_sum_two _
(fun a => (hdc a _).const_mul (R a i)) k,
AffineCalculus.coordPartial_const_mul_at (hdc _ _) _ k,
hchain]
simp only [Fin.sum_univ_two]
ring
theorem christoffelFirstKind_affinePullback {g : MetricField} {U : Set Coord}
(hg : SmoothPositiveOn g U) (hU : IsOpen U)
(b : Coord) (R : Matrix (Fin 2) (Fin 2) ℝ) (q : Coord)
(hq : affineCoordinates b R q ∈ U) (i j l : Fin 2) :
christoffelFirstKind (affinePullbackMetric g b R) i j q l =
∑ a, ∑ c, ∑ d, R a l * R c i * R d j *
christoffelFirstKind g c d (affineCoordinates b R q) a := by
simp only [christoffelFirstKind, coordPartial_affinePullbackMetric hg hU b R q hq,
Fin.sum_univ_two]
ring
theorem christoffel_affinePullback_push {g : MetricField} {U : Set Coord}
(hg : SmoothPositiveOn g U) (hU : IsOpen U)
(b : Coord) (R : Matrix (Fin 2) (Fin 2) ℝ) (hR : IsUnit R)
(q : Coord) (hq : affineCoordinates b R q ∈ U) (a i j : Fin 2) :
(∑ l, R a l * christoffel (affinePullbackMetric g b R) l i j q) =
∑ c, ∑ d, R c i * R d j * christoffel g a c d (affineCoordinates b R q) := by
have hRinj : Function.Injective R.mulVec := Matrix.mulVec_injective_of_isUnit hR
have hgR := affinePullbackMetric_smoothPositive hg b R hRinj
have hRt : IsUnit Rᵀ := by
apply (Matrix.isUnit_iff_isUnit_det _).mpr
rw [Matrix.det_transpose]
exact (Matrix.isUnit_iff_isUnit_det _).mp hR
have hlower (l c d : Fin 2) :
christoffelFirstKind g c d (affineCoordinates b R q) l =
∑ r, g (affineCoordinates b R q) l r *
christoffel g r c d (affineCoordinates b R q) :=
(congrFun (metric_mul_christoffel hg hq c d) l).symm
have heq :
(Rᵀ * g (affineCoordinates b R q)) *ᵥ
(R *ᵥ (fun l => christoffel (affinePullbackMetric g b R) l i j q)) =
(Rᵀ * g (affineCoordinates b R q)) *ᵥ
(fun r => ∑ c, ∑ d, R c i * R d j *
christoffel g r c d (affineCoordinates b R q)) := by
rw [Matrix.mulVec_mulVec]
change affinePullbackMetric g b R q *ᵥ
(fun l => christoffel (affinePullbackMetric g b R) l i j q) = _
rw [metric_mul_christoffel hgR hq i j]
ext l
rw [christoffelFirstKind_affinePullback hg hU b R q hq]
simp only [hlower, Matrix.mulVec, Matrix.mul_apply, Matrix.transpose_apply,
dotProduct, Fin.sum_univ_two]
ring
have hv := Matrix.mulVec_injective_of_isUnit
(hRt.mul (hg.2 (affineCoordinates b R q) hq).isUnit) heq
exact congrFun hv a
end SmoothLocal.Geometry
end
end OAI

Xet Storage Details

Size:
5.38 kB
·
Xet hash:
a504b9496ec446fba4f2108f30331331532a7ceab297ea27d8b4cd0b4180464c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.