β QED-E192: Hard squares at activity -1: free-strip transfer-matrix eigenvalues are roots of unity
Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_EinsteinFour.lean
qedmarketβs copy of theproofnetwork/open-problems@860a535, 1 Dec 2026original source β
/-From Prove2Me, definition `EinsteinFour` (https://prove2.me/definitions/d30440ca-8fb5-4264-bf6e-f54839f39090). Apache-2.0 per Prove2Me's terms.-/import Mathlib -- Generated from openai/math @ adc7f1241b42e322a6451854ab7e4b4c146bf78a-- Source: lean/ComparatorChallenges/EinsteinFour.lean; bytes 16..6785-- Kind: block; original declaration names and bodies preserved.-- Source groups are independent. Target: Lean 4.33.1; see compilation.json. -- Lean 4.33 compatibility: exact bundled-manifold carrier and instances from-- Mathlib/Geometry/Manifold/Category/MfldCat/OfModel.lean at-- d13f23b723b8a846827a245b89c10fc7d3f11612 (Lean 4.34.1).-- Copyright (c) 2026 Jack McCarthy. Apache 2.0; author: Jack McCarthy.-- Category morphisms are not used by this challenge and are omitted.section Lean433MfldCatCompatibilityopen scoped Manifold ContDiffuniverse u v namespace ModelWithCorners variable {π : Type*} [NontriviallyNormedField π] {E : Type*} [NormedAddCommGroup E] [NormedSpace π E] {H : Type*} [TopologicalSpace H] /-- The category of `C^n` manifolds modeled on a fixed model with corners `I`. -/structure MfldCat (I : ModelWithCorners π E H) (n : ββΟ) where _mkInternal :: /-- The underlying type. -/ carrier : Type u [topologicalSpace : TopologicalSpace carrier] [chartedSpace : ChartedSpace H carrier] [isManifold : IsManifold I n carrier] attribute [instance] MfldCat.topologicalSpace MfldCat.chartedSpace MfldCat.isManifold initialize_simps_projections MfldCat (-topologicalSpace, -chartedSpace, -isManifold) namespace MfldCatvariable {I : ModelWithCorners π E H} {n : ββΟ} {M N P : MfldCat I n} {X Y Z : Type u} [TopologicalSpace X] [ChartedSpace H X] [IsManifold I n X] [TopologicalSpace Y] [ChartedSpace H Y] [IsManifold I n Y] [TopologicalSpace Z] [ChartedSpace H Z] [IsManifold I n Z] instance : CoeSort (MfldCat I n) (Type u) := β¨MfldCat.carrierβ© attribute [coe] MfldCat.carrier end MfldCatend ModelWithCornersend Lean433MfldCatCompatibility namespace OAI noncomputable section open scoped Manifold ContDiff BigOperators ENNRealopen Bundle namespace EinsteinFour abbrev FourSpace := EuclideanSpace β (Fin 4)abbrev I4 := π(β, FourSpace) def coordinateVector (i : Fin 4) : FourSpace := EuclideanSpace.single i 1 abbrev RoundSphere4 := {x : EuclideanSpace β (Fin 5) // βxβ = 1} abbrev ComplexProjective2 := Projectivization β (EuclideanSpace β (Fin 3)) abbrev RealProjective4 := Projectivization β (EuclideanSpace β (Fin 5)) def roundDistance (p q : RoundSphere4) : β := Real.arccos (inner β p.val q.val) def fubiniStudyDistance (p q : ComplexProjective2) : β := Real.arccos (βinner β p.rep q.repβ / (βp.repβ * βq.repβ)) def realProjectiveDistance (p q : RealProjective4) : β := Real.arccos (βinner β p.rep q.repβ / (βp.repβ * βq.repβ)) section Metric variable (M : Type*) [TopologicalSpace M] [ChartedSpace FourSpace M] [IsManifold I4 β M] abbrev SmoothMetric := ContMDiffRiemannianMetric I4 β FourSpace (TangentSpace I4 : M β Type _) variable {M} def metricInChart (g : SmoothMetric M) (c : M) (z : FourSpace) : Matrix (Fin 4) (Fin 4) β := let e := chartAt FourSpace c let d := mfderiv I4 I4 e.symm z fun i j => g.inner (e.symm z) (d (coordinateVector i)) (d (coordinateVector j)) def partialDeriv (f : FourSpace β β) (i : Fin 4) (z : FourSpace) : β := fderiv β f z (coordinateVector i) def christoffel (g : SmoothMetric M) (c : M) (z : FourSpace) (k i j : Fin 4) : β := (1 / 2 : β) * β l : Fin 4, (metricInChart g c z)β»ΒΉ k l * (partialDeriv (fun w => metricInChart g c w j l) i z + partialDeriv (fun w => metricInChart g c w i l) j z - partialDeriv (fun w => metricInChart g c w i j) l z) def curvatureComponent (g : SmoothMetric M) (c : M) (z : FourSpace) (l i j k : Fin 4) : β := partialDeriv (fun w => christoffel g c w l j k) i z - partialDeriv (fun w => christoffel g c w l i k) j z + β p : Fin 4, (christoffel g c z l i p * christoffel g c z p j k - christoffel g c z l j p * christoffel g c z p i k) def ricciInChart (g : SmoothMetric M) (c : M) (z : FourSpace) (i j : Fin 4) : β := β k : Fin 4, curvatureComponent g c z k k i j def sectionalNumerator (g : SmoothMetric M) (c : M) (z : FourSpace) (u v : FourSpace) : β := β l : Fin 4, β m : Fin 4, β i : Fin 4, β j : Fin 4, β k : Fin 4, metricInChart g c z l m * curvatureComponent g c z l i j k * u i * v j * v k * u m def IsEinstein (g : SmoothMetric M) : Prop := β lam : β, β (c : M) (i j : Fin 4), ricciInChart g c (chartAt FourSpace c c) i j = lam * metricInChart g c (chartAt FourSpace c c) i j def HasPositiveSectionalCurvature (g : SmoothMetric M) : Prop := β (c : M) (u v : FourSpace), LinearIndependent β ![u, v] β 0 < sectionalNumerator g c (chartAt FourSpace c c) u v def scaledEDistance (g : SmoothMetric M) (a : β) (x y : M) : ββ₯0β := letI : RiemannianBundle (TangentSpace I4 : M β Type _) := β¨g.toRiemannianMetricβ© ENNReal.ofReal (Real.sqrt a) * Manifold.riemannianEDist I4 x y def ScaledIsometricTo {N : Type*} (g : SmoothMetric M) (a : β) (modelDistance : N β N β β) : Prop := β f : M β N, β x y : M, ENNReal.ofReal (modelDistance (f x) (f y)) = scaledEDistance g a x y end Metric end EinsteinFour namespace PositiveEinsteinFour.Geometry open EinsteinFour Matrix variable {M : Type*} [TopologicalSpace M] [ChartedSpace FourSpace M] [IsManifold I4 β M] abbrev Mat4 := Matrix (Fin 4) (Fin 4) β def chartMetric (g : SmoothMetric M) (c : M) : Mat4 := metricInChart g c (chartAt FourSpace c c) structure OrthonormalFrame (g : SmoothMetric M) (c : M) where matrix : Mat4 orthonormal : matrixα΅ * chartMetric g c * matrix = 1 def OrthonormalFrame.map {g : SmoothMetric M} {c : M} (e : OrthonormalFrame g c) : FourSpace ββ[β] FourSpace := (WithLp.linearEquiv 2 β (Fin 4 β β)).symm.toLinearMap ββ (Matrix.mulVecLin e.matrix) ββ (WithLp.linearEquiv 2 β (Fin 4 β β)).toLinearMap def OrthonormalFrame.vector {g : SmoothMetric M} {c : M} (e : OrthonormalFrame g c) (i : Fin 4) : FourSpace := WithLp.toLp 2 (fun a => e.matrix a i) structure FrameBundle (g : SmoothMetric M) where base : M frame : OrthonormalFrame g base def frameRealization {g : SmoothMetric M} (e : FrameBundle g) : M Γ (Fin 4 β TangentBundle I4 M) := (e.base, fun i => β¨e.base, e.frame.vector iβ©) instance (g : SmoothMetric M) : TopologicalSpace (FrameBundle g) := TopologicalSpace.induced frameRealization inferInstance /-- An orientation is a clopen choice of determinant sign in every frame fiber. -/structure FrameOrientation (g : SmoothMetric M) where positive : Set (FrameBundle g) clopen : IsClopen positive nonempty_fiber : β c, β e : OrthonormalFrame g c, (β¨c, eβ© : FrameBundle g) β positive compatible : β c (e f : OrthonormalFrame g c), (β¨c, eβ© : FrameBundle g) β positive β ((β¨c, fβ© : FrameBundle g) β positive β 0 < e.matrix.det * f.matrix.det) end PositiveEinsteinFour.Geometry namespace PositiveEinsteinFour open EinsteinFour universe u /-- A connected closed oriented smooth Riemannian four-manifold. -/structure ClosedOrientedMetricFour where manifold : ModelWithCorners.MfldCat.{u} I4 β [regular : T3Space manifold] [secondCountable : SecondCountableTopology manifold] [compact : CompactSpace manifold] [connected : ConnectedSpace manifold] metric : SmoothMetric manifold orientation : Geometry.FrameOrientation metric attribute [instance] ClosedOrientedMetricFour.regular ClosedOrientedMetricFour.secondCountable ClosedOrientedMetricFour.compact ClosedOrientedMetricFour.connected section ClassificationDefinitions variable {M : Type*} [TopologicalSpace M] [ChartedSpace FourSpace M] [IsManifold I4 β M] /-- Positive rescaling identifies the metric with one of the three standard models. -/def Classified (g : SmoothMetric M) : Prop := β a : β, 0 < a β§ (ScaledIsometricTo g a roundDistance β¨ ScaledIsometricTo g a fubiniStudyDistance β¨ ScaledIsometricTo g a realProjectiveDistance) def ClassificationOn (M : Type*) [TopologicalSpace M] [ChartedSpace FourSpace M] [IsManifold I4 β M] [T2Space M] [SecondCountableTopology M] [CompactSpace M] [ConnectedSpace M] : Prop := β g : SmoothMetric M, IsEinstein g β HasPositiveSectionalCurvature g β Classified g end ClassificationDefinitions end PositiveEinsteinFourendend OAI