import Mathlib.Geometry.Manifold.Instances.Real import proofs.SutureSignature011b /-! # 011c / S-01c — Euclidean smooth Suture witness This module attaches the exact finite Suture signature to a concrete local smooth carrier: M = R^4, E = M x R^8, Pi(x) = Pi_0. `Pi_0` is the explicit root coframe from `RootCarrier.lean`. Its pointwise split left inverse makes the rank-four property computationally visible at every address, and Mathlib's `ContMDiff` proof certifies that this constant coframe field is C-infinity on the standard Euclidean smooth structures. This is a local carrier witness. It is distinct from the source's SD.5 smooth regular branch and its separate coordinate witness Pi_star. The The finite cyclic/mirror covariance attachment is supplied by the companion module SutureCovariance011c. The smooth regular-image theorem, field density, calibration, and boundary completion retain their named open offices here. Lean target: 4.33.0 with Mathlib v4.33.0 (commit `db584cd6d46c92f209a44c0f1c829460d327499d`). -/ set_option autoImplicit false namespace SmoothSuture011c open scoped Manifold open RootFieldLift011a SutureSignature011b abbrev SpaceTime : Type := Fin 4 → ℝ abbrev Tangent : Type := Fin 4 → ℝ abbrev Internal : Type := Fin 8 → ℝ abbrev CoframeCoordinates : Type := Fin 8 → Fin 4 → ℝ abbrev Metric : Type := Fin 4 → Fin 4 → ℝ abbrev Flux : Type := Fin 4 → Fin 4 → ℝ abbrev Density : Type := SpaceTime → ℝ /-! ## 1. The local smooth carrier -/ def euclideanManifold : Prop := ContMDiff (𝓘(ℝ, SpaceTime)) (𝓘(ℝ, SpaceTime)) ⊤ (fun x : SpaceTime => x) theorem euclideanManifold_witness : euclideanManifold := by exact contMDiff_id /-! The internal carrier is displayed as `Fin 8 → R`; the trivial bundle is the product `SpaceTime × Internal`. This declaration is a coordinate trivialization, so it does not assert any global bundle classification. -/ def trivialRankEightBundle : Prop := ∀ _ : SpaceTime, Internal = (Fin 8 → ℝ) theorem trivialRankEightBundle_witness : trivialRankEightBundle := by intro _ rfl /-! ## 2. The constant root coframe and its split -/ def rootCoframe (v : Tangent) : Internal := fun a => if a = 0 then v 0 else if a = 1 then v 1 else if a = 2 then v 1 else if a = 3 then v 2 else if a = 4 then v 3 else 0 def rootRetract (w : Internal) : Tangent := fun μ => if μ = 0 then w 0 else if μ = 1 then w 1 else if μ = 2 then w 3 else w 4 theorem rootCoframe_has_left_inverse : Function.LeftInverse rootRetract rootCoframe := by intro v funext μ fin_cases μ <;> simp [rootRetract, rootCoframe] def rootCoframeCoordinates : CoframeCoordinates := fun a μ => if (a = 0 ∧ μ = 0) then 1 else if (a = 1 ∧ μ = 1) then 1 else if (a = 2 ∧ μ = 1) then 1 else if (a = 3 ∧ μ = 2) then 1 else if (a = 4 ∧ μ = 3) then 1 else 0 /-! The rows are, in order, `(e_0,e_1,e_1,e_2,e_3,0,0,0)`, exactly the eight-by-four integer coordinate matrix `RootCarrier.Pi0`. The finite equality itself remains the 011b compatibility witness; the theorem below proves the real carrier uses those same coordinate rows. -/ theorem rootCoframe_row_0 (v : Tangent) : rootCoframe v 0 = v 0 := by simp [rootCoframe] theorem rootCoframe_row_1 (v : Tangent) : rootCoframe v 1 = v 1 := by simp [rootCoframe] theorem rootCoframe_row_2 (v : Tangent) : rootCoframe v 2 = v 1 := by simp [rootCoframe] theorem rootCoframe_row_3 (v : Tangent) : rootCoframe v 3 = v 2 := by simp [rootCoframe] theorem rootCoframe_row_4 (v : Tangent) : rootCoframe v 4 = v 3 := by simp [rootCoframe] theorem rootCoframe_row_5 (v : Tangent) : rootCoframe v 5 = 0 := by simp [rootCoframe] theorem rootCoframe_row_6 (v : Tangent) : rootCoframe v 6 = 0 := by simp [rootCoframe] theorem rootCoframe_row_7 (v : Tangent) : rootCoframe v 7 = 0 := by simp [rootCoframe] def rootCoframeField : SpaceTime → CoframeCoordinates := fun _ => rootCoframeCoordinates def smoothSplitCoframe : Prop := ContMDiff (𝓘(ℝ, SpaceTime)) (𝓘(ℝ, CoframeCoordinates)) ⊤ rootCoframeField ∧ Function.LeftInverse rootRetract rootCoframe theorem smoothSplitCoframe_witness : smoothSplitCoframe := by exact ⟨contMDiff_const, rootCoframe_has_left_inverse⟩ /-! ## 3. The local metric/flux coordinates -/ def localMetric : Metric := fun μ ν => if (μ = 0 ∧ ν = 0) then -2 else if (μ = 0 ∧ ν = 1) then 1 else if (μ = 1 ∧ ν = 0) then 1 else if (μ = 1 ∧ ν = 1) then 3 else if (μ = 2 ∧ ν = 2) then 1 else if (μ = 3 ∧ ν = 3) then 1 else 0 def localFlux : Flux := fun μ ν => if (μ = 0 ∧ ν = 1) then -1 else if (μ = 1 ∧ ν = 0) then 1 else if (μ = 1 ∧ ν = 2) then -1 else if (μ = 2 ∧ ν = 1) then 1 else 0 def localMetricCoordinateRelation : Prop := localMetric 0 0 = -2 ∧ localMetric 0 1 = 1 ∧ localMetric 1 0 = 1 ∧ localMetric 1 1 = 3 ∧ localMetric 2 2 = 1 ∧ localMetric 3 3 = 1 theorem localMetric_coordinates : localMetricCoordinateRelation := by norm_num [localMetricCoordinateRelation, localMetric, Fin.ext_iff] def localFluxCoordinateRelation : Prop := localFlux 0 1 = -1 ∧ localFlux 1 0 = 1 ∧ localFlux 1 2 = -1 ∧ localFlux 2 1 = 1 theorem localFlux_coordinates : localFluxCoordinateRelation := by norm_num [localFluxCoordinateRelation, localFlux, Fin.ext_iff] /-! The finite contraction, alternating flux identity, and Lorentz congruence are already exact theorems in 011b. This proposition keeps that finite evidence adjacent to the real coordinate lift without replacing it by a source import. -/ def finiteInducedSignature : Prop := (finiteRootSutureSignature.metric = metricPullback finiteRootSutureSignature.etaHat finiteRootSutureSignature.coframe) ∧ (finiteRootSutureSignature.solderFlux = fluxPullback finiteRootSutureSignature.cHat finiteRootSutureSignature.coframe) ∧ (RootCarrier.mmul (RootCarrier.tr RootCarrier.T 4) (RootCarrier.mmul finiteRootSutureSignature.metric RootCarrier.T 4) 4 = lorentzNormalForm) ∧ (RootCarrier.madd finiteRootSutureSignature.solderFlux (RootCarrier.tr finiteRootSutureSignature.solderFlux 4) = RootCarrier.zerosMat 4 4) theorem finiteInducedSignature_witness : finiteInducedSignature := by exact ⟨finiteRootSutureSignature.metricFromCoframe, finiteRootSutureSignature.fluxFromCoframe, finiteRootSutureSignature.lorentzCongruence, finiteRootSutureSignature.fluxAlternating⟩ def localMetricAttachment : Prop := finiteInducedSignature ∧ localMetricCoordinateRelation def localFluxAttachment : Prop := finiteInducedSignature ∧ localFluxCoordinateRelation theorem localMetricAttachment_witness : localMetricAttachment := by exact ⟨finiteInducedSignature_witness, localMetric_coordinates⟩ theorem localFluxAttachment_witness : localFluxAttachment := by exact ⟨finiteInducedSignature_witness, localFlux_coordinates⟩ /-! ## 4. Signature attachment and receipt states -/ def mathlibSource011c : SourceRef := ⟨"Mathlib v4.33.0", "standard Euclidean C-infinity structures; commit db584cd6d46c92f209a44c0f1c829460d327499d"⟩ def localSmoothSource011c : SourceRef := ⟨"SmoothSuture011c.lean", "constant R^4 x R^8 local coframe witness attached to SutureSignature011b"⟩ def euclideanSutureSignature : SutureFieldSignature where finite := finiteRootSutureSignature spacetimeCarrier := SpaceTime tangentCarrier := Tangent internalCarrier := Internal metricCarrier := Metric fluxCarrier := Flux densityCarrier := Density coframe := rootCoframe metric := localMetric solderFlux := localFlux density := fun _ => 0 smoothManifold := euclideanManifold rankEightInternalBundle := trivialRankEightBundle smoothRankFourCoframe := smoothSplitCoframe inducedLorentzianMetric := localMetricAttachment inducedSolderFlux := localFluxAttachment cyclicCovariance := True mirrorFluxReversal := True regularSutureMap := True fieldDensity := True calibrationChi := True boundaryCompletion := True theorem euclideanFiniteCompatibility : FiniteSignatureCompatibility euclideanSutureSignature.finite finiteRootSutureSignature where etaHat := rfl cHat := rfl coframe := rfl def euclideanSutureWitness : SutureSignatureWitness euclideanSutureSignature where finiteBinding := euclideanFiniteCompatibility manifoldState := .discharged (.consistencyFixed mathlibSource011c euclideanManifold_witness) bundleState := .discharged (.consistencyFixed localSmoothSource011c trivialRankEightBundle_witness) coframeState := .discharged (.consistencyFixed mathlibSource011c smoothSplitCoframe_witness) metricState := .discharged (.consistencyFixed localSmoothSource011c localMetricAttachment_witness) fluxState := .discharged (.consistencyFixed localSmoothSource011c localFluxAttachment_witness) cyclicState := .unresolved .covariance mirrorState := .unresolved .covariance regularityState := .unresolved .smoothCompletion densityState := .unresolved .fieldDensity calibrationState := .unresolved .coefficientSelection boundaryState := .unresolved .boundaryTerms /-! The four discharged states are a local smooth carrier and exact finite coordinate attachment. This base witness leaves cyclic/mirror covariance for the companion extension. SD.5's regular branch, field density, calibration, and boundary law remain unpromoted by this construction. -/ #print axioms euclideanManifold_witness #print axioms rootCoframe_has_left_inverse #print axioms smoothSplitCoframe_witness #print axioms localMetric_coordinates #print axioms localFlux_coordinates #print axioms finiteInducedSignature_witness #print axioms localMetricAttachment_witness #print axioms localFluxAttachment_witness end SmoothSuture011c