# strata-org/strata architecture

> Architecture diagram of the GitHub repository strata-org/strata, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/strata-org/strata
- Repository: https://github.com/strata-org/strata

## Overview

Strata is a Lean-based platform for defining language dialects and building automated reasoning tools. The documented user workflow accepts a Strata program, parses and type-checks it, generates verification conditions through symbolic evaluation, encodes unresolved conditions for an SMT solver, and reports results or counterexamples. The tree also identifies transformation, Laurel, CBMC/GOTO, Java-generation, and editor capabilities. The only sampled source is the VS Code extension manifest, so internal connections beyond the README’s workflow are not asserted.

Main entry points: [`Strata/Languages/Core/Verifier.lean`](https://github.com/strata-org/strata/blob/main/Strata/Languages/Core/Verifier.lean) (Core Verifier), [`Strata/Languages/Core`](https://github.com/strata-org/strata/tree/main/Strata/Languages/Core) (Core IR), [`StrataLaurel/Implementation`](https://github.com/strata-org/strata/tree/main/StrataLaurel/Implementation) (Laurel Language), [`Strata/Languages`](https://github.com/strata-org/strata/tree/main/Strata/Languages) (Dialect Frontends)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontends["Languages and Frontends"]
  node_dialects["Dialect Frontends"]
  node_core["Core IR"]
  node_laurel["Laurel Language"]
end

subgraph group_analysis["Verification and Reasoning"]
  node_imperative["Imperative Semantics"]
  node_verifier["Core Verifier<br/>[Verifier.lean]"]
  node_vc["Verification Conditions"]
  node_smt["SMT Encoding"]
end

subgraph group_transforms["IR Transformations"]
  node_transforms["IR Transformations"]
end

subgraph group_outputs["Backends and Tools"]
  node_goto["GOTO Representation"]
  node_cbmc["CBMC Backend"]
  node_java["Java Generation<br/>[Gen.lean]"]
  node_sarif["SARIF Reporting<br/>[SarifOutput.lean]"]
  node_vscode["VS Code Highlighting<br/>[package.json]"]
end

node_user(("Program Author"))
node_program["Strata Program"]
node_solver{{"SMT Solvers"}}

node_user -->|"writes"| node_program
node_program -->|"parses and checks"| node_dialects
node_dialects -->|"generates conditions"| node_vc
node_vc -->|"symbolically evaluates"| node_verifier
node_verifier -->|"encodes unresolved VCs"| node_smt
node_smt -->|"discharges VCs"| node_solver
node_solver -->|"reports results"| node_user
node_laurel -.->|"compiles to"| node_core
node_imperative -.->|"supports reasoning"| node_verifier
node_core -.->|"transforms"| node_transforms
node_core -.->|"converts to"| node_goto
node_goto -.->|"feeds backend"| node_cbmc
node_laurel -.->|"supports generation"| node_java
node_verifier -.->|"reports diagnostics"| node_sarif
node_program -.->|"highlights syntax"| node_vscode

click node_dialects "https://github.com/strata-org/strata/tree/main/Strata/Languages"
click node_core "https://github.com/strata-org/strata/tree/main/Strata/Languages/Core"
click node_laurel "https://github.com/strata-org/strata/tree/main/StrataLaurel/Implementation"
click node_imperative "https://github.com/strata-org/strata/tree/main/Strata/DL/Imperative"
click node_verifier "https://github.com/strata-org/strata/blob/main/Strata/Languages/Core/Verifier.lean"
click node_vc "https://github.com/strata-org/strata/blob/main/Strata/Languages/Core/ObligationExtraction.lean"
click node_smt "https://github.com/strata-org/strata/tree/main/Strata/DL/SMT"
click node_transforms "https://github.com/strata-org/strata/tree/main/Strata/Transform"
click node_goto "https://github.com/strata-org/strata/tree/main/Strata/Languages/GOTO"
click node_cbmc "https://github.com/strata-org/strata/tree/main/Strata/Backends/CBMC"
click node_java "https://github.com/strata-org/strata/blob/main/Strata/Java/Gen.lean"
click node_sarif "https://github.com/strata-org/strata/blob/main/Strata/Languages/Core/SarifOutput.lean"
click node_vscode "https://github.com/strata-org/strata/blob/main/editors/vscode/package.json"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dialects,node_core,node_laurel toneBlue
class node_imperative,node_verifier,node_vc,node_smt toneAmber
class node_transforms toneMint
class node_goto,node_cbmc,node_java,node_sarif,node_vscode toneRose
class node_user,node_program,node_solver toneIndigo
```

## Components

### Languages and Frontends

- [Dialect Frontends](https://github.com/strata-org/strata/tree/main/Strata/Languages): `Strata/Languages`
- [Core IR](https://github.com/strata-org/strata/tree/main/Strata/Languages/Core): `Strata/Languages/Core`
- [Laurel Language](https://github.com/strata-org/strata/tree/main/StrataLaurel/Implementation): `StrataLaurel/Implementation`

### Verification and Reasoning

- [Imperative Semantics](https://github.com/strata-org/strata/tree/main/Strata/DL/Imperative): `Strata/DL/Imperative`
- [Core Verifier](https://github.com/strata-org/strata/blob/main/Strata/Languages/Core/Verifier.lean): `Strata/Languages/Core/Verifier.lean`
- [Verification Conditions](https://github.com/strata-org/strata/blob/main/Strata/Languages/Core/ObligationExtraction.lean): `Strata/Languages/Core/ObligationExtraction.lean`
- [SMT Encoding](https://github.com/strata-org/strata/tree/main/Strata/DL/SMT): `Strata/DL/SMT`

### IR Transformations

- [IR Transformations](https://github.com/strata-org/strata/tree/main/Strata/Transform): `Strata/Transform`

### Backends and Tools

- [GOTO Representation](https://github.com/strata-org/strata/tree/main/Strata/Languages/GOTO): `Strata/Languages/GOTO`
- [CBMC Backend](https://github.com/strata-org/strata/tree/main/Strata/Backends/CBMC): `Strata/Backends/CBMC`
- [Java Generation](https://github.com/strata-org/strata/blob/main/Strata/Java/Gen.lean): `Strata/Java/Gen.lean`
- [SARIF Reporting](https://github.com/strata-org/strata/blob/main/Strata/Languages/Core/SarifOutput.lean): `Strata/Languages/Core/SarifOutput.lean`
- [VS Code Highlighting](https://github.com/strata-org/strata/blob/main/editors/vscode/package.json): `editors/vscode/package.json`

### Other components

- **Program Author**
- **Strata Program**
- **SMT Solvers**

## Connections

- Program Author → Strata Program: writes (evidence: `README.md`)
- Strata Program → Dialect Frontends: parses and checks (evidence: `README.md`)
- Dialect Frontends → Verification Conditions: generates conditions (evidence: `README.md`)
- Verification Conditions → Core Verifier: symbolically evaluates (evidence: `README.md`)
- Core Verifier → SMT Encoding: encodes unresolved VCs (evidence: `README.md`)
- SMT Encoding → SMT Solvers: discharges VCs (evidence: `README.md`)
- SMT Solvers → Program Author: reports results (evidence: `README.md`)
- Laurel Language → Core IR: compiles to
- Imperative Semantics → Core Verifier: supports reasoning
- Core IR → IR Transformations: transforms
- Core IR → GOTO Representation: converts to
- GOTO Representation → CBMC Backend: feeds backend
- Laurel Language → Java Generation: supports generation
- Core Verifier → SARIF Reporting: reports diagnostics
- Strata Program → VS Code Highlighting: highlights syntax
