boolToJson
plain-language theorem explainer
Converts a boolean input to the literal JSON strings true or false. Audit reporting functions cite it when populating status and flag fields inside AuditItem records for deterministic invariant summaries. The definition reduces to a single conditional expression with no auxiliary lemmas.
Claim. The map sending each boolean $b$ to the string ``true'' when $b$ holds and ``false'' otherwise.
background
The module supplies audit scaffolding (M1) that emits deterministic JSON summaries of already-proven unitless invariants. This surface is a placeholder intended for later extension to numeric values and scale-declared running quantities. AuditItem is the structure that records each checked item via fields for name, category, status, external-input flag, and optional value string.
proof idea
The definition is a direct conditional expression that selects the literal string true on true input and false otherwise. No lemmas or tactics are applied.
why it matters
It supplies the string literals required by AuditItem records inside the audit_json_report construction. The declaration therefore supports the M1 milestone of emitting deterministic summaries of unitless invariants. Later milestones will incorporate phi-ladder quantities and running values into the same JSON surface.
Switch to Lean above to see the machine-checked source, dependencies, and usage graph.