When to use Phaseline
Choose a verification tool by the question you need answered. Compare language semantics, the evidence a tool returns and what the published trials actually measured.
A checker applies explicit rules to an input and reports what it can establish. The property, the assumptions and the evidence it returns determine which tool fits. For Phaseline the recurring question is whether the available record is sufficient for a named decision, now and after a permitted change.
What kind of check do you need?
- Static type checking
- A type checker such as mypy checks Python code against its type annotations. An average and a peak can both be valid numbers. Their types alone do not say which one a decision needs.
- Tests over examples or generated inputs
- A test runner executes assertions. A property-based testing library such as Hypothesis generates inputs and can shrink a failing example. Coverage depends on the test and how its inputs were chosen. A team can also write an exhaustive Python check for an explicitly finite domain.
- Model checking and proof checking
- For relational rules and counterexamples, Alloy is a close formal alternative. Its Analyzer searches for an instance or counterexample under the chosen scope. TLC checks reachable behaviors of a configured TLA+ model. Lean’s kernel checks a supplied proof against definitions and assumptions. Each gives a different reason to trust an answer.
- Checking evidence and revisions in Phaseline
- Given a declared finite set of histories,
analyzegroups them by what the observer can see and tests whether each group agrees on the answer.retaindistinguishes states that some permitted future action sequence can tell apart. An omitted real-world possibility falls outside both checks. Run the instrument example.
Which question are you asking?
- What is the smallest record that preserves my future decisions?
- For fixed questions and deterministic transitions, finite-state minimization gives the classical answer. Phaseline connects that result to declared evidence, the old code and the observation cost of revising it. A team can implement the same construction with an automata library. We have no comparative labor or speed measurement for this command. Run the calculation.
- Would a change alter a downstream decision?
- Phaseline compares two editions, follows dependencies between named guarantees and gives an input that exposes a difference. In the draft-saving example one edit also changes whether work can be resumed. The integrating system identifies the edition in force and observes what shipped. Run the draft example.
- Is there a configuration in which these rules disagree?
- Alloy lets you describe editions, customers and relationships as constraints. Ask its Analyzer for a counterexample in a scope you choose. It is a good fit when the relationships you need go beyond Phaseline’s rule syntax. We ran an Alloy model in both selection and release trials. Alloy Analyzer · Selection benchmark.
- Could a retry, a race or a different approval order break the release?
- Model those events as state transitions in TLA+. TLC can check a finite configuration for safety or liveness properties. Two editions can agree about a customer and a concurrent deployment can still apply them in the wrong order. TLA+ was outside the release trials. TLA+ and its tools.
- Can I prove a property for every input under my assumptions?
- Lean can check a theorem about the model you define. Dafny verifies code against preconditions, postconditions and invariants. We used Dafny in a separate list-refinement exercise. Neither tool was scored on store or course delivery. Lean · Dafny · List example.
- Which policy should decide this request?
- OPA/Rego evaluates policy over structured inputs. Cedar specializes in authorization decisions about a principal, action and resource. Cedar’s symbolic compiler can check two policy sets for equivalence and produce a request and entity store that distinguish them. For an authorization change, this is a direct alternative. Neither was measured in the release trials. Rego · Cedar · Cedar equivalence checks.
- Does this revision break an API contract?
- For compatibility between two OpenAPI descriptions, oasdiff already checks breaking changes. We have no head-to-head results for OpenAPI compatibility. oasdiff.
- Does a benefit calculation implement a statute?
- Catala is designed for expressing legal rules and exceptions as executable definitions. It is a relevant alternative for statutory benefits. We did not run a legal-rules benchmark. Catala.
- Is Python a substitute?
- Python is a general-purpose language. Our baseline was a specific rule library written in Python. In the course trial its evaluator followed dependencies, checked the evidence source and owner, and held a release when evidence was missing or conflicted. The Python library, Alloy model and Phaseline all matched the 14 expected student readbacks. For a team that already maintains such a library, keeping it is a credible alternative. To substitute for Phaseline’s retention analysis, that library would also have to implement the partition of states by future answers. The course trial exercised release decisions. That tie measures the delivered course materials on those cases. The trial did not measure theorem proving, retention algorithms or total engineering cost. Inspect the Python evaluator, Alloy model and trial inputs · See measured results.