structure
definition
MetricTensor
show as:
view math explainer →
open explainer
Read the cached plain-language explainer.
open lean source
IndisputableMonolith.Foundation.Hamiltonian on GitHub at line 18.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
-
energy_conservation -
HamiltonianDensity -
hamiltonian_equivalence -
H_EnergyConservation -
H_HamiltonianEquivalence -
inverse_metric -
IsTimeTranslationInvariant -
metric_det -
StressEnergyTensor -
TotalHamiltonian -
metric_compatibility -
MetricTensor -
minkowski -
hilbert_variation_holds -
jacobi_variation -
jacobi_variation_structural -
einstein_symmetric -
einstein_tensor -
sourced_efe_coord -
vacuum_efe_coord -
contracted_bianchi -
efe_with_source -
perfect_fluid -
vacuum_is_special_case -
H_HomogenizationLimit -
homogenization_limit -
metric_det -
MetricTensor -
metric_FRW -
einstein_hilbert_action -
integrate_add -
integrate_scalar -
integrate_smul -
kinetic_action -
kinetic_nonneg -
potential_action -
sqrt_minus_g -
gradient_squared -
affine_reparametrization -
geodesic_unique
formal source
15abbrev RRF := (Fin 4 → ℝ) → ℝ
16
17/-- Local non-sealed metric interface. -/
18structure MetricTensor where
19 g : (Fin 4 → ℝ) → (Fin 4 → ℝ) → (Fin 2 → Fin 4) → ℝ := fun _ _ _ => 0
20
21/-- Local non-sealed bilinear form interface. -/
22abbrev BilinearForm := (Fin 4 → ℝ) → (Fin 4 → ℝ) → (Fin 2 → Fin 4) → ℝ
23
24/-- Placeholder partial derivative interface for the recognition field scaffold. -/
25noncomputable def partialDeriv_v2 (_psi : RRF) (_μ : Fin 4) (_x : Fin 4 → ℝ) : ℝ := 0
26
27/-- Placeholder metric determinant accessor. -/
28noncomputable def metric_det (_g : MetricTensor) (_x : Fin 4 → ℝ) : ℝ := 1
29
30/-- Placeholder inverse metric component accessor. -/
31noncomputable def inverse_metric (_g : MetricTensor) (_x : Fin 4 → ℝ)
32 (_hi : Fin 4 → Fin 4) (_lo : Fin 4 → Fin 4) : ℝ := 0
33
34/-- **DEFINITION: Recognition Hamiltonian Density**
35 The Hamiltonian density H_rec is the Legendre transform of the Lagrangian density L_rec.
36 For the scalar potential Ψ, H_rec = Π (∂₀Ψ) - L_rec. -/
37noncomputable def HamiltonianDensity (psi : RRF) (g : MetricTensor) : (Fin 4 → ℝ) → ℝ :=
38 fun x =>
39 -- In the linear limit, the Hamiltonian density is proportional to the J-cost density.
40 -- For small variations, this recovers H ≈ ½(Π² + (∇Ψ)² + m²Ψ²).
41 (1/2 : ℝ) * (
42 (partialDeriv_v2 psi 0 x)^2 +
43 Finset.sum (Finset.univ : Finset (Fin 3)) (fun i => (partialDeriv_v2 psi (i.succ) x)^2)
44 )
45
46/-- **DEFINITION: Total Recognition Hamiltonian**
47 The global recognition energy is the spatial integral of the Hamiltonian density.
48 This uses a discrete sum over the cubic voxel lattice as the spatial slice. -/