Alloy Structural Analysis

Formal model-checking layer over Allium specs using Alloy 6 + Electrod + nuXmv. Trigger on: "rigorous structural analysis", "model-check this spec", "verify this Allium spec formally", "check for structural divergence with Alloy", "run the Alloy loop", "does the code actually satisfy this spec", temporal/CTL/LTL property checking on a spec, or when weed/allium surface a divergence that needs a deeper formal check than pattern-matching can give. Translates Allium spec obligations into Alloy models, invokes electrod.nuxmv for real temporal model-checking (not Alloy's default bounded SAT backend), parses receipt.json/stdout for verdicts, and on a genuine counterexample hands off to ast-grep/serena to locate the corresponding code. Do not use for spec-vs-code divergence without a formal-verification need (use `weed`), for parsing/checking Allium syntax alone (use `allium check`/`model`/`plan` directly), or for structural code search with no spec/model angle (use `ast-grep`/`serena` directly).

tkolleh a67f13f 5 files · 30.9 KB Updated

File contents

tkolleh/skills/tree/main/alloy-structural-analysis commit a67f13f6b0

Frequently asked questions

npx skillmds@latest add tkolleh/alloy-structural-analysis