def
definition
constant
show as:
view math explainer →
open explainer
Generate a durable explainer page for this declaration.
open lean source
IndisputableMonolith.Relativity.Fields.Scalar on GitHub at line 18.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
-
applied -
const_one_is_geodesic -
costRateELHolds -
costRateEL_implies_const_one -
geodesic_iff_hessianEnergy_EL -
energy_conservation -
totalEnergy -
spaceShift -
actionJ_nonneg -
coe_mk -
newton_second_law -
defectDist_le_J_of_ratio_bounds -
defectDist_quasi_triangle_local -
quasiTriangleConstant_eq -
Cycle -
AllConstantsDerived -
H_RSZeroParameterStatus -
ml_derivation_complete -
alphaInv_gauge_invariant -
boltzmannFactor -
alkali_halogen_ionic -
latticeEnergyProxy -
madelungCsCl -
madelungNaCl -
madelungZnS -
transition_cohesive_gt_alkali -
neutralAt -
hasDerivAt_extendByZero_apply -
of_convectionNormBound -
bridge -
decoded_simulation_one_step -
circuit_lower_bound_topological -
laplacian_form_const_zero -
const_true_zero_fraction -
falsePointFraction_le_one -
alphaLock_lt_one -
G_pos -
hbar_lt_one -
lambda_rec_pos -
phi_eleventh_eq
formal source
15noncomputable def eval (φ : ScalarField) (x : Fin 4 → ℝ) : ℝ := φ.ψ x
16
17/-- Constant scalar field. -/
18def constant (c : ℝ) : ScalarField := { ψ := fun _ => c }
19
20theorem constant_eval (c : ℝ) (x : Fin 4 → ℝ) :
21 eval (constant c) x = c := rfl
22
23/-- Zero scalar field. -/
24def zero : ScalarField := constant 0
25
26theorem zero_eval (x : Fin 4 → ℝ) : eval zero x = 0 := rfl
27
28/-- Scalar field addition. -/
29def add (φ₁ φ₂ : ScalarField) : ScalarField :=
30 { ψ := fun x => φ₁.ψ x + φ₂.ψ x }
31
32/-- Scalar multiplication. -/
33def smul (c : ℝ) (φ : ScalarField) : ScalarField :=
34 { ψ := fun x => c * φ.ψ x }
35
36theorem add_comm (φ₁ φ₂ : ScalarField) :
37 ∀ x, eval (add φ₁ φ₂) x = eval (add φ₂ φ₁) x := by
38 intro x
39 simp [eval, add]
40 ring
41
42theorem smul_zero (φ : ScalarField) :
43 ∀ x, eval (smul 0 φ) x = 0 := by
44 intro x
45 simp [eval, smul]
46
47/-- Directional derivative of scalar field in direction μ. -/
48noncomputable def directional_deriv (φ : ScalarField) (μ : Fin 4) (x : Fin 4 → ℝ) : ℝ :=