def
definition
gradient
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 72.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
-
const_one_is_geodesic -
PotentialFunction -
potential_implies_exact -
circuitSeparation -
SpectralTuringBridgeHypothesis -
alpha_t_lt_half -
love_eliminates_all_waste -
restoring_force_negative -
applyCourage -
courage_enables_high_gradient_action -
Vec3 -
antiGravField -
baseline_gravitational_coupling -
ExternalPhaseField -
ExternalPhaseField -
modified_falling_condition -
energy_processing_bridge -
energy_to_processing_field -
WeakFieldPair -
alpha_from_self_similarity -
kernel_perturbation -
poisson_coercive -
fibonacci_ratio_recursion -
phi_hierarchy_is_unique_fixed_point -
ic005_certificate -
jcost_deriv -
jcost_deriv_pos_of_gt_one -
jcost_deriv_zero_at_one -
of -
phi_rung_complexity_unbounded -
rs_complexity_classes -
JCostGradient -
gap1_absorptive_not_stable -
A_advances_time -
adjoint_from_cost_monotonic -
possibility_actualization_adjoint_monotonic -
Jcost_nonincreasing -
one_step_factor_le_one -
subK_propagation -
Jtilde_zero_iff
formal source
69 norm_num
70
71/-- Gradient: collection of all directional derivatives ∂_μ ψ. -/
72noncomputable def gradient (φ : ScalarField) (x : Fin 4 → ℝ) : Fin 4 → ℝ :=
73 fun μ => directional_deriv φ μ x
74
75/-- Squared gradient g^{μν} (∂_μ ψ)(∂_ν ψ) with inverse metric. -/
76noncomputable def gradient_squared (φ : ScalarField) (g : MetricTensor) (x : Fin 4 → ℝ) : ℝ :=
77 Finset.sum (Finset.univ : Finset (Fin 4)) (fun μ =>
78 Finset.sum (Finset.univ : Finset (Fin 4)) (fun ν =>
79 (inverse_metric g) x (fun i => if (i : ℕ) = 0 then μ else ν) (fun _ => 0) *
80 (gradient φ x μ) * (gradient φ x ν)))
81
82/-- Gradient squared for Minkowski metric. -/
83theorem gradient_squared_minkowski (φ : ScalarField) (x : Fin 4 → ℝ) :
84 gradient_squared φ minkowski_tensor x =
85 -(gradient φ x 0)^2 + (gradient φ x 1)^2 + (gradient φ x 2)^2 + (gradient φ x 3)^2 := by
86 unfold gradient_squared
87 apply gradient_squared_minkowski_sum
88
89/-- Field squared. -/
90noncomputable def field_squared (φ : ScalarField) (x : Fin 4 → ℝ) : ℝ :=
91 (φ.ψ x) ^ 2
92
93theorem field_squared_nonneg (φ : ScalarField) (x : Fin 4 → ℝ) :
94 field_squared φ x ≥ 0 := by
95 simp [field_squared]
96 exact sq_nonneg _
97
98end Fields
99end Relativity
100end IndisputableMonolith