AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Tla Proof

skill-younes-io-agent-skills-tla-proof · by younes-io

Write and iteratively refine TLA+ theorem proofs in `.tla` modules with TLAPS (`tlapm`); run proof checks and summarize proved vs failed/omitted obligations with explicit assumptions and trust boundaries. Use when asked to create or fix `THEOREM` or `PROOF` blocks, diagnose TLAPS failures, strengthen inductive invariants, prove equivalence, or tune proof structure.

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-younes-io-agent-skills-tla-proof

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-younes-io-agent-skills-tla-proof)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Tla Proof? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

TLA+ Proof

Outputs

  • Updated proof-bearing TLA+ module(s): *.tla
  • TLAPS run artifacts: .tla-proof/runs//...

Non-Negotiables (Honesty Rules)

  • Never claim full system correctness from a partial proof.
  • Always report what was proved, what failed, and what was omitted.
  • Always surface trust boundaries (ASSUME, AXIOM, omitted proofs, imported facts).
  • Never conflate TLC outcomes with TLAPS outcomes; treat them as different evidence.
  • Always keep theorem statements stable while debugging unless the user approves spec changes.

Workflow (Target Class -> Proof Plan -> TLAPS -> Iterate)

1) Pin Down Target and Trust Boundary

Record:

  • theorem statement(s) in scope
  • proof class: direct fact, inductive invariant, refinement, formula equivalence, safety, liveness
  • assumptions/environment model
  • required imported definitions/lemmas
  • candidate strengthening invariants or helper lemmas if the target does not look inductive yet
  • proof granularity target (quick progress vs fully structured proof)

If theorem intent is ambiguous, state candidate interpretations and choose one explicitly. If the user is refactoring a spec and wants semantic preservation, consider a direct equivalence theorem (F G) instead of only bounded TLC evidence.

2) Draft Minimal Hierarchical Proof Structure

Start with the smallest stable structure:

  • THEOREM ...
  • PROOF
  • SUFFICES, HAVE, CASE, PICK, TAKE, WITNESS, QED as needed

Prefer explicit sub-lemmas over long single-step BY clauses. Use BY DEF ... only for required definitions. Formula-equivalence proofs for refactors are a supported pattern, for example THEOREM F G BY DEF F, G. Match the structure to the proof class:

  • inductive invariant/safety: isolate base case vs step case and split Next by action
  • refinement: state the abstraction relation/refinement mapping and prove init/step obligations separately
  • formula equivalence: start with THEOREM F G; if a one-line proof fails, split into F => G and G => F
  • liveness/starvation freedom: pin down fairness and ranking assumptions before proof search, then expect auxiliary lemmas

3) Run TLAPS Deterministically

Prereqs:

  • bash
  • jq
  • tlapm

Run from the skill directory:

scripts/tlaps_check.sh --spec path/to/Foo.tla

Artifacts:

  • .tla-proof/runs//summary.json
  • .tla-proof/runs//tlaps.stdout
  • .tla-proof/runs//tlaps.stderr

4) Triage Failing Obligations

Classify failures before editing:

  • missing strengthening invariant or helper lemma
  • missing context facts
  • insufficient decomposition
  • missing definition expansion
  • backend/tactic mismatch
  • malformed theorem/proof structure
  • wrong target framing (for example, an equivalence theorem is the real goal)

Patch minimally, then re-run. If the same inductive step keeps failing, stop cycling tactics and propose the smallest strengthening fact that would make the step go through.

5) Report Progress Precisely

Report:

  • theorem(s) checked
  • proved/failed/omitted obligations
  • assumptions and trust boundaries
  • remaining proof gaps

If counts are inconclusive, say so explicitly. Common refactor-proof target: prove a rewritten formula or action is equivalent to the original, rather than only model-checking F G with TLC.

Resources

scripts/

  • scripts/tlaps_check.sh: run tlapm, capture logs, emit summary.json

references/

  • references/proof_skeleton.md: minimal hierarchical proof templates
  • references/local_moves.md: TLAPS-specific logical moves and proof-shape defaults
  • references/proof_debugging.md: failure taxonomy and remediation playbook
  • references/tactics_quickref.md: tactic/backend guidance and escalation order
  • references/case_bank.md: discussion-derived proof classes and non-trivial example ideas

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.