lnal_invariants_report
plain-language theorem explainer
The definition supplies a string report generator for LNAL invariants given a source string. It would be referenced in LNAL compiler verification pipelines when auditing certificate compliance. The body constructs the certificate via fromSource and selects a pass or fail string according to the ok flag.
Claim. A function $f: String → String$ such that for source $s$, $f(s)$ equals the success string if the certificate from $s$ has ok true, and otherwise the failure string formed by intercalating the certificate's error list.
background
The LNALReports module supplies adapter functions that produce human-readable reports for LNAL components. The upstream LNALInvariantsCert is a structure bundling VM preservation and token δ-unit bound, with fields ok : Bool and errors : List String. The report depends on the fromSource constructor supplied by that structure in the generators module.
proof idea
This is a direct definition. It applies the fromSource constructor to the input string, then branches on the resulting ok field to emit either the fixed success message or the failure message with errors joined by semicolons.
why it matters
It supplies the reporting interface for LNAL invariants inside the URC adapter layer, supporting the LNAL compiler and certificate pipeline. The success message references balance per 8 and vector equality per 1024, consistent with the eight-tick octave structure. No downstream uses are recorded, indicating a utility role for certificate inspection.
Switch to Lean above to see the machine-checked source, dependencies, and usage graph.