All languages
SASyLF logo

SASyLF language

An LF-based proof assistant whose surface syntax stays close to the paper it checks; derivations are written line by line and justified explicitly, and built-in variable binding supplies substitution for free.

Overview

An LF-based proof assistant for programming-language theory, belonging to the logic and specification traditions: syntax is written as BNF, semantics as inference rules, and proofs as named derivations. Its design goal is paper fidelity, so a student's lecture notes transpose nearly line for line into a file the checker verifies.

Code

terminals z s
syntax
n ::= z
  | s n

judgment sum: n + n = n
--------- sum-z
z + n = n

n1 + n2 = n3
-------------------- sum-s
(s n1) + n2 = (s n3)
Every tab is a declaration the checker consumes: grammar gives terms, rules generate judgments, a proof names each derivation. The last tab is the classroom idiom — induction with case coverage checked. Transcribed from the shipped examples.

Distinctive traits

  • Syntax is BNF and semantics is rules stacked over a bar, matching type-theory lecture notes; formalising becomes transcription, not translation.
  • Built-in variable binding supplies substitution, weakening, exchange and contraction, so metatheory needs no de Bruijn encodings.
  • No tactics: each step names a derivation and a justification, and errors point at the offending line, not at a proof state.
  • Case analysis is coverage-checked: omit a grammar production or a judgment's rule and the proof is rejected.
  • Rules are matched by higher-order pattern unification; it is undecidable in general, so "unification incomplete" is a real error.
  • Modules since 1.5.0 import syntax, judgments and theorems by qualified name, letting a course layer chapters instead of one huge file.

Status

Active. Shipped as a Java JAR for the command line, Eclipse and VS Code under the Eclipse Public License 1.0; 1.5.2 and a 1.6.0 pre-release both landed in January 2026.

History

Aldrich, Simmons and Shin presented SASyLF at FDPE 2008 with preliminary results from graduate type-theory courses; numbering started in 0.x, with 0.7 the first stable public release. John Boyland made the later major updates — IDE plugins, where clauses (1.4.0) and modules (1.5.0) — on top of the Twelf-derived checker.

Sources & references