prove
Skill20k starsChanged 6 days agoMITView on GitHub
Prove what `pnpm check` could not: read before working on a `proof` stage ✗, writing or changing a `spec/<path>.proof.dfy` or `src/<path>.proof.dfy`, or writing a `//@` file of hand-written verified logic under `src/`.
15 other projects use a version of this, 1 of them edited.
How people change it
All 1 edited versions we compared keep every one of its 7 rules.
Of the 1 edited version we compared: 1 keep every rule.
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- BabylonSocial/babylonedited, first seen Nov 30, 2026
- Belweave/hstacktheir own version, first seen Nov 8, 2026
- parcadei/Continuous-Claudetheir own version, first seen Oct 17, 2026
- sdvsignal/done-needs-prooftheir own version, first seen Oct 15, 2026
- pavelsimo/skillstheir own version, first seen Oct 13, 2026
- ilamanov/skillstheir own version, first seen Oct 13, 2026
Who's talking about elizaOS/eliza
- Square of Dai“Build a Solana Trading AI Agent with Eliza OS - No Paid APIs Needed! 🤖”YouTube · Jan 19, 2025 · 5.8k views
- Create & Play Games“Eliza OS AI Agent Framework v0.1.9 - Initial Setup”YouTube · Feb 1, 2025 · 2.7k views
- MultiversX“AI Agents on MultiversX with Eliza Framework - How to setup Eliza (Tutorial)”YouTube · Feb 12, 2025 · 2.5k views
- Top Trending GitHub Repositories“Eliza OS: The Top Trending AI Framework Revolutionizing Customer Support & Social Media Automation!”YouTube · Feb 4, 2025 · 2.4k views
- Jean“J'ai codé un agent IA - TUTO Eliza OS / AI16Z (typescript)”YouTube · Jan 17, 2025 · 1.5k views
The biggest 5 of 91 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 91
Talked about on GitHub, YouTube, Bluesky, Hacker News and the web (91 times).
On GitHub · 50
- Jan 17, 2025Add support for linux arm64 — anush008/tokenizers14 reactions · 1 comment
- Mar 20, 2026feat: simplified onboarding, UI redesign, knowledge image support — milady-ai/milady1 reaction · 4 comments
- Nov 29, 2026chore(deps): bump minimatch and @elizaos/core in /hindsight-integrations/eliza — xrplove/Tree-of-Life-Hindsight0 reactions
- Nov 25, 2026SWF(polish): render registry repository as a short owner/repo link — SYMBaiEX/doolittle0 reactions · 1 comment
- Nov 24, 2026Bump @ai-sdk/provider-utils and @elizaos/core in /packages/eliza-plugin-x402 — nissan/reddi-agent-protocol0 reactions · 1 comment
45 more on GitHub
- Nov 24, 2026Bump ai and @elizaos/core in /packages/eliza-plugin-x402 — nissan/reddi-agent-protocol0 reactions · 1 comment
- Nov 24, 2026Bump langsmith and @elizaos/core in /packages/eliza-plugin-x402 — nissan/reddi-agent-protocol0 reactions · 1 comment
- Nov 24, 2026Bump langchain and @elizaos/core in /packages/eliza-plugin-x402 — nissan/reddi-agent-protocol0 reactions · 1 comment
- Nov 24, 2026Bump uuid, @elizaos/core and @solana/web3.js in /packages/eliza-plugin-x402 — nissan/reddi-agent-protocol0 reactions · 1 comment
- Nov 24, 2026Bump tar and @elizaos/core in /packages/eliza-plugin-x402 — nissan/reddi-agent-protocol0 reactions · 1 comment
- Nov 24, 2026Bump jsondiffpatch and @elizaos/core in /packages/eliza-plugin-x402 — nissan/reddi-agent-protocol0 reactions · 1 comment
- Nov 24, 2026Bump zod and @elizaos/core in /packages/eliza-plugin-x402 — nissan/reddi-agent-protocol0 reactions · 1 comment
- Nov 24, 2026Bump minimatch and @elizaos/core in /packages/eliza-plugin-x402 — nissan/reddi-agent-protocol0 reactions · 1 comment
- Nov 23, 2026fix: skill drift detected 2026-11-23 — ItachiDevv/elizaos-skill0 reactions
- Nov 23, 2026Bump @elizaos/core from 0.1.9 to 2.0.5 in /packages/eliza-plugin-x402 — nissan/reddi-agent-protocol0 reactions · 1 comment
- Nov 16, 2026fix: skill drift detected 2026-11-16 — ItachiDevv/elizaos-skill0 reactions
- Nov 16, 2026Bump @elizaos/core from 2.0.3-beta.7 to 2.0.5 in the npm-minor-patch group — livetennisapi/elizaos-plugin-livetennis0 reactions
- Nov 12, 2026agent-skills.github.elizaos.eliza: 15 → 2.0.5 — sudosubin/agents.nix0 reactions
- Nov 11, 2026agent-skills.github.elizaos.eliza: 14-unstable-2026-10-05 → 15 — sudosubin/agents.nix0 reactions
- Nov 10, 2026elizaOS eliza HTTP Server api-base-owner.ts information disclosure — NixOS/nixpkgs0 reactions · 1 comment
- Nov 9, 2026fix: skill drift detected 2026-11-09 — ItachiDevv/elizaos-skill0 reactions
- Nov 2, 2026fix: skill drift detected 2026-11-02 — ItachiDevv/elizaos-skill0 reactions
- Oct 29, 2026Android: Unii as the default digital assistant, with screen context — arteeh/ki0 reactions
- Oct 26, 2026fix: skill drift detected 2026-10-26 — ItachiDevv/elizaos-skill0 reactions
- Oct 19, 2026fix: skill drift detected 2026-10-19 — ItachiDevv/elizaos-skill0 reactions
- Oct 13, 2026Network OAuth SMS blocked: Twilio account authentication fails with 401 / 20003 — eliza-research/thenetwork0 reactions
- Oct 12, 2026fix: skill drift detected 2026-10-12 — ItachiDevv/elizaos-skill0 reactions
- Oct 10, 2026Track Shared phone sign-in release and Network acceptance — eliza-research/thenetwork0 reactions · 27 comments
- Oct 10, 2026TODO: Complete final MVP qualification against approved policies — AlphaPhone/alpha0 reactions · 9 comments
- Oct 10, 2026TODO: Deliver and qualify the approved AOSP MVP image — AlphaPhone/alpha0 reactions · 6 comments
- Oct 10, 2026Retire phone pairing for the on-device agent — AlphaPhone/alpha0 reactions · 1 comment
- Oct 5, 2026agent-skills.github.elizaos.eliza: 14 → 14-unstable-2026-10-05 — sudosubin/agents.nix0 reactions
- Oct 5, 2026fix: skill drift detected 2026-10-05 — ItachiDevv/elizaos-skill0 reactions
- Sep 30, 2026Request maintainer evaluation: fadhelcarlos PR elizaOS/eliza#32908 incorporated into #32909 — SlopDotCash/slopdotcash0 reactions · 4 comments
- Sep 28, 2026fix: skill drift detected 2026-09-28 — ItachiDevv/elizaos-skill0 reactions
- Sep 28, 2026Broken links report — Li-Evan/awesome-jev0 reactions
- Sep 21, 2026fix: skill drift detected 2026-09-21 — ItachiDevv/elizaos-skill0 reactions
- Sep 20, 2026取引OSS 8件から現行FX基盤へ取り入れられる設計・検証手法を調査する — yusuke3627/fx-trading-platform0 reactions
- Sep 14, 2026fix: skill drift detected 2026-09-14 — ItachiDevv/elizaos-skill0 reactions
- Aug 31, 2026fix: skill drift detected 2026-08-31 — ItachiDevv/elizaos-skill0 reactions
- Aug 29, 2026[repo] elizaOS/eliza — lucas-albers-lz4/sre-ai-llm-work0 reactions · 2 comments
- Aug 24, 2026fix: skill drift detected 2026-08-24 — ItachiDevv/elizaos-skill0 reactions
- Aug 24, 2026Request maintainer evaluation: superseded Neutize PR elizaOS/eliza#25803 — SlopDotCash/slopdotcash0 reactions · 1 comment
- Aug 23, 2026Request maintainer evaluation: GG100-eng review on elizaOS/eliza#24433 — SlopDotCash/slopdotcash0 reactions
- Aug 22, 2026fix(deploy): add protected staging migration gate before develop rollout — Steward-Fi/steward0 reactions
- Aug 21, 2026Request maintainer evaluation: Neutize reviews on elizaOS/eliza#23362 and #23364 — SlopDotCash/slopdotcash0 reactions · 2 comments
- Aug 20, 2026Eliza review preflight invalidates pinned proof after repository transfer — SlopDotCash/slopdotcash0 reactions
- Aug 17, 2026fix: skill drift detected 2026-08-17 — ItachiDevv/elizaos-skill0 reactions
- Aug 16, 2026Fix invalid review receipt blocking leaderboard refresh — SlopDotCash/slopdotcash0 reactions
- Aug 16, 2026Request maintainer evaluation: Neutize review on elizaOS/eliza#19464 — SlopDotCash/slopdotcash0 reactions
On YouTube · 24
- Jan 19, 2025Build a Solana Trading AI Agent with Eliza OS - No Paid APIs Needed! 🤖 — Square of Dai5.8k views · 20 comments
- Feb 1, 2025Eliza OS AI Agent Framework v0.1.9 - Initial Setup — Create & Play Games2.7k views · 17 comments
- Feb 12, 2025AI Agents on MultiversX with Eliza Framework - How to setup Eliza (Tutorial) — MultiversX2.5k views · 3 comments
- Feb 4, 2025Eliza OS: The Top Trending AI Framework Revolutionizing Customer Support & Social Media Automation! — Top Trending GitHub Repositories2.4k views · 2 comments
- Jan 17, 2025J'ai codé un agent IA - TUTO Eliza OS / AI16Z (typescript) — Jean1.5k views · 9 comments
19 more on YouTube
- Aug 1, 2026Eliza: Build Autonomous AI Agents for Twitter, Discord & Telegram (Modular, Memoryful) — Solopreneurs hub1.3k views
- May 25, 2025AI Agents Are About To Change Everything! ElizaOS Founder Drops Big Alpha 🚀 — JChains 1.3k views · 5 comments
- Feb 12, 2025AI Agents on MultiversX with Eliza Framework - Plugin and Client Systems (Tutorial) — MultiversX1.3k views · 3 comments
- Feb 25, 2025How to Create Crypto AI Agents With ElizaOS & Gelato — Founder Alpha956 views · 1 comment
- Jan 29, 2025build a TALKING AI agent with elizaOS by ai16z using Elevenlabs, Openrouter and Discord — Parzival of Algorithmic Progress843 views · 3 comments
- Feb 7, 2026S.10 Ep.9: ElizaOS, FOSSRPG, and the Future of Open-Source AI Agents with Shaw — Green Pill686 views · 3 comments
- Feb 26, 2025Eliza v2 Hacking — Shaw Makes Magic685 views · 2 comments
- Feb 26, 2025Eliza v2 Hacking — Shaw Makes Magic666 views
- Jan 14, 2025Getting started with Eliza and the Starknet Plugin — Jonatan Chaverri652 views · 6 comments
- Dec 30, 2024GitHub - elizaOS/eliza: Autonomous agents for everyone — GitHub Daily Trend AI Podcast547 views · 1 comment
- Oct 9, 2026ElizaOS 101: Rebuilding the Open Agent Operating System — Information in Motion 417 views
- Feb 27, 2025Eliza v2 Hacking — Shaw Makes Magic397 views
- Mar 3, 2025Eliza v2 Hacking — Shaw Makes Magic383 views
- Sep 25, 2026Architecting Autonomy Building an ElizaOS Node from First Prin — Alex Hitt366 views
- Jul 27, 2026eliza - GitHub Trending Today — GitHub Trending Digest245 views
- Mar 2, 2025Eliza v2 Hacking — Shaw Makes Magic223 views
- Feb 3, 2025Walkthrough of Eliza and how Istarai played Eternum — StarkWare168 views
- Feb 12, 2025SW x RW AI Agent Hackathon Show & Tell 2 — StarkWare94 views
- Apr 10, 2026Building & Deploying an AI Agent on Nosana GPU Network with ElizaOS — Jupiter Legion (Sam)55 views · 18 comments
On Bluesky · 12
- Jan 4, 2025Autonomous agents are here to eat your job, your cat, and your existential dread. 𝚎𝚕𝚒𝚣𝚊𝙾𝚂: where AI meets chaos theory in a blender… — @geeknik.bsky.social4 likes and reposts
- Dec 30, 2024Interesting how these social platforms are slowly becoming a communication channel for AI agents. - AI agents may bring more traffic there… — @testingcatalog.com3 likes and reposts
- Feb 22, 2025it can be done, and likely has — @tsunderella.moe2 likes and reposts · 1 reply
- Feb 9, 2025📦 elizaOS / eliza ⭐ 14,147 (+49) 🗒 TypeScript Autonomous agents for everyone — @github-trending-js.bsky.social2 likes and reposts
- Jan 23, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 elizaOS / eliza ⭐ 12,705 (+193) 🗒 TypeScript Autonomous agents for everyone — @github-trending-js.bsky.social2 likes and reposts
7 more on Bluesky
- Jan 3, 2025🎉 Celebrating! 🎉 (500+ new stars) 📦 elizaOS / eliza ⭐ 8,788 (+565) 🗒 TypeScript Autonomous agents for everyone — @github-trending.bsky.social2 likes and reposts · 1 reply
- Dec 29, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 elizaOS / eliza ⭐ 6,394 (+123) 🗒 TypeScript Autonomous agents for everyone — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Jul 8, 2025📦 elizaOS / eliza ⭐ 16,290 (+90) 🗒 TypeScript Autonomous agents for everyone — @github-trending-js.bsky.social1 likes and repost
- Jun 16, 2025github.com/elizaOS/eliza — @ens0.me1 likes and repost · 1 reply
- Jan 27, 2025Sad tweeter meddle election github.com/elizaOS/eliza — @jungchanhsieh.bsky.social1 likes and repost
- Jan 2, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 elizaOS / eliza ⭐ 8,445 (+431) 🗒 TypeScript Autonomous agents for everyone — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Dec 29, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 elizaOS / eliza ⭐ 6,394 (+123) 🗒 TypeScript Autonomous agents for everyone — @github-trending.bsky.social1 likes and repost · 1 reply
On Hacker News · 3
- Jul 12, 2025Show HN: ElizaOS 1.0 - Powerful and useful multi-agent framework in Typescript2 points
- Jan 5, 2025Eliza OS – open-source AI agent framework for crypto and more2 points · 1 comment
- Jan 4, 2025ElizaOS – Powering Agents on X2 points
On the web · 2
- Aug 26, 2025ElizaOS v2: from a meme AI fund to a full-fledged agent system — metalamp.io
- Jul 9, 2024elizaOS/eliza: stars & growth - TopRepo — toprepo.cuongit.net
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- BabylonSocial/babylon★ 12098% same
Wrote their own version · 14
- Z3Prover/z3★ 13ksame name
- parcadei/Continuous-Claude★ 3.9ksame name
- parcadei/Continuous-Claude-v2★ 3.9ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- 7xuanlu/wenlan★ 502same name
- wenlan-app/wenlan★ 502same name
- dtiger1889-ops/claude-harness-toolbox★ 37same name
- grove/promise-to-proof★ 4same name
- Belweave/hstack★ 1same name
- corygabrielsen/skills★ 1same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- alchemySkill
- architectSkill
- arenaSkill
- benchmark-checklistSkill
- designSkill
- principle-attack-the-premiseSkill
- principle-boundary-disciplineSkill
- principle-build-the-leverSkill
- principle-encode-lessons-in-structureSkill
- principle-exhaust-the-design-spaceSkill
- principle-experience-firstSkill
- principle-explain-the-numberSkill
- principle-fix-root-causesSkill
- principle-foundational-thinkingSkill
- principle-guard-the-context-windowSkill
- principle-laziness-protocolSkill
- principle-make-operations-idempotentSkill
- principle-migrate-callers-then-delete-legacy-apisSkill
- principle-minimize-reader-loadSkill
- principle-model-the-domainSkill
- principle-never-block-on-the-humanSkill
- principle-outcome-oriented-executionSkill
- principle-prove-it-worksSkill
- principle-redesign-from-first-principlesSkill
- principle-separate-before-serializing-shared-stateSkill
- principle-sequence-verifiable-unitsSkill
- principle-subtract-before-you-addSkill
- principle-test-behavior-not-implementationSkill
- principle-type-system-disciplineSkill
- shellSkill
- syncSkill
- typescript-best-practicesSkill
- whySkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 89
After that, LemmaScript refuses the .dfy unless it is its own output plus added lines, and dafny audit refuses anything assumed rather than …
- Distinctive: line 111
Read the file for what each states.
- Very specific: line 152
Run pnpm check. Dafny's messages point into the .dfy.
- Very specific: line 168
Put logic in the spec when you can: it is then simulated, proved and generated.
- Distinctive: line 193
Keep I/O, classes and libraries out of these files.
- Very specific: line 194
When a proof fails, the summary names the function and the annotation, and the full Dafny output is in gen/proof/<unit>.log.
- Distinctive: line 198
If that module has obligations that are simulated only, its proof line says that it is proved assuming them, and lists them.
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prove an obligation
When a proof does not go through
Dafny proves arithmetic and simple list facts on its own. It usually cannot
prove a rule that depends on a fold, a count or a search without help. When
proof lists obligations as "not proved" although simulation found nothing,
for each one, in this order:
- Prove it in the unit's proof file (next section). This is the agent's work, like any other translation.
- State the missing fact, if the obligation is false for some state that
satisfies every rule: no proof can help then. Add it as an
alwaysrule or a law (the inductiveness case in SPEC.md, "Writing good rules"). Moving arithmetic into a small function with a law in a library spec, or writing a loop by hand insrc/, also gives Dafny smaller steps. - Accept simulation for it: the user's decision, never the agent's, and
only for a spec unit: nothing simulates hand-written code, so a
srcunit's obligations must be proved.pnpm accept unprovedrecords the obligations inspec/lock.jsonunderunproved, per unit, with a fingerprint of the unit's text and proof file. The check then passes and says how many obligations are simulated only. It fails again if a new one appears, or if the unit or its proof file changes: what was accepted for one text does not carry over to another. Read the list before recording it: an obligation that is false is also "not proved".
Counting is per obligation. Dafny verifies each definition whole, and one
that fails again with every assertion on its own; a failing ensures is never
assumed while another is checked. The prover works to a fixed resource limit
(RESOURCE_LIMIT in vibestack/prove.ts, per definition and then per assertion)
rather than a time limit, so the answer does not depend on the machine. An obligation it
could not finish is marked [the prover ran out of resources]. A lemma
assumes what every lemma it calls ensures, so an obligation whose proof calls,
directly or through helpers, a lemma with an obligation not proved is not
proved either, and is marked [rests on <that obligation>]; the body the
tools give step_ensures is no exception. The total is the number of
ensures in the unit's generated Dafny. A proof line that relies on
obligations simulated only lists them.
Proof files
A unit's proof file sits beside it: spec/billing/index.proof.dfy proves
gen/billing.ts, src/<path>.proof.dfy proves src/<path>.ts. A spec that
defines no type or value of its own is no unit, and starts no prover. A proof
file that belongs to no unit is reported.
What the prover sees is gen/proof/<unit>/<unit>.dfy, written by every
pnpm check, and Dafny's full output is gen/proof/<unit>.log. The file
is, in order: what LemmaScript generated (the modules the unit imports, with
names prefixed <module>_ and without their obligations, then the unit
itself), the bodies the proof file supplied, the lemmas the tools add, the
proof file's helpers, and the library. Each obligation is one ensures of a
generated lemma <fn>_ensures: for a transition, one per always and step
rule, each conditional on inv and the guard; for a law, <law>(...) == true.
Grammar. A proof file holds only lemma declarations, each with a body,
and // comments, which in a project's own proof file are only spec
citations (AGENTS.md, "Writing code").
Anything else is refused with its file and line. A lemma
runs to the next lemma, and its body is the brace group it ends with, after
a complete header: the set display in decreases {0} or x in {1} is never
a body.
- A lemma named like a generated
<fn>_ensuressupplies that lemma's body. Its header must repeat the generated one exactly; copy it from the.dfy(whitespace and comments do not matter). When a rule changes, the header changes, and the old body is refused as stale. - Any other lemma is a helper, added after the generated text. Its name must
not be one the
.dfyalready declares. - Inside bodies:
assert,assert … by,calc,forall … ensures,if,match,var,reveal, calls to lemmas, and the attributes{:trigger}and{:induction}. - Names from Dafny's standard library (
Std.…) only as the generated code writes them, such asStd.Collections.Seq.Filter: the library holds axioms, anddafny auditdoes not report them in the unit.ProofLib.<Name>only for whatvibestack/proof/lib.dfydeclares. - Refused: block comments,
@, any other attribute, character literals, NUL, anything but ASCII outside comments and strings, and the words that declare or trust something:assume,expect,function,predicate,method,ghost,const,type,datatype,include,import,module,reads,modifies,opaque,axiom,verifyand the rest ofFORBIDDENinvibestack/prove.ts. - After that, LemmaScript refuses the
.dfyunless it is its own output plus added lines, anddafny auditrefuses anything assumed rather than proved. A failure anywhere but in a generated definition (a helper, the library, a lemma the tools add) fails the unit; it is never counted as an obligation. The tools know which definition each line of the.dfybelongs to from where they put it, and read only Dafny's own messages: at the start of a line, without source lines echoed, and as many as Dafny counted.
What a proof can call:
ProofLib.<Name>(...)fromvibestack/proof/lib.dfy, of which every unit that has a proof file gets what the file calls and what that uses:Filter(a heap-free view ofStd.Collections.Seq.Filter, see below),Distinct,DistinctBy, and lemmas about filters (FilterNil,FilterCons,FilterAppend,FilterMember,FilterSubset,FilterNone,FilterOne,FilterTwo,FilterCountOneIffUnique,FilterDistinctCountOne,FilterKeepsDistinctBy,FilterLengthPointwise,FilterPointwise,FilterSamePredicate,FilterImpLength,FilterOfFilterLength,FilterOfFilterShorter), distinctness and sets (DistinctByConcat,SubsetCard) and folds (FoldLeftAppend,FoldLeftInflationary,FoldLeftAboveEach,FoldLeftMax,FoldLeftPointwise,FoldLeftConcatEmpty,FoldLeftConcatMember,FoldLeftConcatDistinctBy,FoldLeftDedupMember,FoldLeftDedupDistinct). Read the file for what each states. A lemma general enough for any project belongs there, with its proof; one about your spec belongs in your proof file.- What an imported module's own unit proved in the same run, neither
simulated only nor resting on an obligation that is: its lemmas
<module>_<fn>_ensures(args)for each law, transition,stepandinitialHolds, with the clauses proved.<module>_<law>_ensures(args)gives<module>_<law>(args) == true, and<module>_<transition>_ensures(s, …)gives each rule of that module for<module>_<transition>(s, …), under itsinvand guard, so a machine that holds another need not prove its rules again (vibestack/fixtures/office.md). (In asrcunit, those of the module it imports are<fn>_ensures.) - The laws of the unit's opaque functions, assumed:
<law>_ensures(args). - The generated
_ensureslemmas, and Dafny's standard library by the names the generated code uses.
step_ensures gets a body from the tools that calls each transition's lemma;
supply one to replace it.
Two Dafny facts shape most proofs about lists:
Std.Collections.Seq.Filteris opaque and reads the heap, so a fact about it proved in a lemma does not meet the same call inside a generated rule. State facts aboutProofLib.Filter, and connect them to the rule with a helper whoseensuresis the rule's body withProofLib.Filterin place ofStd.Collections.Seq.Filter; it proves with an empty body:lemma KeysFilter(r: Registry) ensures alwaysAKeyNamesOneProject(r) == !(exists a :: a in r.entries && !(|ProofLib.Filter((b: Entry) => (b.key == a.key), r.entries)| == 1)) { }.- A lambda is the same term only if it is the same text: pass the lambda the
generated code uses, copied verbatim from the
.dfy.
To prove an obligation:
- Find its lemma in
gen/proof/<unit>/<unit>.dfy(the check names the definition and the clause). - Copy the lemma's header into the proof file and write a body. For a
transition, the usual shape is
if inv(s) && canX(s, …) { var after := x(s, …); …facts about after… }. Where a unit has obligations not proved,pnpm checkalso writesgen/proof/<unit>/<unit>.scaffold.dfy: each such lemma without a body yet, with its exact header and a body to start from. Copy from it. - Run
pnpm check. Dafny's messages point into the.dfy; the log has them all.
vibestack/fixtures/highest.md is the smallest example: its law needs induction
over a fold, and vibestack/fixtures/highest.proof.dfy proves it (the selftest runs it):
lemma lawTheHighestIsAtLeastTheStart_ensures(xs: seq<int>, start: int)
ensures (lawTheHighestIsAtLeastTheStart(xs, start) == true)
{
ProofLib.FoldLeftMax((top: int, x: int) => (if (x > top) then x else top), start, xs);
}Hand-written verified logic
Put logic in the spec when you can: it is then simulated, proved and
generated. For pure logic that Quint cannot express, such as a loop over an
event log, write TypeScript under src/ with
LemmaScript annotations.
vibestack/examples/order/src/ledger.ts is the worked example.
- Any
.tsfile undersrc/that contains//@is proved bypnpm check, as the unitsrc-<path>; under an owner'ssrc/, asapps-<name>-src-<path>, against the module in the owner'sgen/. Its//@lines are its contract, reviewed like a rule (see Review). - Such a file may import one generated module and nothing else, and only by
name: no
as, default or namespace import. Its annotations may mention anything that module defines (inv, guards, rules), imported or not. - At the top level it may hold only imports, functions with a body,
interfaces, type aliases and
constdeclarations, each exported in its own declaration (export function,export const, …) or not at all: noexport { … },export defaultor statements. The proof reads names as written, and LemmaScript does not model what such statements do at run time. //@must be in a//comment, never in a block comment or a string. In any other script undersrc/(.vibe,.vibex,.mts,.cts,.tsx,.js,.jsx,.mjs,.cjs) it is an error.- Allowed annotations:
backend,pure,requires,ensures,invariant,decreases,type,ghost,assert. Any other, such asassume,extern,havoc,skiporverify, is refused wherever on a line it appears. - Keep I/O, classes and libraries out of these files; put them in the shell.
- When a proof fails, the summary names the function and the annotation, and
the full Dafny output is in
gen/proof/<unit>.log. A proof that needs more than annotations goes insrc/<path>.proof.dfy(see "Proof files"). - Such a unit is proved against the definitions of the module it imports. If that module has obligations that are simulated only, its proof line says that it is proved assuming them, and lists them. Its own obligations must be proved.
Tests for the shell: see AGENTS.md, "Tests".
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

