pith. machine review for the scientific record. sign in
def

mkJson

definition
show as:
view math explainer →
module
IndisputableMonolith.URCAdapters.LNALReports
domain
URCAdapters
line
75 · github
papers citing
none yet

open explainer

Generate a durable explainer page for this declaration.

open lean source

IndisputableMonolith.URCAdapters.LNALReports on GitHub at line 75.

browse module

All declarations in this module, on Recognition.

explainer page

Tracked in the explainer inventory; generation is lazy so crawlers do not trigger LLM jobs.

open explainer

depends on

used by

formal source

  72
  73/-! Optional JSON artifact emission for per-source runs -/
  74
  75private def mkJson (ok : Bool) (errors : List String) : String :=
  76  Lean.Json.pretty <| Lean.Json.obj [
  77    ("ok", Lean.Json.ofBool ok),
  78    ("errors", Lean.Json.arr (errors.map Lean.Json.str))
  79  ]
  80
  81def lnal_invariants_report_json (src : String) : String :=
  82  let cert := LNALInvariantsCert.fromSource src
  83  mkJson cert.ok cert.errors
  84
  85def compiler_checks_report_json (src : String) : String :=
  86  let cert := CompilerChecksCert.fromSource src
  87  mkJson cert.ok cert.errors
  88
  89def opcode_soundness_report_json (src : String) : String :=
  90  let _ := OpcodeSoundnessCert.fromSource src
  91  -- Parser coverage is structural; treat as ok with empty errors
  92  mkJson true []
  93
  94def schedule_neutrality_report_json (src : String) : String :=
  95  let cert := ScheduleNeutralityCert.fromSource src
  96  mkJson cert.ok cert.errors
  97
  98def cost_ceiling_report_json (src : String) : String :=
  99  let cert := CostCeilingCert.fromSource src
 100  mkJson cert.ok cert.errors
 101
 102def su3_mask_report_json (src : String) : String :=
 103  let _ := SU3MaskCert.fromSource src
 104  -- SU3 mask is step-preservation; treat as ok with empty errors
 105  mkJson true []