structure
definition
ILGParams
show as:
view math explainer →
open explainer
Read the cached plain-language explainer.
open lean source
IndisputableMonolith.Relativity.ILG.Action on GitHub at line 44.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
formal source
41 PsiKinetic g ψ α + PsiPotential g ψ C_lag
42
43/-- Global parameter bundle for ILG (α, C_lag). -/
44structure ILGParams where
45 alpha : ℝ
46 cLag : ℝ
47 deriving Inhabited
48
49/-- Index conventions (symbolic): use natural numbers as abstract tensor indices. -/
50abbrev Index : Type := Nat
51
52/-- Kronecker delta δᵤᵥ (symbolic). -/
53@[simp] noncomputable def kron (μ ν : Index) : ℝ := if μ = ν then 1 else 0
54
55/-- Raise/lower index placeholders (identity maps in the scaffold). -/
56@[simp] def raiseIndex (μ : Index) : Index := μ
57@[simp] def lowerIndex (μ : Index) : Index := μ
58
59/-- Variation notation scaffolding: delta of a scalar expression (symbolic identity). -/
60@[simp] noncomputable def deltaVar (x : ℝ) : ℝ := x
61
62/-- Functional derivative: δS/δx for action functional S and state variable x. -/
63noncomputable def dS_dx (S_func : ℝ → ℝ) (x₀ : ℝ) : ℝ :=
64 deriv S_func x₀
65
66
67/-- Symbolic ILG Lagrangian density (toy): L = (∂ψ)^2/2 − m^2 ψ^2/2 + cLag·alpha.
68 Here we treat all terms as scalars to keep the scaffold compiling. -/
69noncomputable def L_density (_g : Metric) (_ψ : RefreshField) (p : ILGParams) : ℝ :=
70 (p.alpha ^ 2) / 2 - (p.cLag ^ 2) / 2 + p.cLag * p.alpha
71
72/-- Covariant scalar Lagrangian pieces (symbolic). -/
73noncomputable def L_kin (_g : Metric) (_ψ : RefreshField) (p : ILGParams) : ℝ := (p.alpha ^ 2) / 2
74noncomputable def L_mass (_g : Metric) (_ψ : RefreshField) (p : ILGParams) : ℝ := (p.cLag ^ 2) / 2