eval
The eval definition projects the underlying function from a scalar field structure to return its real value at a given spacetime point. Modelers of scalar fields in relativistic settings or circuit evaluations cite this accessor to obtain field values without additional computation. It is realized as a direct one-line projection from the structure's ψ component.
claimFor a scalar field $φ$ whose component function is $ψ : (ℝ^4) → ℝ$, the evaluation at a point $x ∈ ℝ^4$ is given by $eval(φ, x) = ψ(x)$.
background
The Relativity.Fields.Scalar module defines a scalar field as a structure that assigns a real value to each point in four-dimensional spacetime via the function ψ : (Fin 4 → ℝ) → ℝ. This matches the module description that a scalar field assigns a real value to each spacetime point. Upstream, the same abstraction appears in Relativity.Geometry.Tensor as the abbreviation (Fin 4 → ℝ) → ℝ and in NavierStokes.DiscreteNSOperator as a finite-site map Fin siteCount → ℝ.
proof idea
The definition is a one-line wrapper that projects the ψ field from the ScalarField structure and applies it directly to the input point x.
why it matters in Recognition Science
This accessor supports scalar field usage across the framework and feeds into downstream structures such as BooleanCircuitWithEval and CircuitDecides in Complexity.CircuitLedger as well as status summaries in Constants.Derivation and Constants.RSNativeUnits. It supplies the basic evaluation operation required for field-based models in the relativity sector, consistent with the Recognition Science approach of deriving physical quantities from functional equations.
scope and limits
- Does not compute derivatives or directional derivatives of the field.
- Does not enforce wave equations or other dynamical constraints.
- Does not apply to vector or tensor fields.
- Does not handle discrete lattice versions beyond the continuous Fin 4 domain.
formal statement (Lean)
15noncomputable def eval (φ : ScalarField) (x : Fin 4 → ℝ) : ℝ := φ.ψ x
proof body
Definition body.
16
17/-- Constant scalar field. -/
used by (40)
-
BooleanCircuitWithEval -
CircuitDecides -
CircuitWithEvalDecides -
derivation_status -
dimensions_status -
status -
en004_certificate -
en006_certificate -
en002_certificate -
ea004_certificate -
ea005_certificate -
ea008_certificate -
ea003_certificate -
ea001_certificate -
ea011_certificate -
ea006_certificate -
counted_once_expr_biaffine -
eval -
expr_induces_counted_once_combiner -
HasBiAffineForm -
NoHiddenStateComposition -
no_hidden_state_implies_counted_once -
observer_forcing_status -
voiceForcingStatus -
galactic_status -
ic001_certificate -
localCacheStatus -
ic005_certificate -
charts_status -
comparative_status