TorchLean API

NN.MLTheory.CROWN.Lyapunov.Oracle

Lyapunov oracle #

We isolate the single oracle assumption used by TorchLean's Lyapunov/CROWN workflow: crown_oracle.

Everything else in the Lyapunov verification workflow should reduce to ordinary theorems that depend on this axiom, but do not introduce additional axioms.

Trust-boundary policy:

References:

Certificate for Lyapunov verification over a boxed region.

  • Region on which the bounds are claimed.

  • V_lo : α

    Lower bound for V.

  • V_hi : α

    Upper bound for V.

  • Vdot_lo : α

    Lower bound for .

  • Vdot_hi : α

    Upper bound for .

Instances For

    A neural Lyapunov function specification.

    In the oracle-backed workflow, Vdot is an externally supplied decay witness; this file does not derive it from dynamics on its own.

    Instances For
      opaque NN.MLTheory.CROWN.Lyapunov.CrownOracleWitness {α : Type} [Context α] {n : } (lyap : NeuralLyapunov α n) (cert : LyapunovCert α n) :

      Opaque witness produced by an external checker that is trusted by project policy for this workflow. It attests that the numeric bounds packaged in cert are sound for the given lyap.

      This witness is intentionally not constructible inside Lean. It represents an external artifact/checker run (e.g. α/β-CROWN) that we treat as a trust boundary.

      axiom NN.MLTheory.CROWN.Lyapunov.crown_oracle {α : Type} [Context α] {n : } (lyap : NeuralLyapunov α n) (cert : LyapunovCert α n) (_w : CrownOracleWitness lyap cert) :
      (∀ (x : Spec.Tensor α (Spec.Shape.dim n Spec.Shape.scalar)), cert.region.contains xcert.V_lo lyap.V x lyap.V x cert.V_hi) ∀ (x : Spec.Tensor α (Spec.Shape.dim n Spec.Shape.scalar)), cert.region.contains xcert.Vdot_lo lyap.Vdot x lyap.Vdot x cert.Vdot_hi

      Oracle axiom: if the trusted external witness is supplied for a certificate, then the certificate bounds hold.

      This is the only trusted axiom for the Lyapunov oracle approach.