import proofs.RootFieldLift011a import proofs.HiggsMass /-! # 011f / S-03 — Gauge–matter trunk and selector ledger This module places the already available finite Standard-Model trunk beside the root certificate without collapsing their ownership. Exact material carried here: * the \(8+3+1=12\) gauge carrier count; * the \(66\)-dimensional alternating-pair ledger, its declared \(11\)-rank non-abelian image, and \(55\)-dimensional kernel ledger; * the \(28\)-edge \(K_8\) exterior-square carrier for the colour basis; * the exact polynomial Higgs mass identities already kernel-checked in \`HiggsMass.lean\`; * the \(3+2+9+4+1=19\) minimal parameter register, scoped to the massless-neutrino Standard Model (no neutrino mass, lepton-mixing, or Majorana-phase coordinates are in the 19). The gauge representation, bracket rank, Higgs representation, hypercharge normalization, and parameter-coordinate convention are source-owned package data. This module records their office explicitly. A future selector may consume root certificates together with these conditions; it must return an admissible candidate or leave the relevant choice visible. -/ set_option autoImplicit false namespace GaugeMatterTrunk011f open RootFieldLift011a /-! ## Gauge and colour ledger -/ def colourDimension : Nat := 8 def weakDimension : Nat := 3 def hyperchargeDimension : Nat := 1 def gaugeDimension : Nat := colourDimension + weakDimension + hyperchargeDimension def alternatingPairDimension : Nat := gaugeDimension * (gaugeDimension - 1) / 2 def declaredBracketImageDimension : Nat := colourDimension + weakDimension def declaredBracketKernelDimension : Nat := alternatingPairDimension - declaredBracketImageDimension def colourExteriorDimension : Nat := colourDimension * (colourDimension - 1) / 2 theorem gauge_dimension_exact : gaugeDimension = 12 := by decide theorem alternating_pair_dimension_exact : alternatingPairDimension = 66 := by decide theorem declared_bracket_image_dimension_exact : declaredBracketImageDimension = 11 := by decide theorem declared_bracket_kernel_dimension_exact : declaredBracketKernelDimension = 55 := by decide theorem colour_exterior_dimension_exact : colourExteriorDimension = 28 := by decide /-- The source-owned non-abelian bracket and representation selection. -/ structure GaugeRepresentationPackage where source : SourceRef gaugeAlgebraPresentation : String colourBasisPresentation : String bracketImageRank : Nat /-- Source-owned declaration that the u(1)_Y generator is central. This is a recorded presentation choice, not a derived or checked property. -/ hyperchargeCentralDeclaration : String bracketImageRank_exact : bracketImageRank = declaredBracketImageDimension def standardModelGaugeSource : SourceRef := ⟨"Standard Model gauge/matter trunk", "retained r27/v9 source record"⟩ def standardGaugePackage : GaugeRepresentationPackage where source := standardModelGaugeSource gaugeAlgebraPresentation := "su(3)_c + su(2)_L + u(1)_Y" colourBasisPresentation := "ordered su(3) colour basis; K8 edge carrier" bracketImageRank := 11 hyperchargeCentralDeclaration := "u(1)_Y declared central by the source package" bracketImageRank_exact := declared_bracket_image_dimension_exact /-! ## Exact Higgs mass carrier -/ def HiggsTreeStatement : Prop := HiggsMass.M4 = HiggsMass.pscale HiggsMass.v2 (HiggsMass.pmmul HiggsMass.Rt HiggsMass.R 4) ∧ HiggsMass.pmatvec HiggsMass.M4 HiggsMass.kv = [HiggsMass.z, HiggsMass.z, HiggsMass.z, HiggsMass.z] ∧ HiggsMass.pmatvec HiggsMass.M4 HiggsMass.uv = HiggsMass.uv.map (fun x => HiggsMass.pmul HiggsMass.lam x) ∧ HiggsMass.det3 (HiggsMass.entry HiggsMass.R 0 0) (HiggsMass.entry HiggsMass.R 0 1) (HiggsMass.entry HiggsMass.R 0 2) (HiggsMass.entry HiggsMass.R 1 0) (HiggsMass.entry HiggsMass.R 1 1) (HiggsMass.entry HiggsMass.R 1 2) (HiggsMass.entry HiggsMass.R 2 0) (HiggsMass.entry HiggsMass.R 2 1) (HiggsMass.entry HiggsMass.R 2 2) = [⟨3, 0, 0, 1⟩] theorem higgs_tree_exact : HiggsTreeStatement := by exact ⟨HiggsMass.M4_gram, HiggsMass.photon_kernel, HiggsMass.massive_u, HiggsMass.R_minor_is_g_cubed⟩ /-! ## Parameter selector boundary -/ inductive ParameterOffice where | gaugeCouplings | higgsPotential | chargedFermionMasses | ckmCoordinates | strongCP deriving DecidableEq, Repr def parameterMultiplicity : ParameterOffice → Nat | .gaugeCouplings => 3 | .higgsPotential => 2 | .chargedFermionMasses => 9 | .ckmCoordinates => 4 | .strongCP => 1 def parameterOffices : List ParameterOffice := [.gaugeCouplings, .higgsPotential, .chargedFermionMasses, .ckmCoordinates, .strongCP] def parameterTotal : Nat := parameterOffices.foldl (fun total office => total + parameterMultiplicity office) 0 theorem parameter_total_exact : parameterTotal = 19 := by decide /-- The scope of the 19-coordinate register. -/ inductive RegisterScope where | masslessNeutrinoStandardModel deriving DecidableEq, Repr def parameterRegisterScope : RegisterScope := .masslessNeutrinoStandardModel /-- Coordinate families that the massless-neutrino register does not contain. -/ inductive ExcludedParameterOffice where | neutrinoMasses | leptonMixingAndPhases deriving DecidableEq, Repr def excludedParameterOffices : List ExcludedParameterOffice := [.neutrinoMasses, .leptonMixingAndPhases] theorem parameter_register_scope_exact : parameterRegisterScope = .masslessNeutrinoStandardModel ∧ parameterTotal = 19 ∧ excludedParameterOffices.length = 2 := by exact ⟨rfl, parameter_total_exact, rfl⟩ theorem parameter_offices_complete : ∀ o : ParameterOffice, o ∈ parameterOffices := by intro o; cases o <;> decide /-- Every (office, coordinate-index) pair of the register, in office order. -/ def allCoordinates : List (ParameterOffice × Nat) := parameterOffices.flatMap fun o => (List.range (parameterMultiplicity o)).map fun i => (o, i) theorem all_coordinates_count : allCoordinates.length = 19 := by decide theorem all_coordinates_nodup : allCoordinates.Nodup := by decide /-- A selector binds one coordinate to a declared scheme and scale. -/ structure ParameterSelector where scheme : String scale : String selectedOffice : ParameterOffice coordinate : Fin (parameterMultiplicity selectedOffice) derivationReference : String comparisonReference : String def ParameterSelector.key (s : ParameterSelector) : ParameterOffice × Nat := (s.selectedOffice, s.coordinate.val) /-- Complete means the selected coordinates are a permutation of the register: each (office, index) pair is selected exactly once; list length alone is not enough. -/ def SelectorComplete (selectors : List ParameterSelector) : Prop := (selectors.map ParameterSelector.key).Perm allCoordinates theorem selector_complete_length {s : List ParameterSelector} (h : SelectorComplete s) : s.length = parameterTotal := by have := h.length_eq simpa [all_coordinates_count, parameter_total_exact] using this theorem selector_complete_nodup {s : List ParameterSelector} (h : SelectorComplete s) : (s.map ParameterSelector.key).Nodup := h.nodup_iff.mpr all_coordinates_nodup theorem selector_complete_selects_every_coordinate {s : List ParameterSelector} (h : SelectorComplete s) (o : ParameterOffice) (i : Fin (parameterMultiplicity o)) : ∃ sel ∈ s, sel.selectedOffice = o ∧ sel.coordinate.val = i.val := by have hmem : (o, i.val) ∈ allCoordinates := by cases o <;> (obtain ⟨i, hi⟩ := i; revert i hi; decide) have hmem' := h.symm.mem_iff.mp hmem obtain ⟨sel, hs, hk⟩ := List.mem_map.mp hmem' exact ⟨sel, hs, congrArg Prod.fst hk, congrArg Prod.snd hk⟩ /-- Equal length is strictly weaker than completeness: repeating one selector nineteen times has the right length and is never complete. -/ theorem repeated_selector_never_complete (sel : ParameterSelector) : ¬ SelectorComplete (List.replicate 19 sel) := by intro h have hnd := selector_complete_nodup h rw [List.map_replicate] at hnd simp at hnd /-- S-03's own obligation type: one selection witness per register office. -/ inductive S03Obligation where | coordinateSelection (office : ParameterOffice) deriving DecidableEq, Repr def s03Obligations : List S03Obligation := parameterOffices.map S03Obligation.coordinateSelection def S03Obligation.office : S03Obligation → ParameterOffice | .coordinateSelection o => o theorem s03_obligations_cover_parameter_offices : s03Obligations.map S03Obligation.office = parameterOffices := by simp [s03Obligations, Function.comp_def, S03Obligation.office] theorem s03_obligations_complete : ∀ ob : S03Obligation, ob ∈ s03Obligations := by intro ob; cases ob with | coordinateSelection o => cases o <;> decide /-! ## Root-aware composition record -/ def StandardModelTrunkStatement : Prop := gaugeDimension = 12 ∧ alternatingPairDimension = 66 ∧ standardGaugePackage.bracketImageRank = 11 ∧ declaredBracketKernelDimension = 55 ∧ colourExteriorDimension = 28 ∧ HiggsTreeStatement ∧ parameterTotal = 19 ∧ parameterRegisterScope = .masslessNeutrinoStandardModel theorem standard_model_trunk_exact : StandardModelTrunkStatement := by exact ⟨gauge_dimension_exact, alternating_pair_dimension_exact, standardGaugePackage.bracketImageRank_exact, declared_bracket_kernel_dimension_exact, colour_exterior_dimension_exact, higgs_tree_exact, parameter_total_exact, rfl⟩ def RootAndStandardModelTrunk : Prop := CarriesRoot finiteSeed ∧ StandardModelTrunkStatement def rootAndTrunkCertificate : Certified [.consistencyFixed, .rootDerived] RootAndStandardModelTrunk := Certified.compose (Certified.consistencyFixed standardModelGaugeSource (fun root => ⟨root, standard_model_trunk_exact⟩)) (Certified.root RootCertificate.finiteCarrier) theorem root_and_trunk_provenance : Certified.origins rootAndTrunkCertificate = [.consistencyFixed, .rootDerived] := rfl theorem trunk_is_not_root_only : ¬ RootOnly (Certified.origins rootAndTrunkCertificate) := by simp [RootOnly, root_and_trunk_provenance] /-- The first S-03 record: the finite trunk and every still-required selector. -/ structure S03GaugeMatterRecord where rootAndTrunk : RootAndStandardModelTrunk selectorBoundary : List S03Obligation parameterLedgerTotal : parameterTotal = 19 selectorBoundary_exact : selectorBoundary = s03Obligations def s03GaugeMatterRecord : S03GaugeMatterRecord where rootAndTrunk := ⟨finiteSeed_carries_root, standard_model_trunk_exact⟩ selectorBoundary := s03Obligations parameterLedgerTotal := parameter_total_exact selectorBoundary_exact := rfl theorem s03_record_carries_all_parameter_offices : s03GaugeMatterRecord.selectorBoundary.map S03Obligation.office = parameterOffices := by simpa [s03GaugeMatterRecord] using s03_obligations_cover_parameter_offices #print axioms gauge_dimension_exact #print axioms declared_bracket_kernel_dimension_exact #print axioms higgs_tree_exact #print axioms parameter_total_exact #print axioms parameter_register_scope_exact #print axioms all_coordinates_nodup #print axioms selector_complete_length #print axioms selector_complete_selects_every_coordinate #print axioms repeated_selector_never_complete #print axioms s03_obligations_complete #print axioms standard_model_trunk_exact #print axioms root_and_trunk_provenance #print axioms trunk_is_not_root_only #print axioms s03_record_carries_all_parameter_offices end GaugeMatterTrunk011f