Documentation

CslibFrontier.Languages.Electrical.NetlistCertificate

Certified stability and responses of a circuit from its netlist text #

The end-to-end checker of the circuit pipeline: Cslib.Electrical.Text.checkText s cert reads the netlist text s (Cslib.Electrical.Text.parse) and checks the certificate cert against the circuit it describes. The certificate (Cslib.Electrical.Text.NetlistCert) is untrusted data from a numerical tool: a structured index-one decoupling of the modified nodal equations and the input data of its realization (Cslib.LinearAlgebra.SparseDecouplingCert, Cslib.LinearAlgebra.SparseRealizationCert), an operating point, and a Lyapunov matrix with LDLᵀ witnesses (Cslib.LinearAlgebra.LyapunovCert). Every check is an exact rational computation that the kernel evaluates.

Cslib.Electrical.Text.exists_parse_of_checkText is the end-to-end theorem. If checkText s cert holds, then s parses to a netlist P, and the guarantee Cslib.Electrical.Text.NetlistCert.Guarantee holds for the circuit P.netlist with Kirchhoff semantics (Cslib.Electrical.Netlist.IsTrajectoryOn), with the operating point z₀ = cert.z₀:

  1. z₀ is a constant trajectory with the sources at their constant values (the DC operating point), and every differential state starts a trajectory: the guarantee is not vacuous;
  2. every trajectory with zero input converges to z₀ exponentially, in all node potentials and branch currents;
  3. for the probes of the text (.probe lines) and its input ports (ac sources), every trajectory driven by an input continuous on [0, ∞) from the operating-point state has the output y t - y₀ = D u t + ∫₀ᵗ h (t - s) u s ds, where h t = C exp (t A) B and D are the response kernel and the direct feedthrough of the checked realization Cslib.Electrical.Netlist.sparseRealization.

The trust boundary is the text and the semantics of parse (documented in CslibFrontier.Languages.Electrical.NetlistText): the exporter that wrote the text, the physical components and parasitics are outside it. Failure of the check is inconclusive; it is not an instability proof.

Main definitions #

Main results #

An untrusted certificate of stability and of the realization of a circuit.

Whether cert is accepted for the circuit c: the netlist is well formed, the decoupling, the realization data, the operating point and the Lyapunov certificate are accepted.

The end-to-end checker: whether the text s parses and cert is accepted for the circuit it describes.

The guarantee of an accepted certificate for a netlist P, with the operating point z₀ = cert.z₀, the differential coordinates given by the first cert.dec.k rows of cert.dec.Uᵢ, and the checked realization P.netlist.sparseRealization cert.dec cert.real P.probes from the input ports to the probes:

  1. z₀ is a constant trajectory with zero input (the DC operating point);
  2. every differential state starts a trajectory on [0, ∞);
  3. every trajectory with zero input converges to z₀ exponentially, in the Euclidean norm of all node potentials and branch currents;
  4. every trajectory driven by an input continuous on [0, ∞) whose differential state starts at that of z₀ has the probed outputs y t - y₀ = D u t + ∫₀ᵗ h (t - s) u s ds for t ≥ 0, with the response kernel h and the direct feedthrough D of the realization.

The guarantee holds when the certificate is accepted for the netlist.

Certified stability and input/output behaviour of the circuit described by a text. If checkText s cert holds, then s parses to a netlist P, and the circuit P.netlist has the guarantee cert.Guarantee P: its operating point cert.z₀ is exponentially stable, and its zero-state response from the input ports to the probes of the text is that of the checked realization.