Welcome to
SpecLogician

AI framework for data-driven
formal program specification
synthesis, verification and analysis

Your first step is to obtain Imandra Universe API key that your instance of SpecLogician will use for connecting.

Get API Key

No credit card required.

Powered by:

Problem Statement

The Challenge of Formal Specifications

Real-world systems face critical challenges in maintaining formal specifications

Rapid System Evolution

Most real-world systems evolve faster than their formal documentation or contracts, leading to ambiguity, regressions, and subtle bugs.

Expertise Gap

Writing correct formal specifications requires deep expertise, and teams rarely have the capacity to keep specs aligned with rapidly changing codebases.

Informal Artifacts

Execution traces, logs, example-driven tests, and domain knowledge remain informal and cannot be checked, proven, or reasoned about symbolically.

Hidden Violations

Without continuous specification analysis, subtle contract violations and invariant breakages accumulate unnoticed until they cause failures.

LLM Limitations

LLMs alone will not solve this - statistical models generate plausible specs but not necessarily sound ones; without symbolic checking, these errors remain hidden.

Introducing Imandra SpecLogician

SpecLogician ingests execution traces, logs, tests, domain rules, and code structure to infer pre/postconditions, invariants, and behavioral contracts—capturing what the system actually does rather than what developers assume.

  • LLMs propose candidate specs; symbolic reasoning (via ImandraX) checks them for soundness, consistency, and completeness. Wrong or incomplete pieces are automatically refined using counterexamples.
  • With a symbolic backend, SpecLogician proves properties, detects invariant violations, and highlights spec drift. Engineers get concrete counterexamples, test inputs, and minimal failing traces.
  • As code, tests, or inputs change, SpecLogician re-synthesizes and re-checks specifications automatically—ensuring specs remain aligned with real behavior and catching regressions early.
  • By linking code, observed behavior, and formal reasoning, SpecLogician turns specifications into a living artifact—enabling trustworthy verification pipelines, automated documentation, and safer system evolution.

Advantages

Advantages for the Post-LLM World

SpecLogician brings unique advantages to formal specification synthesis

Local Reasoning

Each scenario is a small symbolic composition over named predicates and transitions, so LLMs reason over dozens of symbols instead of trying to track a massive, monolithic state space.

Incremental Grounding

Logs, tests, docs, and incidents map directly into new scenarios and predicates, allowing the formal model to grow organically with the system rather than requiring expensive global redesigns.

Vocabulary-Based Composition

LLMs operate on stable names (order_size_exceeds_limit, reject_order) rather than raw formal code, which dramatically improves reliability, reuse, and cross-scenario consistency.

Continuous Scalability

Adding a new scenario composes with the existing model instantly, avoiding the "rebuild and re-understand everything" cycle typical of traditional monolithic formal specs.

Process

SpecLogician: A Typical Process

From observation to proven specification in six iterative steps

1

Observe & Extract

Collect code structure, execution traces, logs, and tests as behavioral evidence.

2

Update the Model

AI proposes initial IML types, invariants, and contracts based on observed behavior.

3

Check the Logic

Symbolic reasoning checks the draft for soundness; proofs succeed or counterexamples are produced.

4

Refine Specification

Users edit the IML (or describe changes in natural language), strengthening or adjusting properties.

5

Re-Check & Iterate

ImandraX verifies updates; SpecLogician re-synthesizes missing parts and highlights inconsistencies.

6

Converge on Proven Spec

The final model is machine-checked, documented, and ready for regression analysis.

Get Started with SpecLogician

Start synthesizing formal specifications from your code, tests, and logs today.