Documentation

LeanPool.Kuramoto.GradientFlow

Kuramoto gradient flow #

The Kuramoto potential kuramotoV and force field kuramotoF, together with the gradient identity expressing the force as the negative phase-derivative of the potential.

noncomputable def kuramotoV (K : ) (N : ) (θ : Fin N) :

The Kuramoto potential V = -(K / (2N)) ∑_{i,j} cos (θ_j - θ_i).

Equations
Instances For
    noncomputable def kuramotoF (K : ) (N : ) (i : Fin N) (θ : Fin N) :

    The Kuramoto force on oscillator i, F_i = (K / N) ∑_j sin (θ_j - θ_i).

    Equations
    Instances For
      theorem kuramoto_gradient_identity (K : ) (N : ) (hN : 0 < N) (hK : 0 < K) (θ : Fin N) (i : Fin N) :
      kuramotoF K N i θ = -deriv (fun (x : ) => kuramotoV K N (Function.update θ i x)) (θ i)