Download data/lean/OAI/Geometry/EinsteinFour/ConnectionPullback.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.14 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/EinsteinFour/ConnectionPullback.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/EinsteinFour/ConnectionPullback.lean
-
curl -L -o ConnectionPullback.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/EinsteinFour/ConnectionPullback.lean
5.14 kB
| import OAI.Geometry.EinsteinFour.CoordinateChangeCalculus | |
| import OAI.Geometry.EinsteinFour.CoordinateConnectionUniqueness | |
| namespace OAI | |
| /-! Metric compatibility under the coordinate change formula for a | |
| connection. The matrices here are four-dimensional chart matrices. -/ | |
| namespace PositiveEinsteinFour.Geometry | |
| open EinsteinFour Matrix | |
| open scoped Manifold ContDiff BigOperators | |
| noncomputable section | |
| theorem pullback_metric_compatibility (H J K P U : Mat4) | |
| (h : J * K = P + U * J) : | |
| Kα΅ * (Jα΅ * H * J) + (Jα΅ * H * J) * K = | |
| Pα΅ * H * J + Jα΅ * (Uα΅ * H + H * U) * J + Jα΅ * H * P := by | |
| have ht : Kα΅ * Jα΅ = Pα΅ + Jα΅ * Uα΅ := by | |
| simpa only [Matrix.transpose_mul, Matrix.transpose_add] using congrArg Matrix.transpose h | |
| calc | |
| _ = (Kα΅ * Jα΅) * H * J + Jα΅ * H * (J * K) := by noncomm_ring | |
| _ = (Pα΅ + Jα΅ * Uα΅) * H * J + Jα΅ * H * (P + U * J) := by rw [ht, h] | |
| _ = _ := by noncomm_ring | |
| def pulledConnection (J P U : Mat4) : Mat4 := Jβ»ΒΉ * (P + U * J) | |
| theorem pulledConnection_equation (J P U : Mat4) (hJ : IsUnit J.det) : | |
| J * pulledConnection J P U = P + U * J := by | |
| unfold pulledConnection | |
| rw [β Matrix.mul_assoc, Matrix.mul_nonsing_inv J hJ, one_mul] | |
| theorem pulledConnection_metric_compatibility (H J P U : Mat4) | |
| (hJ : IsUnit J.det) : | |
| (pulledConnection J P U)α΅ * (Jα΅ * H * J) + | |
| (Jα΅ * H * J) * pulledConnection J P U = | |
| Pα΅ * H * J + Jα΅ * (Uα΅ * H + H * U) * J + Jα΅ * H * P := | |
| pullback_metric_compatibility H J _ P U (pulledConnection_equation J P U hJ) | |
| def weightedConnection (J : Mat4) (C : Fin 4 β Mat4) (i : Fin 4) : Mat4 := | |
| β a, J a i β’ C a | |
| theorem weightedConnection_torsion (J : Mat4) (C : Fin 4 β Mat4) | |
| (hC : β a b r, C a r b = C b r a) (i j r : Fin 4) : | |
| (weightedConnection J C i * J) r j = (weightedConnection J C j * J) r i := by | |
| have he (s t : Fin 4) : (weightedConnection J C s * J) r t = | |
| β a, β b, J a s * C a r b * J b t := by | |
| simp only [weightedConnection, Matrix.mul_apply, Matrix.sum_apply, | |
| Matrix.smul_apply, smul_eq_mul, Finset.sum_mul] | |
| rw [Finset.sum_comm] | |
| rw [he, he, Finset.sum_comm] | |
| apply Finset.sum_congr rfl | |
| intro a _ | |
| apply Finset.sum_congr rfl | |
| intro b _ | |
| rw [hC b a r] | |
| ring | |
| theorem pulledConnection_torsion (J : Mat4) (P C : Fin 4 β Mat4) | |
| (hP : β i j r, P i r j = P j r i) | |
| (hC : β a b r, C a r b = C b r a) (i j k : Fin 4) : | |
| pulledConnection J (P i) (weightedConnection J C i) k j = | |
| pulledConnection J (P j) (weightedConnection J C j) k i := by | |
| change (β r, Jβ»ΒΉ k r * (P i r j + (weightedConnection J C i * J) r j)) = | |
| β r, Jβ»ΒΉ k r * (P j r i + (weightedConnection J C j * J) r i) | |
| apply Finset.sum_congr rfl | |
| intro r _ | |
| rw [hP i j r, weightedConnection_torsion J C hC i j r] | |
| theorem matrixPartial_congruence (J A : FourSpace β Mat4) (z : FourSpace) | |
| (hJ : β r s, DifferentiableAt β (fun w => J w r s) z) | |
| (hA : β r s, DifferentiableAt β (fun w => A w r s) z) (i : Fin 4) : | |
| matrixPartial (fun w => (J w)α΅ * (A w * J w)) i z = | |
| (matrixPartial J i z)α΅ * A z * J z + | |
| (J z)α΅ * matrixPartial A i z * J z + (J z)α΅ * A z * matrixPartial J i z := by | |
| have hAJ (r s : Fin 4) : | |
| DifferentiableAt β (fun w => (A w * J w) r s) z := by | |
| change DifferentiableAt β (fun w => β p, A w r p * J w p s) z | |
| exact DifferentiableAt.fun_sum (fun p _ => (hA r p).mul (hJ p s)) | |
| rw [matrixPartial_mul (fun w => (J w)α΅) (fun w => A w * J w) z | |
| (fun r s => hJ s r) hAJ i, | |
| matrixPartial_transpose, matrixPartial_mul A J z hA hJ i] | |
| noncomm_ring | |
| /-- The mixed Jacobian derivative cancels from the curvature transformation. | |
| The two last premises are exactly the differentiated connection laws. -/ | |
| theorem curvature_intertwining_of_connection | |
| (J Cβ Cβ Uβ Uβ Pβ Pβ Dββ Dββ Vββ Vββ E : Mat4) | |
| (hβ : J * Cβ = Pβ + Uβ * J) (hβ : J * Cβ = Pβ + Uβ * J) | |
| (hββ : Pβ * Cβ + J * Dββ = E + Vββ * J + Uβ * Pβ) | |
| (hββ : Pβ * Cβ + J * Dββ = E + Vββ * J + Uβ * Pβ) : | |
| J * (Dββ - Dββ + Cβ * Cβ - Cβ * Cβ) = | |
| (Vββ - Vββ + Uβ * Uβ - Uβ * Uβ) * J := by | |
| have hd : J * Dββ - J * Dββ = | |
| (Vββ - Vββ) * J + Uβ * Pβ - Uβ * Pβ - Pβ * Cβ + Pβ * Cβ := by | |
| calc | |
| _ = (Pβ * Cβ + J * Dββ) - (Pβ * Cβ + J * Dββ) - | |
| Pβ * Cβ + Pβ * Cβ := by noncomm_ring | |
| _ = _ := by rw [hββ, hββ]; noncomm_ring | |
| calc | |
| _ = (J * Dββ - J * Dββ) + (J * Cβ) * Cβ - (J * Cβ) * Cβ := by | |
| noncomm_ring | |
| _ = ((Vββ - Vββ) * J + Uβ * Pβ - Uβ * Pβ - Pβ * Cβ + Pβ * Cβ) + | |
| (Pβ + Uβ * J) * Cβ - (Pβ + Uβ * J) * Cβ := by rw [hd, hβ, hβ] | |
| _ = (Vββ - Vββ) * J + Uβ * Pβ - Uβ * Pβ - Pβ * Cβ + Pβ * Cβ + | |
| Pβ * Cβ + Uβ * (J * Cβ) - Pβ * Cβ - Uβ * (J * Cβ) := by noncomm_ring | |
| _ = _ := by rw [hβ, hβ]; noncomm_ring | |
| end | |
| end PositiveEinsteinFour.Geometry | |
| end OAI | |