All proofs
Project-declaredLean 4.32.0 · mathlib@81a5d257c8e4

Trajectories unique

ClassicalMechanics.HarmonicOscillator.InitialConditions.trajectories_unique

Plain-language statement

The trajectories to the equation of motion for a given set of initial conditions are unique. Given any smooth x satisfying the equation of motion with the same initial position and velocity, the difference y = x - IC.trajectory S also solves the equation of motion with zero initial conditions; energy conservation then forces its energy, and hence y,...

Exact Lean statement

lemma trajectories_unique (IC : InitialConditions) (x : Time → EuclideanSpace ℝ (Fin 1))
    (hx : ContDiff ℝ ∞ x) :
    S.EquationOfMotion x ∧ x 0 = IC.x₀ ∧ ∂ₜ x 0 = IC.v₀ →
    x = IC.trajectory S

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma trajectories_unique (IC : InitialConditions) (x : Time  EuclideanSpace  (Fin 1))    (hx : ContDiff  ∞ x) :    S.EquationOfMotion x  x 0 = IC.x ∂ₜ x 0 = IC.v    x = IC.trajectory S := by  rintro hEOM, hx0, hv0  have hTraj : ContDiff  ∞ (IC.trajectory S) := by fun_prop  -- Time-derivative of a difference of differentiable functions, used below on `x - traj`.  have dsub :  f g : Time  EuclideanSpace  (Fin 1),      Differentiable  f  Differentiable  g       ∂ₜ (fun t => f t - g t) = fun t => ∂ₜ f t - ∂ₜ g t := by    intro f g hf hg    funext t    simp only [Time.deriv_eq, fderiv_fun_sub (hf t) (hg t), sub_apply]  -- The difference `y := x - traj` is smooth, again solves the equation of motion (the force is  -- linear), and has vanishing initial data; energy conservation then forces `y = 0`.  set y : Time  EuclideanSpace  (Fin 1) := fun t => x t - IC.trajectory S t with hydef  have hyContDiff : ContDiff  ∞ y := hx.sub hTraj  have hy_deriv : ∂ₜ y = fun t => ∂ₜ x t - ∂ₜ (IC.trajectory S) t :=    dsub x _ (hx.differentiable (by simp)) (hTraj.differentiable (by simp))  have hy_deriv2 : ∂ₜ (∂ₜ y) = fun t => ∂ₜ (∂ₜ x) t - ∂ₜ (∂ₜ (IC.trajectory S)) t := by    rw [hy_deriv]    exact dsub _ _ (deriv_differentiable_of_contDiff _ hx)      (deriv_differentiable_of_contDiff _ hTraj)  have hNewt_x := (S.equationOfMotion_iff_newtons_2nd_law x hx).1 hEOM  have hNewt_traj := (S.equationOfMotion_iff_newtons_2nd_law (IC.trajectory S) hTraj).1    (trajectory_equationOfMotion S IC)  have hEOM_y : S.EquationOfMotion y :=    (S.equationOfMotion_iff_newtons_2nd_law y hyContDiff).2 fun t => by      rw [hy_deriv2]      simp [smul_sub, hNewt_x, hNewt_traj, hydef, force_eq_linear]  have hE :  t, S.energy y t = 0 := fun t =>    (S.energy_conservation_of_equationOfMotion' y hyContDiff hEOM_y t).trans <| by      have hy0 : y 0 = 0 := by simp [hydef, hx0]      have hyv0 : ∂ₜ y 0 = 0 := by        rw [congrFun hy_deriv 0, hv0, trajectory_velocity_at_zero S IC]; simp      simp [HarmonicOscillator.energy, HarmonicOscillator.kineticEnergy,        HarmonicOscillator.potentialEnergy, hy0, hyv0, one_div, smul_eq_mul]  -- Both energies are nonnegative, so a vanishing total energy forces `y t = 0`.  funext t  have hk : 0  S.kineticEnergy y t := by    simp only [HarmonicOscillator.kineticEnergy]    exact mul_nonneg (mul_nonneg (by norm_num) S.m_pos.le) real_inner_self_nonneg  have hp : 0  S.potentialEnergy (y t) := by    simp only [HarmonicOscillator.potentialEnergy, smul_eq_mul]    exact mul_nonneg (by norm_num) (mul_nonneg S.k_pos.le real_inner_self_nonneg)  have hpe : S.potentialEnergy (y t) = 0 := ((add_eq_zero_iff_of_nonneg hk hp).mp (hE t)).2  simp only [HarmonicOscillator.potentialEnergy, smul_eq_mul] at hpe  rcases mul_eq_zero.mp hpe with h | h  · norm_num at h  · have hyt : x t - IC.trajectory S t = 0 :=      inner_self_eq_zero.mp ((mul_eq_zero.mp h).resolve_left S.k_ne_zero)    exact sub_eq_zero.mp hyt
Project
Physlib
License
Apache-2.0
Commit
dd43e9e65791
Source
Physlib/ClassicalMechanics/HarmonicOscillator/Solution.lean:517-568

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.32.0

Adiabatic relation log

adiabatic_relation_log

Plain-language statement

Adiabatic relation in logarithmic form: If S(Ua,Va,N) = S(Ub,Vb,N) with N fixed, then c * log (Ua/Ub) + log (Va/Vb) = 0.

physicsquantum field theoryrelativity

Source project: Physlib

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.0

Adiabatic relation Ua Ub Va Vb

adiabatic_relation_UaUbVaVb

Plain-language statement

Adiabatic relation in product form: If S(Ua,Va,N) = S(Ub,Vb,N) with N fixed, then (Ua/Ub)^c * (Va/Vb) = 1.

physicsquantum field theoryrelativity

Source project: Physlib

Person-level attribution pending.

View proof record