To Initial Conditions from Initial Conditions
ClassicalMechanics.HarmonicOscillator.AmplitudePhase.toInitialConditions_fromInitialConditions
Plain-language statement
fromInitialConditions is a right inverse of toInitialConditions: converting initial conditions to amplitude–phase form and back recovers them exactly.
Exact Lean statement
lemma toInitialConditions_fromInitialConditions (S : HarmonicOscillator)
(IC : InitialConditions) :
(fromInitialConditions S IC).toInitialConditions S = ICFormal artifact
Lean source
lemma toInitialConditions_fromInitialConditions (S : HarmonicOscillator) (IC : InitialConditions) : (fromInitialConditions S IC).toInitialConditions S = IC := by have hω : S.ω ≠ 0 := S.ω_ne_zero set z : ℂ := (⟨IC.x₀ 0, IC.v₀ 0 / S.ω⟩ : ℂ) -- polar identities have hcos : ‖z‖ * cos (Complex.arg z) = z.re := Complex.norm_mul_cos_arg z have hsin : ‖z‖ * sin (Complex.arg z) = z.im := Complex.norm_mul_sin_arg z -- By construction the parts of `z` are exactly the original data. have hre : z.re = IC.x₀ 0 := rfl have him : z.im = IC.v₀ 0 / S.ω := rfl apply InitialConditions.ext · -- Position: `‖z‖ cos (arg z) = Re z = IC.x₀ 0`, and `single 0 (IC.x₀ 0) = IC.x₀`. show EuclideanSpace.single 0 (‖z‖ * cos (Complex.arg z)) = IC.x₀ rw [hcos, hre] ext i; fin_cases i; simp · -- Velocity: `‖z‖ ω sin (arg z) = ω · Im z = ω · (v₀ / ω) = IC.v₀ 0`, then reassemble. show EuclideanSpace.single 0 (‖z‖ * S.ω * sin (Complex.arg z)) = IC.v₀ have hv : ‖z‖ * S.ω * sin (Complex.arg z) = IC.v₀ 0 := by rw [mul_right_comm, hsin, him]; field_simp rw [hv] ext i; fin_cases i; simp- Project
- Physlib
- License
- Apache-2.0
- Commit
- dd43e9e65791
- Source
- Physlib/ClassicalMechanics/HarmonicOscillator/Solution.lean:845-866
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
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.
Source project: Physlib
Person-level attribution pending.
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.
Source project: Physlib
Person-level attribution pending.
Deriv Within mean Energy Beta eq neg variance
CanonicalEnsemble.derivWithin_meanEnergy_Beta_eq_neg_variance
Plain-language statement
(∂U/∂β) = -Var(E) for finite systems.
Source project: Physlib
Person-level attribution pending.