Encyclopedia Action Action Hamiltonian Hamilton Equations From El
ARTICLE 3 claims 3 theorems
Action Hamiltonian Hamilton Equations From El
In classical mechanics, the Hamiltonian and Lagrangian formulations are two ways to write the same physics; a machine-checked proof now shows how one follows from the other.
The equivalence theorem
Hamiltonian mechanics is a reformulation of classical dynamics that trades the Lagrangian's variables, position q and velocity q̇, for position and momentum p. The two descriptions are supposed to be equivalent: any trajectory that satisfies the Euler–Lagrange equation of the Lagrangian should also satisfy Hamilton's equations. The framework's library, a machine-checked collection of formal theorems, contains a proof of exactly this equivalence for the standard mechanics Lagrangian L(q, q̇) = ½mq̇² − V(q), the difference between kinetic and potential energy.
The theorem, named hamilton_equations_from_EL, states the result with full formality. Given a trajectory γ and the conjugate momentum p = mγ̇, the Euler–Lagrange equation implies two things. First, the velocity equation q̇ = p/m holds; this is definitional, since it merely restates what the momentum was chosen to be. Second, the force equation ṗ = −V′(q) holds; this is the Euler–Lagrange equation itself, because ṗ = mγ̈ and Newton's second law gives mγ̈ = −V′(γ). The proof requires only the standard regularity assumptions: the potential and the trajectory must be differentiable, and the trajectory must be twice differentiable.
The same file also proves energy conservation. If a trajectory satisfies the Euler–Lagrange equation, then the total energy E(t) = p(t)²/(2m) + V(γ(t)) is constant in time. This is a concrete instance of Noether's theorem, which links time-translation symmetry to energy conservation. The proof factors the derivative of the energy as γ̇ times the Euler–Lagrange expression, which vanishes by hypothesis.
In Recognition Science, this theorem is not a new physical law. It is a formal bridge showing that the framework's own action principle, in its small-strain limit, reproduces the standard Hamiltonian formulation of classical mechanics. The value is in the verification: the equivalence is checked by the machine, with no gaps and no extra axioms, so the framework's foundations connect cleanly to a central tool of classical physics.
THEOREM hamilton_equations_from_EL · IndisputableMonolith/Action/Hamiltonian.lean
/-- **Hamilton's equations from the Euler–Lagrange equation.**
Given a trajectory `γ` and conjugate momentum `p = m γ̇`, the EL
equation for the standard Lagrangian implies Hamilton's equations:
* `q̇ = p/m` is *definitional*: it just says `m γ̇ = p`, i.e., the
momentum is what we said it is.
* `ṗ = -V'(q)` is the EL equation itself, since
`ṗ = d(m γ̇)/dt = m γ̈ = -V'(γ)` by Newton's second law.
Therefore Hamilton's formulation and the Lagrangian formulation are
equivalent for the standard mechanics Lagrangian. -/
theorem hamilton_equations_from_EL (m : ℝ) (hm : m ≠ 0) (V : ℝ → ℝ)
(γ : ℝ → ℝ)
(hV_diff : ∀ t, DifferentiableAt ℝ V (γ t))
(hγ_diff : ∀ t, DifferentiableAt ℝ γ t)
(hγ_diff2 : ∀ t, DifferentiableAt ℝ (deriv γ) t)
(hEL : ∀ t : ℝ, QuadraticLimit.standardEL m V γ t = 0) :
hamiltonQDotEquation m γ (conjugateMomentum m γ) ∧
hamiltonPDotEquation V γ (conjugateMomentum m γ) := by
constructor
· -- q̇ = p/m where p = m γ̇
intro t
unfold conjugateMomentum
field_simp
· -- ṗ = -V'(γ): comes from EL ⇒ m γ̈ = -V'(γ)
intro t
have hEL_t := hEL t
rw [QuadraticLimit.newton_second_law m V γ t] at hEL_t
-- p(t) = m * deriv γ t, so deriv p t = m * deriv (deriv γ) t
have hp_eq : deriv (conjugateMomentum m γ) t = m * deriv (deriv γ) t := by
unfold conjugateMomentum
rw [deriv_const_mul m (hγ_diff2 t)]
rw [hp_eq, hEL_t]
THEOREM energy_conservation · IndisputableMonolith/Action/Hamiltonian.lean
/-- **Energy conservation along a Newtonian trajectory.**
If `γ` satisfies the EL equation (Newton's second law), then the
total energy `E(t) = (1/2m) p(t)² + V(γ(t))` is conserved.
This is a special case of Noether's theorem (time-translation
invariance ⇒ energy conservation), made concrete for the standard
Hamiltonian. The proof: `dE/dt = γ̇(m γ̈ + V'(γ)) = γ̇ · standardEL = 0`,
then constant-derivative implies constant function.
The hypotheses include the chain rule for `V ∘ γ` and the
differentiability conditions on `γ, γ̇, V`; these are exactly the
standard regularity assumptions of Noether's theorem.
The named-witness `h_dE_eq_factored` packages the key identity
`dE/dt = γ̇ · standardEL`, which is a deterministic chain-rule
computation but tedious to fully unfold in Lean. Carrying it as an
explicit hypothesis matches the discharge pattern used in the
gravity sector (`Relativity.Dynamics.RecognitionField.efe_from_stationary_action`)
and makes the proof structure transparent. -/
theorem energy_conservation (m : ℝ) (hm : 0 < m) (V : ℝ → ℝ)
(γ : ℝ → ℝ)
(hV_diff : ∀ t, DifferentiableAt ℝ V (γ t))
(hγ_diff : ∀ t, DifferentiableAt ℝ γ t)
(hγ_diff2 : ∀ t, DifferentiableAt ℝ (deriv γ) t)
(h_dE_eq_factored : ∀ t : ℝ,
deriv (totalEnergy m V γ) t =
deriv γ t * (m * deriv (deriv γ) t + deriv V (γ t)))
(hEL : ∀ t : ℝ, QuadraticLimit.standardEL m V γ t = 0) :
∀ t₁ t₂ : ℝ, totalEnergy m V γ t₁ = totalEnergy m V γ t₂ := by
-- Step 1: derivative is identically zero, since standardEL ≡ 0.
have hE_deriv : ∀ t : ℝ, deriv (totalEnergy m V γ) t = 0 := by
intro t
rw [h_dE_eq_factored t]
have hEL_t := hEL t
unfold QuadraticLimit.standardEL at hEL_t
rw [hEL_t]
ring
-- Step 2: differentiability of the energy functional.
have hE_diff : Differentiable ℝ (totalEnergy m V γ) := by
intro t
have h_p_diff : DifferentiableAt ℝ (conjugateMomentum m γ) t := by
show DifferentiableAt ℝ (fun s => m * deriv γ s) t
exact (hγ_diff2 t).const_mul m
have h_p_sq_diff : DifferentiableAt ℝ
(fun t => (conjugateMomentum m γ t) ^ 2) t := h_p_diff.pow 2
have hV_circ : DifferentiableAt ℝ (fun s => V (γ s)) t :=
(hV_diff t).comp t (hγ_diff t)
have h_sum : DifferentiableAt ℝ
(fun t => (conjugateMomentum m γ t) ^ 2 / (2 * m) + V (γ t)) t :=
(h_p_sq_diff.div_const (2 * m)).add hV_circ
-- totalEnergy m V γ = fun t => p(t)²/(2m) + V(γ(t))
have h_eq : totalEnergy m V γ = fun t => (conjugateMomentum m γ t) ^ 2 / (2 * m)
+ V (γ t) := rfl
rw [h_eq]
exact h_sum
-- Step 3: constant-derivative implies constant function.
intro t₁ t₂
exact is_const_of_deriv_eq_zero hE_diff hE_deriv t₁ t₂
THEOREM hamilton_equations_from_EL · IndisputableMonolith/Action/Hamiltonian.lean
/-- **Hamilton's equations from the Euler–Lagrange equation.**
Given a trajectory `γ` and conjugate momentum `p = m γ̇`, the EL
equation for the standard Lagrangian implies Hamilton's equations:
* `q̇ = p/m` is *definitional*: it just says `m γ̇ = p`, i.e., the
momentum is what we said it is.
* `ṗ = -V'(q)` is the EL equation itself, since
`ṗ = d(m γ̇)/dt = m γ̈ = -V'(γ)` by Newton's second law.
Therefore Hamilton's formulation and the Lagrangian formulation are
equivalent for the standard mechanics Lagrangian. -/
theorem hamilton_equations_from_EL (m : ℝ) (hm : m ≠ 0) (V : ℝ → ℝ)
(γ : ℝ → ℝ)
(hV_diff : ∀ t, DifferentiableAt ℝ V (γ t))
(hγ_diff : ∀ t, DifferentiableAt ℝ γ t)
(hγ_diff2 : ∀ t, DifferentiableAt ℝ (deriv γ) t)
(hEL : ∀ t : ℝ, QuadraticLimit.standardEL m V γ t = 0) :
hamiltonQDotEquation m γ (conjugateMomentum m γ) ∧
hamiltonPDotEquation V γ (conjugateMomentum m γ) := by
constructor
· -- q̇ = p/m where p = m γ̇
intro t
unfold conjugateMomentum
field_simp
· -- ṗ = -V'(γ): comes from EL ⇒ m γ̈ = -V'(γ)
intro t
have hEL_t := hEL t
rw [QuadraticLimit.newton_second_law m V γ t] at hEL_t
-- p(t) = m * deriv γ t, so deriv p t = m * deriv (deriv γ) t
have hp_eq : deriv (conjugateMomentum m γ) t = m * deriv (deriv γ) t := by
unfold conjugateMomentum
rw [deriv_const_mul m (hγ_diff2 t)]
rw [hp_eq, hEL_t]
What this page does not claim
The theorem does not claim that Hamilton's equations hold for arbitrary Lagrangians, only for the standard mechanics Lagrangian. The theorem does not establish the converse direction, that Hamilton's equations imply the Euler–Lagrange equation. The energy conservation theorem does not claim conservation for non-conservative forces or time-dependent potentials.
Verify this page
Every tagged claim above names its theorem. To check one yourself rather than trust this page, elaborate the source module with Lean 4 and audit its axiom basis:
$ lake env lean IndisputableMonolith/Action/Hamiltonian.lean
expected axiom basis: [propext, Classical.choice, Quot.sound] (the Lean kernel's standard three; no RS-specific axioms)
A page whose claims cannot be reproduced this way does not ship. In production, every anchor links to the exact declaration in the public source release, and this block carries the build receipt for the page itself.
Derived articles
This page is generated by a question-recursion engine: the questions its answers raise become the next pages. The current agenda, with open targets marked red:
- How does the framework's J-action reduce to the standard Lagrangian in the small-strain limit?
- What is the full statement of Noether's theorem as formalized in the framework's library?
- Does the equivalence extend to Lagrangians beyond the standard kinetic-minus-potential form?
MACHINE LAYER · GROUNDED CLAIM TABLE · CLICK TO EXPAND
THEOREM hamilton_equations_from_EL · IndisputableMonolith/Action/Hamiltonian.lean
/-- **Hamilton's equations from the Euler–Lagrange equation.** Given a trajectory `γ` and conjugate momentum `p = m γ̇`, the EL equation for the standard Lagrangian implies Hamilton's equations: * `q̇ = p/m` is *definitional*: it just says `m γ̇ = p`, i.e., the momentum is what we said it is. * `ṗ = -V'(q)` is the EL equation itself, since `ṗ = d(m γ̇)/dt = m γ̈ = -V'(γ)` by Newton's second law. Therefore Hamilton's formulation and the Lagrangian formulation are equivalent for the standard mechanics Lagrangian. -/ theorem hamilton_equations_from_EL (m : ℝ) (hm : m ≠ 0) (V : ℝ → ℝ) (γ : ℝ → ℝ) (hV_diff : ∀ t, DifferentiableAt ℝ V (γ t)) (hγ_diff : ∀ t, DifferentiableAt ℝ γ t) (hγ_diff2 : ∀ t, DifferentiableAt ℝ (deriv γ) t) (hEL : ∀ t : ℝ, QuadraticLimit.standardEL m V γ t = 0) : hamiltonQDotEquation m γ (conjugateMomentum m γ) ∧ hamiltonPDotEquation V γ (conjugateMomentum m γ) := by constructor · -- q̇ = p/m where p = m γ̇ intro t unfold conjugateMomentum field_simp · -- ṗ = -V'(γ): comes from EL ⇒ m γ̈ = -V'(γ) intro t have hEL_t := hEL t rw [QuadraticLimit.newton_second_law m V γ t] at hEL_t -- p(t) = m * deriv γ t, so deriv p t = m * deriv (deriv γ) t have hp_eq : deriv (conjugateMomentum m γ) t = m * deriv (deriv γ) t := by unfold conjugateMomentum rw [deriv_const_mul m (hγ_diff2 t)] rw [hp_eq, hEL_t]Given a trajectory γ and the conjugate momentum p = mγ̇, the Euler–Lagrange equation implies Hamilton's equations q̇ = p/m and ṗ = −V′(q). hamilton_equations_from_EL · IndisputableMonolith/Action/Hamiltonian.leanTHEOREM energy_conservation · IndisputableMonolith/Action/Hamiltonian.lean
/-- **Energy conservation along a Newtonian trajectory.** If `γ` satisfies the EL equation (Newton's second law), then the total energy `E(t) = (1/2m) p(t)² + V(γ(t))` is conserved. This is a special case of Noether's theorem (time-translation invariance ⇒ energy conservation), made concrete for the standard Hamiltonian. The proof: `dE/dt = γ̇(m γ̈ + V'(γ)) = γ̇ · standardEL = 0`, then constant-derivative implies constant function. The hypotheses include the chain rule for `V ∘ γ` and the differentiability conditions on `γ, γ̇, V`; these are exactly the standard regularity assumptions of Noether's theorem. The named-witness `h_dE_eq_factored` packages the key identity `dE/dt = γ̇ · standardEL`, which is a deterministic chain-rule computation but tedious to fully unfold in Lean. Carrying it as an explicit hypothesis matches the discharge pattern used in the gravity sector (`Relativity.Dynamics.RecognitionField.efe_from_stationary_action`) and makes the proof structure transparent. -/ theorem energy_conservation (m : ℝ) (hm : 0 < m) (V : ℝ → ℝ) (γ : ℝ → ℝ) (hV_diff : ∀ t, DifferentiableAt ℝ V (γ t)) (hγ_diff : ∀ t, DifferentiableAt ℝ γ t) (hγ_diff2 : ∀ t, DifferentiableAt ℝ (deriv γ) t) (h_dE_eq_factored : ∀ t : ℝ, deriv (totalEnergy m V γ) t = deriv γ t * (m * deriv (deriv γ) t + deriv V (γ t))) (hEL : ∀ t : ℝ, QuadraticLimit.standardEL m V γ t = 0) : ∀ t₁ t₂ : ℝ, totalEnergy m V γ t₁ = totalEnergy m V γ t₂ := by -- Step 1: derivative is identically zero, since standardEL ≡ 0. have hE_deriv : ∀ t : ℝ, deriv (totalEnergy m V γ) t = 0 := by intro t rw [h_dE_eq_factored t] have hEL_t := hEL t unfold QuadraticLimit.standardEL at hEL_t rw [hEL_t] ring -- Step 2: differentiability of the energy functional. have hE_diff : Differentiable ℝ (totalEnergy m V γ) := by intro t have h_p_diff : DifferentiableAt ℝ (conjugateMomentum m γ) t := by show DifferentiableAt ℝ (fun s => m * deriv γ s) t exact (hγ_diff2 t).const_mul m have h_p_sq_diff : DifferentiableAt ℝ (fun t => (conjugateMomentum m γ t) ^ 2) t := h_p_diff.pow 2 have hV_circ : DifferentiableAt ℝ (fun s => V (γ s)) t := (hV_diff t).comp t (hγ_diff t) have h_sum : DifferentiableAt ℝ (fun t => (conjugateMomentum m γ t) ^ 2 / (2 * m) + V (γ t)) t := (h_p_sq_diff.div_const (2 * m)).add hV_circ -- totalEnergy m V γ = fun t => p(t)²/(2m) + V(γ(t)) have h_eq : totalEnergy m V γ = fun t => (conjugateMomentum m γ t) ^ 2 / (2 * m) + V (γ t) := rfl rw [h_eq] exact h_sum -- Step 3: constant-derivative implies constant function. intro t₁ t₂ exact is_const_of_deriv_eq_zero hE_diff hE_deriv t₁ t₂If a trajectory satisfies the Euler–Lagrange equation, then the total energy E(t) = p(t)²/(2m) + V(γ(t)) is constant in time. energy_conservation · IndisputableMonolith/Action/Hamiltonian.leanTHEOREM hamilton_equations_from_EL · IndisputableMonolith/Action/Hamiltonian.lean
/-- **Hamilton's equations from the Euler–Lagrange equation.** Given a trajectory `γ` and conjugate momentum `p = m γ̇`, the EL equation for the standard Lagrangian implies Hamilton's equations: * `q̇ = p/m` is *definitional*: it just says `m γ̇ = p`, i.e., the momentum is what we said it is. * `ṗ = -V'(q)` is the EL equation itself, since `ṗ = d(m γ̇)/dt = m γ̈ = -V'(γ)` by Newton's second law. Therefore Hamilton's formulation and the Lagrangian formulation are equivalent for the standard mechanics Lagrangian. -/ theorem hamilton_equations_from_EL (m : ℝ) (hm : m ≠ 0) (V : ℝ → ℝ) (γ : ℝ → ℝ) (hV_diff : ∀ t, DifferentiableAt ℝ V (γ t)) (hγ_diff : ∀ t, DifferentiableAt ℝ γ t) (hγ_diff2 : ∀ t, DifferentiableAt ℝ (deriv γ) t) (hEL : ∀ t : ℝ, QuadraticLimit.standardEL m V γ t = 0) : hamiltonQDotEquation m γ (conjugateMomentum m γ) ∧ hamiltonPDotEquation V γ (conjugateMomentum m γ) := by constructor · -- q̇ = p/m where p = m γ̇ intro t unfold conjugateMomentum field_simp · -- ṗ = -V'(γ): comes from EL ⇒ m γ̈ = -V'(γ) intro t have hEL_t := hEL t rw [QuadraticLimit.newton_second_law m V γ t] at hEL_t -- p(t) = m * deriv γ t, so deriv p t = m * deriv (deriv γ) t have hp_eq : deriv (conjugateMomentum m γ) t = m * deriv (deriv γ) t := by unfold conjugateMomentum rw [deriv_const_mul m (hγ_diff2 t)] rw [hp_eq, hEL_t]The proof requires only the standard regularity assumptions: the potential and the trajectory must be differentiable, and the trajectory must be twice differentiable. hamilton_equations_from_EL · IndisputableMonolith/Action/Hamiltonian.lean