+1
日增长
302
stars
63
forks
6
watchers
1,170
prs
333
issues
0
releases
README
!Strata Logo Strata Strata offers a unified platform for formalizing language syntax and semantics, and implementing automated reasoning applications. Strata provides a family of intermediate representations via _dialects_ that model specific programming constructs, and is extensible by tool developers to customize additional features to their needs. This README will help you get started with using and extending Strata. Also see the Architecture document that introduces some terminology and describes Strata's components, and a Getting Started guide that describes how to create a new dialect and analysis using existing features. Language-specific manuals live alongside the code: Laurel, Strata's intermediate verification language, is documented by three guides indexed in StrataLaurel/Implementation/README.md, and the Python front-end guide describes how Python is compiled through Laurel. N.B.: Strata is under active development, and there may be breaking changes! Prerequisites 1. Lean4: Strata is built on Lean4; see the version specified in the lean-toolchain file. Install Lean4 by following the instructions at lean-lang.org. 2. SMT Solvers: The verification pipeline and tests require SMT solvers (cvc5 and z3). See Installing dependencies → SMT Solvers below. 3. Java JDK (11 or later): required for Java code generation tests. See Installing dependencies → Java below. 4. ion-java jar (1.11.11): required for the Java/Ion integration test. See Installing dependencies → Java below. Installing dependencies SMT Solvers Download static builds (single binary, no library dependencies) and place them on your PATH: - cvc5 releases: https://github.com/cvc5/cvc5/releases - z3 releases: https://github.com/Z3Prover/z3/releases bash Download the appropriate static build for your platform from the release pages above, then copy the binaries somewhere on your PATH: cp /path/to/cvc5 /path/to/z3 ~/.local/bin/ or: sudo cp /path/to/cvc5 /path/to/z3 /usr/local/bin/ Java (for code generation tests) A JDK (11+) providing javac must be on your PATH. For running the Java/Ion integration test, download the ion-java jar: bash wget -q -O StrataTestExtra/Languages/Java/testdata/ion-java-1.11.11.jar \ https://github.com/amazon-ion/ion-java/releases/download/v1.11.11/ion-java-1.11.11.jar Verifying your setup bash cvc5 --version should print version info z3 --version should print version info Build Build and test the code in Lean's standard way: bash lake build && lake test Unit tests are run with guard_msgs commands. No output means the tests passed. For how to write a new test, see docs/Testing.md. To build executable files only and omit proof checks that might take a long time, use bash lake build StrataToCBMC Running specific test subsets Two kinds of tests coexist in this repo: - Elaboration-time tests (guard_msgs) live under StrataTest/ and run as part of lake build. No output means they passed. -
Top issues
#914Include Python (and other) test suites in `lake test`10 comments · 2026-04-14#1002Failure with "local variables in functions must have initializers"8 comments · 2026-04-21#897Python: Laurel→Core resolution failures for globals, static methods, type aliases (3 tests)7 comments · 2026-04-14#1202Total casts between bitvectors and integers in Strata/Core5 comments · 2026-05-21#1168Split into multiple repositories5 comments · 2026-05-14#993[Proposal] Documented specification for `exit` and labeled-block semantics5 comments · 2026-04-21#915Laurel does not lift procedure call5 comments · 2026-04-14#889Python frontend: global statement not supported (1 test)5 comments · 2026-04-14
Discussions
#831Setup a bot that actively finds PRs with merge conflicts and resolves them1 comments · 2026-04-10#502verification of Strata's soundness?0 comments · 2026-03-02#456Die Hard Jug example1 comments · 2026-02-19#107Generated Ion file contains non UTF-8 characters?0 comments · 2025-09-03#104Welcome to Strata Discussions!1 comments · 2025-08-29