Loading Lion artifact…
Inspect Lion Program Source (JSON)
[
"begin",
[
"relation",
"subsystem",
[
"id",
"name",
"owner",
"mass_kg",
"power_w",
"verified"
],
{
"certified": true,
"description": "Flight hardware subsystems with mass, power, and verification state",
"key": [
"id"
]
}
],
[
"relation",
"iface",
[
"from",
"to",
"bus",
"tone"
],
{
"certified": true,
"references": {
"from": [
"subsystem",
"id"
],
"to": [
"subsystem",
"id"
]
}
}
],
[
"relation",
"ctrl",
[
"k",
"v"
],
{
"key": [
"k"
]
}
],
[
"fact",
[
"subsystem",
"battery",
"Battery Pack",
"power-team",
34,
0,
true
],
[
"subsystem",
"avionics",
"Flight Avionics",
"gnc-team",
18,
45,
true
],
[
"subsystem",
"propulsion",
"Thruster Module",
"prop-team",
42,
65,
true
],
[
"subsystem",
"payload",
"Optical Payload",
"science-team",
20,
50,
true
],
[
"iface",
"battery",
"avionics",
"28V DC",
"ok"
],
[
"iface",
"battery",
"propulsion",
"28V High-A",
"ok"
],
[
"iface",
"avionics",
"propulsion",
"CAN-FD cmd",
"accent"
],
[
"iface",
"avionics",
"payload",
"SpaceWire",
"ok"
],
[
"ctrl",
"payload_mass",
20
],
[
"ctrl",
"selected",
"payload"
]
],
[
"define",
"view",
[
"lambda",
[],
[
"begin",
[
"define",
"pmass",
[
"array/head",
[
"find",
"?v",
[
"ctrl",
"payload_mass",
"?v"
]
]
]
],
[
"define",
"sel",
[
"array/head",
[
"find",
"?v",
[
"ctrl",
"selected",
"?v"
]
]
]
],
[
"define",
"rows",
[
"assuming",
[
"fact",
[
"subsystem",
"payload",
"Optical Payload",
"science-team",
"pmass",
50,
true
]
],
[
"find",
{
"id": "?id",
"mass_kg": "?m",
"owner": "?o",
"power_w": "?p",
"status": [
"cond",
[
"?v",
"Verified"
],
[
"else",
"Pending"
]
],
"subsystem": "?name"
},
[
"subsystem",
"?id",
"?name",
"?o",
"?m",
"?p",
"?v"
]
]
]
],
[
"define",
"total_mass",
[
"array/reduce",
"rows",
0,
[
"lambda",
[
"acc",
"r"
],
[
"number/add",
"acc",
[
"object/get",
"r",
"mass_kg"
]
]
]
]
],
[
"define",
"total_power",
[
"array/reduce",
"rows",
0,
[
"lambda",
[
"acc",
"r"
],
[
"number/add",
"acc",
[
"object/get",
"r",
"power_w"
]
]
]
]
],
[
"define",
"margin_kg",
[
"number/subtract",
120,
"total_mass"
]
],
[
"define",
"over_budget",
[
"number/lessThan",
"margin_kg",
0
]
],
[
"define",
"budget_proof",
[
"proof/smt",
[
"array/make",
"and",
[
"quote",
[
"=",
"base",
94
]
],
[
"array/make",
"=",
"payload",
"pmass"
],
[
"quote",
[
"=",
"total",
[
"+",
"base",
"payload"
]
]
],
[
"quote",
[
">",
"total",
120
]
]
]
]
],
[
"define",
"nodes",
[
"assuming",
[
"fact",
[
"subsystem",
"payload",
"Optical Payload",
"science-team",
"pmass",
50,
true
]
],
[
"find",
{
"group": "?o",
"id": "?id",
"label": "?name",
"subtitle": [
"string/join",
[
"array/make",
[
"number/toString",
"?m"
],
"kg"
],
" "
],
"tone": [
"cond",
[
[
"boolean/and",
"over_budget",
[
"=",
"?id",
"payload"
]
],
"error"
],
[
[
"=",
"?id",
"avionics"
],
"accent"
],
[
"else",
"ok"
]
]
},
[
"subsystem",
"?id",
"?name",
"?o",
"?m",
"?_p",
"?_v"
]
]
]
],
[
"define",
"edges",
[
"find",
{
"from": "?a",
"label": "?b",
"to": "?c",
"tone": "?t"
},
[
"iface",
"?a",
"?c",
"?b",
"?t"
]
]
],
[
"ui/stack",
{
"gap": "lg"
},
[
"ui/hero",
{
"badges": [
"quote",
[
{
"label": "Hardware Program",
"tone": "accent"
},
{
"label": "Live Mass & Power Budgets",
"tone": "ok"
},
{
"label": "SMT Margin Certificate",
"tone": "ok"
}
]
],
"eyebrow": "Omnigraph Blueprint 03 · Hardware Systems",
"subtitle": "Continuously evaluate subsystem interfaces, mass/power margins, and formal SMT budget compliance from live engineering facts.",
"title": "Orbital Bus Hardware Program & Budget Verifier"
}
],
[
"ui/grid",
{
"cols": 3,
"gap": "md"
},
[
"ui/metric",
{
"caption": "Launch mass ceiling: 120 kg",
"label": "Total Bus Mass (kg)",
"tone": [
"cond",
[
"over_budget",
"error"
],
[
"else",
"ok"
]
],
"value": "total_mass"
}
],
[
"ui/metric",
{
"caption": [
"cond",
[
"over_budget",
"Exceeds launch fairing limit"
],
[
"else",
"Positive structural margin"
]
],
"label": "Mass Margin (kg)",
"tone": [
"cond",
[
"over_budget",
"error"
],
[
"else",
"ok"
]
],
"value": "margin_kg"
}
],
[
"ui/metric",
{
"caption": "Peak draw vs 220 W solar bus",
"label": "Total Power (W)",
"tone": "accent",
"value": "total_power"
}
]
],
[
"ui/section",
{
"badge": [
"cond",
[
"over_budget",
"OVER BUDGET"
],
[
"else",
"WITHIN MARGIN"
]
],
"step": "01",
"subtitle": "Drag the Optical Payload mass slider past 26 kg to watch the budget progress bar, graph tone, and live SMT certificate flip from Certified to Violated.",
"title": "Stress-Test Payload Mass Margin",
"tone": [
"cond",
[
"over_budget",
"error"
],
[
"else",
"ok"
]
]
},
[
"ui/card",
[
"ui/slider",
{
"label": "Optical Payload Mass (kg) — safe ceiling is <= 26 kg",
"max": 40,
"min": 10,
"onChange": [
"quote",
[
"fact",
[
"ctrl",
"payload_mass",
"value"
]
]
],
"step": 1,
"value": "pmass"
}
],
[
"ui/progress",
{
"label": "Launch Mass Utilization (120 kg max)",
"max": 120,
"tone": [
"cond",
[
"over_budget",
"error"
],
[
"else",
"ok"
]
],
"value": "total_mass"
}
]
],
[
"cond",
[
"over_budget",
[
"ui/alert",
{
"title": "Mass Budget Exceeded (SMT Counterexample Found)",
"tone": "error"
},
"Total spacecraft mass exceeds the 120 kg launch ceiling. Reduce Optical Payload mass to <= 26 kg to restore flight certification."
]
]
]
],
[
"ui/section",
{
"step": "02",
"subtitle": "Click any subsystem in the interface graph or rollup table below to highlight its power and command buses.",
"title": "Subsystem Interface Graph & Mass Rollup"
},
[
"ui/graph",
{
"edges": "edges",
"height": 230,
"layout": "layered",
"nodes": "nodes",
"onSelect": [
"quote",
[
"fact",
[
"ctrl",
"selected",
"value"
]
]
],
"selected": "sel",
"title": "Electrical & Data Bus Topology"
}
],
[
"ui/table",
{
"columns": [
"quote",
[
{
"key": "subsystem",
"label": "Subsystem"
},
{
"key": "owner",
"label": "Team"
},
{
"key": "mass_kg",
"label": "Mass (kg)"
},
{
"key": "power_w",
"label": "Power (W)"
},
{
"key": "status",
"label": "Verification"
}
]
],
"onSelect": [
"quote",
[
"fact",
[
"ctrl",
"selected",
"value"
]
]
],
"rowKey": "id",
"rows": "rows",
"selected": "sel",
"title": "Flight Subsystems (click row to highlight bus connections)"
}
]
],
[
"ui/section",
{
"step": "03",
"subtitle": "Live DPLL(T) linear arithmetic check proving no assignment with current mass exceeds 120 kg.",
"title": "Formal SMT Budget Certificate"
},
[
"ui/proof",
{
"summary": [
"cond",
[
"over_budget",
"SMT solver found a concrete violation: base (94 kg) + payload exceeds 120 kg."
],
[
"else",
"Kernel-verified UNSAT proof that base (94 kg) + payload cannot exceed 120 kg."
]
],
"title": "Mass Ceiling Safety Proof (proof/smt)",
"valid": [
"cond",
[
"over_budget",
false
],
[
"else",
[
"proof/valid?",
[
"object/get",
"budget_proof",
"proof"
]
]
]
]
},
"budget_proof"
]
]
]
]
],
{
"persist": true
}
],
[
"view"
]
]