Tla Proof logo

Tla Proof

Community
younes-io
tla-proof

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.

Overview

Publisheryounes-io
Repositoryagent-skills
Skill nametla-proof
Stars
21
Forks
0
Bundled files
8
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by younes-io on GitHub. Read the source before you install it.

Installation

Install the Tla Proof AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/younes-io/agent-skills/tree/main/plugins/tla-workbenches/skills/tla-proof
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/younes-io/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/plugins/tla-workbenches/skills/tla-proof .claude/skills/tla-proof
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Tla Proof in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Tla Proof on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Tla Proof is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

TLA+ Proof

Outputs

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

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:

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

Artifacts:

  • .tla-proof/runs/<run-id>/summary.json
  • .tla-proof/runs/<run-id>/tlaps.stdout
  • .tla-proof/runs/<run-id>/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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Tla Proof AI skill do?

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.

Why use Tla Proof on TypingMind?

Because you install it once and use it with any model. Tla Proof is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Tla Proof in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/younes-io/agent-skills/tree/main/plugins/tla-workbenches/skills/tla-proof. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Tla Proof?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Tla Proof?

As many as you like. As long as a model supports skills, you can use Tla Proof with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Tla Proof AI skill free?

Yes. It is published on GitHub by younes-io under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇