TorchLean API

NN.Verification.PINN.CLI

PINN CLI #

PINN residual-bounding CLI.

This file implements a small interactive tool for bounding PDE residuals of a trained physics-informed neural network (PINN) over a box input region. Concretely, it:

This CLI is the interactive PINN residual-bound tool:

The stable artifact checker is: lake exe verify -- pinn-cert [NN/Examples/Verification/PINN/pinn_cert.json]

Run this CLI via the unified verification dispatcher: lake exe verify -- pinn-cli -- [flags] "<PDE>" x eps or for 2D: lake exe verify -- pinn-cli -- [flags] "<PDE>" x y eps

Examples:

References:

noncomputable def NN.Verification.PINN.CLI.realToFloat (x : ) (digits : := 6) :
Instances For

    Compute primitives using a rounded backend α = NF with single-precision nearest-even.

    Instances For
      Instances For

        Parse a non-scientific decimal string into a generic numeric α using Numbers and Context. Supports optional leading '-' and a single '.'.

        Instances For

          Compute primitives u, duX, duY, d2uX, d2uY at the unique output node (id=5) for 1D/2D models. Optionally, replace the u-interval with a tighter CROWN/DeepPoly bound.

          Instances For
            Instances For
              Instances For

                Entry point for the PINN residual-bounding CLI.

                This is an interactive tool registered as: lake exe verify -- pinn-cli -- ...

                For certificate checking, use: lake exe verify -- pinn-cert [NN/Examples/Verification/PINN/pinn_cert.json]

                Run: lake exe verify -- pinn-cli -- [--method=ibp|crown-fwd|crown-bwd|partial] [--split-depth=N] [--backend=float|neuralfloat] [--weights=PATH.json] "<PDE>" x eps or (2D): lake exe verify -- pinn-cli -- [flags] "<PDE>" x y eps

                Instances For
                  def NN.Verification.PINN.CLI.main.split1D (x eps : Float) (d : ) (evalAt : FloatFloatIO (Float × Float)) :
                  Instances For
                    def NN.Verification.PINN.CLI.main.split2D (x y eps : Float) (d : ) (evalAt : FloatFloatFloatIO (Float × Float)) :
                    Instances For