tlaplus-model-reduction

Simplify TLA+ specifications by reducing variables, merging actions, and minimizing invariants.

142|14|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill tlaplus-model-reduction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tlaplus-model-reduction
Source: https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/tlaplus-model-reduction
Command: npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill tlaplus-model-reduction

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies complex TLA+ specifications by automatically removing redundancies, making them easier to understand, verify, and manage.

Core Features & Use Cases

  • State Variable Reduction: Identifies and removes variables that are not essential for the specification's logic.
  • Action Merging: Combines equivalent actions to streamline the state transition logic.
  • Invariant Minimization: Removes redundant invariants that are implied by others or always trivially true.
  • Use Case: When a TLA+ model becomes too large or slow to verify, this skill can reduce its complexity while ensuring all original properties are still met.

Quick Start

Use the tlaplus-model-reduction skill to simplify the TLA+ specification provided in the file 'MySpec.tla'.

Frequently Asked Questions about tlaplus-model-reduction

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize a TLA+ specification to improve verification performance?

To optimize TLA+ specifications, you can automate the simplification of state variables, merge equivalent actions, and minimize invariants while preserving specified properties for better verification performance.

What is the best way to reduce redundant state variables in TLA+ models?

The best way to reduce redundant state variables in TLA+ models is by analyzing variable dependencies to identify and remove non-essential variables while ensuring semantic equivalence is maintained.

Why does TLA+ model verification slow down and how can I simplify the specification?

TLA+ model verification slows down when specifications become too large, but you can simplify them by merging equivalent actions and minimizing invariants to reduce model complexity.

Can I minimize TLA+ invariants without changing the original specified properties?

Yes, you can minimize TLA+ invariants by removing redundant ones that are implied by others or trivially true, while analyzing invariant implications to ensure all specified properties are still met.

Does this approach to TLA+ model reduction require manual analysis of action equivalences?

No, this approach automates the analysis of action equivalences and variable dependencies to streamline state transition logic, ensuring semantic equivalence is maintained without manual intervention.

When should I not use automated model reduction for TLA+ specifications?

You should avoid automated model reduction when your TLA+ specification lacks clear property definitions, as preserving specified properties requires analyzing invariant implications and action equivalences to maintain semantic equivalence.