All proofs
Project-declaredLean 4.32.0 · mathlib@81a5d257c8e4

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 = IC

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma toInitialConditions_fromInitialConditions (S : HarmonicOscillator)    (IC : InitialConditions) :    (fromInitialConditions S IC).toInitialConditions S = IC := by  have hω : S.ω  0 := S.ω_ne_zero  set z : ℂ := (IC.x0, IC.v0 / 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.x0 := rfl  have him : z.im = IC.v0 / 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.v0 := 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

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