units_kgate_report
plain-language theorem explainer
The units K-gate report function generates a compliance string for a given source by checking a certificate derived from it. Engineers working on LNAL verification pipelines would reference this in audit workflows. The body is a straightforward conditional that inspects the ok flag of the certificate and assembles either a success message or an error list.
Claim. The function unitsKgateReport(s) for a source string s yields ``OK: Units quotient and K-gate audits'' if the certificate obtained from s satisfies the validity condition, and otherwise the string ``FAIL: '' followed by the semicolon-separated list of errors from the certificate.
background
In the Recognition Science setting the constant K is the dimensionless bridge ratio defined non-circularly as K = varphi^{1/2}. The LNAL reports module supplies adapter functions that produce audit strings for units and K-gate properties. This definition appears alongside sibling report generators for invariants, compiler checks, and cost ceilings. Upstream the K definition from Constants supplies the algebraic bridge used in curvature functionals, while the self-reference structure records meta-realization properties required for coherence axioms and the circle phase lift supplies an explicit log-derivative bound.
proof idea
The definition binds the result of UnitsKGateCert.fromSource applied to the input string. It then branches on the ok field of that certificate to select either the fixed success string or a failure string assembled via intercalate on the errors list.
why it matters
This definition completes the set of report generators in the URCAdapters.LNALReports module, enabling source-level audits that reference the K constant. It supports the broader verification infrastructure tied to universal forcing self-reference and circle phase lift results. No direct parent theorems are listed, but it contributes to the consent and certificate machinery.
Switch to Lean above to see the machine-checked source, dependencies, and usage graph.