pith. machine review for the scientific record. sign in
def definition def or abbrev high

examplesToJSON

show as:
view Lean formalization →

examplesToJSON yields a JSON array string that lists example certificates for CPM constants. The generateJSONReport function draws on this output when assembling the full audit report. Construction uses a direct let-binding of a singleton list followed by string concatenation and intercalation.

claimThe definition yields the string $[[ { ``example'': ``ToyModel'', ``Cproj'': 2.0, ``status'': ``verified'' } ]]$ representing a JSON array of one example certificate.

background

The CPM Constants Audit module supplies machine-checkable verification of constants derived from Recognition Science invariants together with consistency checks and export infrastructure for audit reports. The module documentation states that running lake exe cpm_constants_audit produces a JSON report of all verified constants and their provenance. Upstream results record RS-native units with base tick and voxel set to 1, c = 1, coherence quantum phi^{-5}, action quantum hbar = phi^{-5}, and the phi-ladder phi^n; the back-propagation complete predicate asserts that every variable in a BPState is assigned.

proof idea

The definition binds a list containing one hardcoded JSON object for the ToyModel entry with Cproj = 2.0 and verified status. It then forms the array by prefixing an opening bracket, applying String.intercalate with comma-newline separator, and appending a closing bracket.

why it matters in Recognition Science

This definition supplies the sample data consumed by generateJSONReport to produce the complete audit report. It therefore supports the export infrastructure listed in the module documentation and connects to the broader verification of CPM constants against Recognition Science derivations such as the eight-tick octave and spatial dimension D = 3.

scope and limits

formal statement (Lean)

 226def examplesToJSON : String :=

proof body

Definition body.

 227  let items := ["  { \"example\": \"ToyModel\", \"Cproj\": 2.0, \"status\": \"verified\" }"]
 228  "[\n" ++ String.intercalate ",\n" items ++ "\n]"
 229
 230/-- Generate a complete JSON audit report. -/

used by (1)

From the project-wide theorem graph. These declarations reference this one in their body.

depends on (3)

Lean names referenced from this declaration's body.