Seclib.Compose.Bridge
BridgeRecord — ⚪ definition
structure · source
Contract test bridge: parse JSONL from the Go engine export, run chainFires / chainDistance on the same inputs, compare verdicts. Go source: bridge_gen.py produces the JSONL; this module consumes it.
structure BridgeRecord where
— ⚪ definition
instance · source
instance : FromJson BridgeRecord where
mkChainDef — ⚪ definition
def · source
Build a ChainDef from a bridge record. Returns none if structural invariants don’t hold (< 2 controls or threshold out of range).
def mkChainDef (r : BridgeRecord) : Option ChainDef
CheckResult — ⚪ definition
structure · source
structure CheckResult where
checkRecord — ⚪ definition
def · source
Check one bridge record against the Lean composition model.
def checkRecord (r : BridgeRecord) : Option String
checkAll — ⚪ definition
def · source
Run the bridge checker on parsed records.
def checkAll (records : List BridgeRecord) : CheckResult
parseJsonl — ⚪ definition
def · source
Parse a JSONL string into bridge records.
def parseJsonl (content : String) : List BridgeRecord
bridgeCheck — ⚪ definition
def · source
Main bridge checker entry point.
def bridgeCheck (path : System.FilePath) : IO UInt32