Repository navigation
Conversation
Move the package files, `Interop/Rust/` and `Interop/Hax/` into the new sub-project directory `Interop/Aeneas/`, beside `ITree.lean` and `WP.lean`: `Interop/Rust/` becomes `Interop/Aeneas/Lift/` and `Interop/Hax/` becomes `Interop/Aeneas/Hax/`. Renames only; the next commit updates module names, paths and the package configuration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each directory `Interop/<Sub>/` is a sub-project with its own Lake package, trusted base, assumptions and implementations. `Interop/Aeneas` is the first: the hax and Aeneas bridges, which all rest on Aeneas's `RustM`. - Package: `Interop/Aeneas/lakefile.toml` reads sources from the repository root (`srcDir = "../.."`), shares the root's packages (`packagesDir = "../../.lake/packages"`) and requires VCVio at `../..`. The package is `VCVioInteropAeneas`, with the libraries `InteropAeneas` and `InteropAeneasHaxExtraction`; requires, pins and options are unchanged. - Modules: `Interop.Rust.*` becomes `Interop.Aeneas.Lift.*` and `Interop.Hax.*` becomes `Interop.Aeneas.Hax.*`. Declaration names are unchanged. The crates' `hax.toml` files extract into the new paths, and the committed extractions import the new module names. - CI: the Interop job is a matrix over every `Interop/<Sub>/lakefile.toml`, listed by `scripts/interop-subprojects.py`. Each entry builds, runs `lake test` when the package has a test driver, and sweeps the roots of its default libraries for axioms. - Isolation: a module of `Interop/<A>/` imports `Interop.<B>.…` only when `A B` is listed in `scripts/interop_import_allowlist.txt`, which lists nothing. - Docs: `Interop/README.md` indexes the sub-projects, states their shared rules and fixes the README template that `Interop/Aeneas/README.md` follows; the agent guides, the repository layout and the script comments describe the new layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🤖 PR SummaryStructural Refactoring:
|
| Metric | Count |
|---|---|
| 📝 Files Changed | 95 |
| ✅ Lines Added | 826 |
| ❌ Lines Removed | 429 |
Lean Declarations
✏️ Added: 2 declaration(s)
scripts/CheckImports.lean (2)
private def interopAllowlist : IO (List (String × String))private def interopSubprojectAllowed (allow : List (String × String)) (path : FilePath)
sorry Tracking
- No
sorrys were added, removed, or affected.
📋 **Additional Analysis**
No findings.
📄 **Per-File Summaries**
- .github/workflows/build.yml: The workflow now dynamically discovers Interop sub-projects via a new
interop_subprojectsjob that runsscripts/interop-subprojects.py list, and then builds each sub-project (e.g.,Interop/Aeneas,Interop/Rust) in a matrix (interop ${{ matrix.subproject }}) using its ownlakefile.toml. Each sub-project now gets its own build, test (vialake testif available), and axiom sweep (roots determined byscripts/interop-subprojects.py roots .), replacing the previous single monolithic Interop job that built all bridges together with hardcoded axiom roots. Cache-related comments and thefree-ci-disk-space.shreference were updated to reflect per‑sub‑project working directories, and the main axiom sweep comment now notes that each Interop sub‑project's job sweeps its own roots instead of being bounded by an import‑isolation gate. - .github/workflows/hax-extraction.yml: The workflow file was updated to reflect that the hax extraction sub-project now lives under
Interop/Aeneas/rather than directly underInterop/. The top comment was revised to identify the check as belonging to theInterop/Aeneassub-project, and all trigger paths (push,pull_request) were moved fromInterop/Hax/*/...andInterop/lakefile.tomlto the correspondingInterop/Aeneas/Hax/*/...andInterop/Aeneas/lakefile.tomlpaths, ensuring the workflow only runs on changes within the new directory structure. - .github/workflows/interop-isolation.yml: The workflow's header comment was updated to clarify the dependency contract enforced by this check. The original comment specified that
Interop/**must not depend on downstream libraries (LatticeCrypto,Examples, etc.), but the change adds an additional rule: a sub-projectInterop/<A>/may importInterop.<B>.…only if that import is listed inscripts/interop_import_allowlist.txt. This ensures cross-sub-project dependencies insideInterop/are explicitly controlled rather than allowed freely. - AGENTS.md:
AGENTS.mdwas updated to reflect the restructuring of theInterop/directory from a single package with subdirectories into multiple independent Lake sub-projects (e.g.,Interop/Aeneas/), each with its ownlakefile.toml, README, and CI job. The dependency diagram now shows a one-way contract per sub-project and allows cross-Interoprequires only via an explicit allowlist; the import isolation policy was extended to also forbid imports fromHashSig/andHashSigTest/. The axiom-sweep section now notes that eachInterop/sub-project runs its own sweep job rather than being excluded entirely, and the warning/job section clarifies thatInterop/sub-projects do not gate on warnings. - Interop/Aeneas/Hax/Adc/Cargo.toml: This change simply renames the file
Interop/Hax/Adc/Cargo.tomltoInterop/Aeneas/Hax/Adc/Cargo.toml, reflecting a directory restructuring that adds anAeneaslayer to the project path. No content within the file was modified. - Interop/Aeneas/Hax/Adc/Extraction/Funs.lean: The file
Interop/Hax/Adc/Extraction/Funs.leanwas renamed toInterop/Aeneas/Hax/Adc/Extraction/Funs.lean. The public imports were updated fromInterop.Hax.Adc.Extraction.TypesandInterop.Hax.Adc.Extraction.FunsExternaltoInterop.Aeneas.Hax.Adc.Extraction.TypesandInterop.Aeneas.Hax.Adc.Extraction.FunsExternal, respectively, reflecting a newAeneassegment in the module path. No definitions, theorems, or proofs were added, removed, or changed. - Interop/Aeneas/Hax/Adc/Extraction/FunsExternal.lean: The file
Interop/Hax/Adc/Extraction/FunsExternal.leanwas renamed toInterop/Aeneas/Hax/Adc/Extraction/FunsExternal.lean, and itspublic importstatement was updated fromInterop.Hax.Adc.Extraction.TypestoInterop.Aeneas.Hax.Adc.Extraction.Typesto match the new path, ensuring the module continues to properly depend on the correct types module after the directory restructuring. - Interop/Aeneas/Hax/Adc/Extraction/Specs.lean: This diff renames the file from
Interop/Hax/Adc/Extraction/Specs.leantoInterop/Aeneas/Hax/Adc/Extraction/Specs.leanand updates its twopublic importstatements — forInterop.Hax.Adc.Extraction.TypesandInterop.Hax.Adc.Extraction.Funs— to use the new pathInterop.Aeneas.Hax.Adc.Extraction.TypesandInterop.Aeneas.Hax.Adc.Extraction.Funs, respectively. No theorems, definitions, structures, or proofs are added or changed; the file'spublic import Aeneas,public import CoreModels,public import Hax, and the@[expose] public sectionblock remain identical. - Interop/Aeneas/Hax/Adc/Extraction/Types.lean: The file
Interop/Hax/Adc/Extraction/Types.leanhas been renamed toInterop/Aeneas/Hax/Adc/Extraction/Types.lean. Thepublic importpath forInterop.Hax.Adc.Extraction.TypesExternalhas been updated toInterop.Aeneas.Hax.Adc.Extraction.TypesExternalto reflect the new directory structure. No other definitions, theorems, structures, or instances were added or modified in this file. - Interop/Aeneas/Hax/Adc/Extraction/TypesExternal.lean: The file
TypesExternal.leanwas moved fromInterop/Hax/Adc/Extraction/toInterop/Aeneas/Hax/Adc/Extraction/. This is a pure rename with no changes to content (similarity index 100%). The relocation reflects a restructuring of the project's directory hierarchy to include anAeneassubdirectory within the interop layer. - Interop/Aeneas/Hax/Adc/Verification.lean: The file was moved from
Interop/Hax/Adc/Verification.leantoInterop/Aeneas/Hax/Adc/Verification.lean, and all itspublic importstatements were updated to reflect the new path —Interop.Hax.Adc.Extraction.SpecsbecameInterop.Aeneas.Hax.Adc.Extraction.Specs,Interop.Hax.HoldsbecameInterop.Aeneas.Hax.Holds,Interop.Rust.RustMbecameInterop.Aeneas.Lift.RustM, andInterop.Rust.TriplebecameInterop.Aeneas.Lift.Triple. The comment pointing to the vendored Rust source file was also updated fromInterop/Hax/Adc/src/lib.rstoInterop/Aeneas/Hax/Adc/src/lib.rs, and the path to the hax extraction in the descriptive text was updated fromInterop.Hax.Adc.ExtractiontoInterop.Aeneas.Hax.Adc.Extraction. This is a pure restructuring/rename; no theorems, definitions, or proofs were added or modified. - Interop/Aeneas/Hax/Adc/hax.toml: Added a new configuration file
Interop/Aeneas/Hax/Adc/hax.tomlfor thehaxtool. It defines a backend scenario namedadcthat extracts Rust code to the Lean backend. The configuration disables project-files generation and passes aeneas arguments (-dest,-subdir) to output the extraction into Lean modules under the pathInterop/Aeneas/Hax/Adc/Extraction, respecting the crate-adjacent directory structure. - Interop/Aeneas/Hax/Adc/src/lib.rs: Relocated
Adc/src/lib.rsto a newInterop/Aeneas/Hax/Adc/directory and updated its documentation comment to reflect the migrated path of the correspondingVerification.leanproof file. - Interop/Aeneas/Hax/Barrett/Extraction/Funs.lean: The file
Interop/Hax/Barrett/Extraction/Funs.leanis renamed toInterop/Aeneas/Hax/Barrett/Extraction/Funs.lean, and its twopublic importpaths (forTypesandFunsExternal) are updated to includeAeneasin the module path. This aligns the file's location and imports with an ongoing reorganization that moves extraction interop definitions under anInterop.Aeneasnamespace, consistent with other files in the repository. - Interop/Aeneas/Hax/Barrett/Extraction/FunsExternal.lean: The file was renamed from
Interop/Hax/Barrett/Extraction/FunsExternal.leantoInterop/Aeneas/Hax/Barrett/Extraction/FunsExternal.lean, and thepublic importofInterop.Hax.Barrett.Extraction.Typeswas updated toInterop.Aeneas.Hax.Barrett.Extraction.Typesto match the new directory structure. No other definitions, theorems, or proofs were modified; the change is a purely mechanical path update. - Interop/Aeneas/Hax/Barrett/Extraction/Specs.lean: This file was renamed from
Interop/Hax/Barrett/Extraction/Specs.leantoInterop/Aeneas/Hax/Barrett/Extraction/Specs.lean, and its twopublic importstatements were updated accordingly to referenceInterop.Aeneas.Hax.Barrett.Extraction.TypesandInterop.Aeneas.Hax.Barrett.Extraction.Funs. This is purely a structural refactor to move the extraction specifications into theAeneas-namespace subtree, which affects the module's visibility and import paths but does not alter any theorems, definitions, or logical content. - Interop/Aeneas/Hax/Barrett/Extraction/Types.lean: The file
Types.leanwas renamed fromInterop/Hax/Barrett/Extraction/Types.leantoInterop/Aeneas/Hax/Barrett/Extraction/Types.leanwith no changes to its content. This move integrates the file into anAeneassubdirectory, likely reflecting a reorganization of the extraction pipeline or namespace. - Interop/Aeneas/Hax/Barrett/Verification.lean: This diff renames the file from
Interop/Hax/Barrett/Verification.leantoInterop/Aeneas/Hax/Barrett/Verification.lean, reflecting a migration of the project structure fromInterop/Hax/toInterop/Aeneas/. Allpublic importstatements are updated accordingly:Interop.Hax.Barrett.Extraction.Specs→Interop.Aeneas.Hax.Barrett.Extraction.Specs,Interop.Hax.Holds→Interop.Aeneas.Hax.Holds,Interop.Rust.RustM→Interop.Aeneas.Lift.RustM, andInterop.Rust.Triple→Interop.Aeneas.Lift.Triple. The module-level docstring also corrects the file path reference for the vendored Rust crate toInterop/Aeneas/Hax/Barrett/src/lib.rs, and adjusts the description of the hax extraction output directory toInterop.Aeneas.Hax.Barrett.Extraction. - Interop/Aeneas/Hax/Barrett/hax.toml: This new
hax.tomlconfiguration file is added for theBarrettcrate, which configures a Lean extraction scenario namedbarrett. It sets the backend tolean, disables the generation ofproject-files, and specifies extraction arguments that direct the output to theInterop/Aeneas/Hax/Barrett/Extractionsubdirectory, intended to produce Lean modules under theInterop.Aeneas.Hax.Barrett.Extraction.*namespace. - Interop/Aeneas/Hax/Barrett/src/lib.rs: The file
lib.rswas renamed fromInterop/Hax/Barrett/src/lib.rstoInterop/Aeneas/Hax/Barrett/src/lib.rs, placing it under theAeneassubdirectory of theInterophierarchy. No other changes to the file content were made; the diff reflects only the move, which reorganizes the project structure but does not alter the Rust library code. - Interop/Aeneas/Hax/Cargo.toml: The file
Interop/Hax/Cargo.tomlwas renamed toInterop/Aeneas/Hax/Cargo.toml, and its comments were updated to reflect the new path prefixInterop/Aeneas/Hax/(instead ofInterop/Hax/) for the Rust crate source directories, and to referenceInterop/Aeneas/lakefile.toml(instead ofInterop/lakefile.toml) for the hax Lean library dependency. - Interop/Aeneas/Hax/CenteredBinomial/Extraction/Funs.lean: This diff renames the file
Interop/Hax/CenteredBinomial/Extraction/Funs.leantoInterop/Aeneas/Hax/CenteredBinomial/Extraction/Funs.leanand updates itspublic importpaths accordingly:Interop.Hax.CenteredBinomial.Extraction.TypesbecomesInterop.Aeneas.Hax.CenteredBinomial.Extraction.Types, and similarly forFunsExternal. No definitions, theorems, or proofs are added or modified; the change is purely relocational, moving the file under anAeneassubdirectory in the import hierarchy, which likely re-aligns the module path with the rest of the project structure. - Interop/Aeneas/Hax/CenteredBinomial/Extraction/FunsExternal.lean: The file
Interop/Aeneas/Hax/CenteredBinomial/Extraction/FunsExternal.leanis created by renaming fromInterop/Hax/CenteredBinomial/Extraction/FunsExternal.lean(92% similarity). The only semantic change is updating onepublic importto reflect the new path:Interop.Aeneas.Hax.CenteredBinomial.Extraction.Typesinstead ofInterop.Hax.CenteredBinomial.Extraction.Types. No theorems, definitions, or proofs (sorry/admit) are added or modified; the change is purely a namespace/path relocation to align with the newAeneasdirectory structure. - Interop/Aeneas/Hax/CenteredBinomial/Extraction/Specs.lean: The file was renamed from
Interop/Hax/CenteredBinomial/Extraction/Specs.leantoInterop/Aeneas/Hax/CenteredBinomial/Extraction/Specs.lean, reflecting a newAeneasdirectory in the path. The twopublic importstatements were updated to match the new path:Interop.Aeneas.Hax.CenteredBinomial.Extraction.TypesandInterop.Aeneas.Hax.CenteredBinomial.Extraction.Funs. No theorems, definitions, or proofs were changed; this is purely a restructuring to align the module’s imports with the renamed directory hierarchy. - Interop/Aeneas/Hax/CenteredBinomial/Extraction/Types.lean: The file
Interop/Hax/CenteredBinomial/Extraction/Types.leanwas renamed toInterop/Aeneas/Hax/CenteredBinomial/Extraction/Types.leanwith no content changes. This move restructures the file path under theAeneassubdirectory, likely to align the extraction types with the project's Aeneas-related interoperability layer. - Interop/Aeneas/Hax/CenteredBinomial/Verification.lean: The file was renamed from
Interop/Hax/CenteredBinomial/Verification.leantoInterop/Aeneas/Hax/CenteredBinomial/Verification.lean. All fourpublic importpaths were updated to reflect the new directory structure:Interop.Hax.CenteredBinomial.Extraction.SpecsbecameInterop.Aeneas.Hax.CenteredBinomial.Extraction.Specs, and threeInterop.Rust.*imports were changed toInterop.Aeneas.Lift.*. The doc-comment references to the adjacent Rust source file and to the hax extraction target were also updated fromInterop/Hax/...toInterop/Aeneas/Hax/...and fromInterop.Hax.CenteredBinomial.ExtractiontoInterop.Aeneas.Hax.CenteredBinomial.Extraction, respectively. - Interop/Aeneas/Hax/CenteredBinomial/hax.toml: Added a new
hax.tomlconfiguration file for theCenteredBinomialcrate, defining ascenario.cbdscenario with the Lean backend. This configures the Hax extraction tool to generate Lean modules (Interop.Aeneas.Hax.CenteredBinomial.Extraction.*) from the Rust crate's code, with the output placed in the project'sInterop/Aeneas/Hax/CenteredBinomial/Extractiondirectory. This file establishes the extraction pipeline that will produce the Lean formalization of the crate's centered binomial distribution logic, though no extraction output (Lean files) is present in this diff — only the configuration that drives it. - Interop/Aeneas/Hax/CenteredBinomial/src/lib.rs: The file
Interop/Hax/CenteredBinomial/src/lib.rshas been moved toInterop/Aeneas/Hax/CenteredBinomial/src/lib.rs. No other changes were made to the file. - Interop/Aeneas/Hax/Computation/Extraction/Funs.lean: This diff moves the
Funs.leanfile fromInterop/Hax/Computation/Extraction/toInterop/Aeneas/Hax/Computation/Extraction/and updates itspublic importstatements to reflect the new path:Interop.Hax.Computation.Extraction.TypesbecomesInterop.Aeneas.Hax.Computation.Extraction.Types, andInterop.Hax.Computation.Extraction.FunsExternalbecomesInterop.Aeneas.Hax.Computation.Extraction.FunsExternal. Since only these import paths and the module location changed, no theorems, definitions, structures, or proof terms were added, removed, or modified. - Interop/Aeneas/Hax/Computation/Extraction/FunsExternal.lean: This file was renamed from
Interop/Hax/Computation/Extraction/FunsExternal.leantoInterop/Aeneas/Hax/Computation/Extraction/FunsExternal.lean, and itspublic import Interop.Hax.Computation.Extraction.Typeswas updated topublic import Interop.Aeneas.Hax.Computation.Extraction.Types. This change reflects a reorganization of the project's directory structure under theAeneasnamespace, ensuring that module imports remain consistent and correctly resolved in the new location. - Interop/Aeneas/Hax/Computation/Extraction/Specs.lean: The file was renamed from
Interop/Hax/Computation/Extraction/Specs.leantoInterop/Aeneas/Hax/Computation/Extraction/Specs.lean. Its twopublic importstatements were updated to reflect the new module paths:Interop.Aeneas.Hax.Computation.Extraction.TypesandInterop.Aeneas.Hax.Computation.Extraction.Funs. This is a structural move that consolidates Aeneas-related interop files under anAeneassubdirectory; no theorems, definitions, orsorry/admitare affected. - Interop/Aeneas/Hax/Computation/Extraction/Types.lean: The file
Interop/Aeneas/Hax/Computation/Extraction/Types.leanwas renamed fromInterop/Hax/Computation/Extraction/Types.leanand updates itspublic importto reflect the new path (Interop.Aeneas.Hax.Computation.Extraction.TypesExternal). All other content, including the module declaration, exposed section, and open statements, remain unchanged. - Interop/Aeneas/Hax/Computation/Extraction/TypesExternal.lean: This diff renames the file
Interop/Hax/Computation/Extraction/TypesExternal.leantoInterop/Aeneas/Hax/Computation/Extraction/TypesExternal.lean, relocating it within the directory structure to reside under the newInterop/Aeneas/hierarchy. The content of the file is unchanged (100% similarity index), so this is purely a structural move with no modifications to definitions, theorems, or proofs. - Interop/Aeneas/Hax/Computation/Verification.lean: The file
Interop/Hax/Computation/Verification.leanhas been moved toInterop/Aeneas/Hax/Computation/Verification.leanas part of a restructuring into theAeneasnamespace. Allpublic importdirectives were updated to reflect the new path:Interop.Aeneas.Hax.Computation.Extraction.SpecsreplacesInterop.Hax.Computation.Extraction.Specs, andInterop.Aeneas.Lift.TriplereplacesInterop.Rust.Triple. The docstring was also updated to note that the hax extraction now places its output intoInterop.Aeneas.Hax.Computation.Extractioninstead ofInterop.Hax.Computation.Extraction, and the Rust source file path was adjusted accordingly. These changes maintain the same logical content while integrating the file into theInterop/Aeneas/directory hierarchy. - Interop/Aeneas/Hax/Computation/hax.toml: This file introduces a new
hax.tomlconfiguration for thecomputationcrate within theInterop/Aeneas/Hax/Computationdirectory. It configures the Hax extraction tool to use the Lean backend, settingproject-filesto false, and directing extracted Lean output viaaeneas-argsto theInterop/Aeneas/Hax/Computation/Extractionsubdirectory. This establishes the build pipeline for extracting verified Rust code into Lean modules alongside the crate itself. - Interop/Aeneas/Hax/Computation/src/lib.rs: The file
Interop/Hax/Computation/src/lib.rswas renamed toInterop/Aeneas/Hax/Computation/src/lib.rs. This move reflects a directory restructuring to include theAeneascomponent in the path, with no changes to the file's contents. - Interop/Aeneas/Hax/Division/Extraction/Funs.lean: The file
Funs.leanwas relocated fromInterop/Hax/Division/Extraction/toInterop/Aeneas/Hax/Division/Extraction/, and its twopublic importlines were updated to reflect the new path (Interop.Aeneas.Hax.Division.Extraction.TypesandInterop.Aeneas.Hax.Division.Extraction.FunsExternal). This keeps the import structure consistent with the project's reorganized directory layout. No theorems, definitions, or proofs were added or modified; the file contains only module, import, and section declarations. - Interop/Aeneas/Hax/Division/Extraction/FunsExternal.lean: This change renames
FunsExternal.leanfromInterop/Hax/Division/Extraction/toInterop/Aeneas/Hax/Division/Extraction/and updates its solepublic importto reflect the new path (Interop.Aeneas.Hax.Division.Extraction.Types). Themoduledeclaration,public importofAeneasandCoreModels,opencommands, and@[expose] public sectionare otherwise unaltered. This path correction ensures that the dependency on the extracted types resolves correctly after the module has been moved into theAeneassubdirectory of the interop layer. No definitions, theorems, or proofs are added, removed, or changed, and nosorryoradmitappears in the diff. - Interop/Aeneas/Hax/Division/Extraction/Specs.lean: This diff renames the file from
Interop/Hax/Division/Extraction/Specs.leantoInterop/Aeneas/Hax/Division/Extraction/Specs.leanand updates itspublic importdirectives accordingly: the two importsInterop.Hax.Division.Extraction.TypesandInterop.Hax.Division.Extraction.Funsare changed toInterop.Aeneas.Hax.Division.Extraction.TypesandInterop.Aeneas.Hax.Division.Extraction.Funsrespectively. No theorems, definitions, orsorry/admitare added or removed—the change is purely a path/namespace restructuring to insert theAeneaslayer into the module hierarchy. - Interop/Aeneas/Hax/Division/Extraction/Types.lean: This diff only renames/moves the file
Interop/Hax/Division/Extraction/Types.leantoInterop/Aeneas/Hax/Division/Extraction/Types.lean, with no other changes to the file's content. The purpose is to relocate the file into a newAeneassubdirectory within theInteroppath, likely to reflect a restructuring of the project's interoperability layer. - Interop/Aeneas/Hax/Division/Verification.lean: This diff renames
Interop/Hax/Division/Verification.leantoInterop/Aeneas/Hax/Division/Verification.leanand updates all local and upstream import paths accordingly:Interop.Hax.Division.Extraction.SpecsbecomesInterop.Aeneas.Hax.Division.Extraction.Specs, andInterop.Rust.RustM,Interop.Rust.Run,Interop.Rust.TriplebecomeInterop.Aeneas.Lift.RustM,Interop.Aeneas.Lift.Run,Interop.Aeneas.Lift.Triple. The documentation comments are also adjusted to reflect the new directory structure (Interop/Aeneas/Hax/Division/src/lib.rsandInterop.Aeneas.Hax.Division.Extraction). No theorems, definitions, or proof content are added, removed, or altered; the file itself is unchanged beyond the import path updates. - Interop/Aeneas/Hax/Division/hax.toml: This new file
hax.tomlconfigures a Hax extraction scenario nameddivisionthat targets the Lean backend and instructs the tool to place extracted Lean modules intoInterop/Aeneas/Hax/Division/Extraction.*, relative to the parent crate's location. By settingproject-files = false, the extraction produces standalone Lean files rather than a full project. - Interop/Aeneas/Hax/Division/src/lib.rs: The file
Interop/Hax/Division/src/lib.rshas been renamed toInterop/Aeneas/Hax/Division/src/lib.rswith no changes to its content (similarity index 100%). This move aligns the division interop directory structure with the Aeneas subproject, likely integrating it under the Aeneas workspace for consistent build or dependency management. The rename itself is the only change — no definitions, APIs, or proofs were added, removed, or modified. - Interop/Aeneas/Hax/Examples/Extraction/Funs.lean: The file
Funs.leanwas renamed fromInterop/Hax/Examples/Extraction/toInterop/Aeneas/Hax/Examples/Extraction/, and its twopublic importstatements were updated to referenceInterop.Aeneas.Hax.Examples.Extraction.TypesandInterop.Aeneas.Hax.Examples.Extraction.FunsExternalaccordingly. This change reflects a reorganization of the project hierarchy underInterop/Aeneas/Hax/and ensures the module’s external dependencies remain valid. - Interop/Aeneas/Hax/Examples/Extraction/FunsExternal.lean: The file
Interop/Aeneas/Hax/Examples/Extraction/FunsExternal.leanwas renamed fromInterop/Hax/Examples/Extraction/FunsExternal.lean(93% similarity). The only substantive change is that thepublic import Interop.Hax.Examples.Extraction.Typesstatement was updated topublic import Interop.Aeneas.Hax.Examples.Extraction.Types, reflecting a restructuring of the module path to include theAeneasintermediate directory. No theorems, definitions, orsorry/admitdeclarations were added or modified. - Interop/Aeneas/Hax/Examples/Extraction/Specs.lean: The file
Interop/Aeneas/Hax/Examples/Extraction/Specs.leanwas moved from the old pathInterop/Hax/Examples/Extraction/Specs.lean(a rename-only diff with no content changes to definitions or theorems). Twopublic importlines were updated to reflect the new directory structure:Interop.Hax.Examples.Extraction.TypesbecameInterop.Aeneas.Hax.Examples.Extraction.Typesand similarly forInterop.Hax.Examples.Extraction.Funs. No theorems, definitions, instances, or structures were added, modified, or removed, and the file contains nosorryoradmit. - Interop/Aeneas/Hax/Examples/Extraction/Types.lean: This diff renames the module from
Interop/Hax/Examples/Extraction/Types.leantoInterop/Aeneas/Hax/Examples/Extraction/Types.leanand updates its public import accordingly. Specifically, the file is reimported, and thepublic importstatement changes fromInterop.Hax.Examples.Extraction.TypesExternaltoInterop.Aeneas.Hax.Examples.Extraction.TypesExternal, reflecting the insertion ofAeneasinto the module path. - Interop/Aeneas/Hax/Examples/Extraction/TypesExternal.lean: The file
Interop/Hax/Examples/Extraction/TypesExternal.leanwas renamed toInterop/Aeneas/Hax/Examples/Extraction/TypesExternal.lean, with no other changes to its content. This moves the file into theAeneassubdirectory underInterop, likely as part of a project restructuring or integration of the Aeneas toolchain. - Interop/Aeneas/Hax/Examples/Verification.lean: This diff renames the file from
Interop/Hax/Examples/Verification.leantoInterop/Aeneas/Hax/Examples/Verification.leanand updates all of its public import paths and module-doc string references fromInterop.Hax.*toInterop.Aeneas.Hax.*andInterop.Rust.*toInterop.Aeneas.Lift.*. Specifically, the importsInterop.Hax.Examples.Extraction.Specs,Interop.Hax.Holds,Interop.Rust.RustM, andInterop.Rust.TriplebecomeInterop.Aeneas.Hax.Examples.Extraction.Specs,Interop.Aeneas.Hax.Holds,Interop.Aeneas.Lift.RustM, andInterop.Aeneas.Lift.Triple. The documentation comments are updated to reflect the new module paths for the extracted contract (Interop.Aeneas.Hax.Examples.Extraction), theadd_or_panicspec, and the panic-probability verification modules. No new theorems, definitions, or proofs are added, and nosorryoradmitare introduced. - Interop/Aeneas/Hax/Examples/hax.toml: This new
hax.tomlconfiguration file defines ascenario.add-or-panicrule that directs the Aeneas extraction tool (backendlean) to extract Rust source from the nearby crate into Lean modules underInterop/Aeneas.Hax.Examples.Extraction. This establishes the extraction pipeline for the example project, enabling the generated Lean code to be placed into the project’s module hierarchy at the specified subdirectory. - Interop/Aeneas/Hax/Examples/src/lib.rs: This change is a file rename only:
Interop/Hax/Examples/src/lib.rshas been moved toInterop/Aeneas/Hax/Examples/src/lib.rs(with 100% similarity, meaning no content was modified). No definitions, theorems, or APIs were added, removed, or altered. The relocation appears to integrate the examples under anAeneassubdirectory, reorganizing the project structure without affecting functionality. - Interop/Aeneas/Hax/Holds.lean: This diff renames the file from
Interop/Hax/Holds.leantoInterop/Aeneas/Hax/Holds.leanand updates its single import: thepublic import Interop.Rust.RustMis replaced withpublic import Interop.Aeneas.Lift.RustM. This realigns the module's dependency to reflect the new Aeneas-based project structure, which is a necessary step for the ongoing refactoring of the interop layer. - Interop/Aeneas/Hax/README.md: Added
Interop/Aeneas/Hax/README.md, which documents the hax examples in theInterop/Aeneassub-project. It describes the layout of each example (Rust crate,Extraction/modules generated by the hax CLI, and a hand-writtenVerification.lean), explains the regeneration process viascripts/regenerate-hax.sh, details how contracts are proved usinghax_mvcgen,Interop.Hax.holds_ok, andInterop.Rust.triple_liftRustM_of_imp, and provides instructions for adding new examples. - Interop/Aeneas/Lift/Common.lean: The file
Interop/Rust/Common.leanhas been renamed toInterop/Aeneas/Lift/Common.lean. The module-level documentation comment was updated to reflect the new path: the reference toInterop.Rust.RustMwas changed toInterop.Aeneas.Lift.RustM. No other content—definitions, structures, theorems, or code logic—was added, removed, or modified. The rename and doc fix align the file's path and comments with the project's restructured module hierarchy for the Aeneas lift functionality, ensuring internal consistency between the file location and its documentation. - Interop/Aeneas/Lift/Run.lean: This change renames the file from
Interop/Rust/Run.leantoInterop/Aeneas/Lift/Run.leanand updates the corresponding module import fromInterop.Rust.CommontoInterop.Aeneas.Lift.Common. Since the diff only shows a file rename and a single import path adjustment, there are no new or modified theorems, definitions, instances, orsorry/admitstatements to note. - Interop/Aeneas/Lift/RustM.lean: This diff renames the file
Interop/Rust/RustM.leantoInterop/Aeneas/Lift/RustM.leanand updates its sole import fromInterop.Rust.CommontoInterop.Aeneas.Lift.Common. This change reflects a reorganization of the project's structure, moving theRustMmodule and its dependency under theInterop/Aeneas/Lifthierarchy, likely to better align with the Aeneas lifting framework. - Interop/Aeneas/Lift/Triple.lean: The file
Interop/Aeneas/Lift/Triple.leanis created by renaming the formerInterop/Rust/Triple.lean. The only content change is updating the public import ofInterop.Rust.RustMtoInterop.Aeneas.Lift.RustM, presumably to reflect a reorganization or renaming of the Rust monad module within the Aeneas interop hierarchy. - Interop/Aeneas/README.md: This new
Interop/Aeneas/README.mddocuments the first sub-project ofInterop/, which bridges Rust code extracted by hax and Aeneas into VCVio'sOracleCompvia aRustMlift. It specifies the pinned dependencies (hax 0.5, a fork of Aeneas, Lean/Mathlib 4.36.0), describes the trusted base (the translation toolchain and Rust models), and lists the assumptions under which extracted Rust functions are interpreted. The README provides a table of the six example crates (e.g.,CenteredBinomial,Barrett,Adc) and what each demonstrates, and an overview of the eleven modules that implement the lift, specification triples, interaction tree bridges, and the verification results for each example. - Interop/Aeneas/lakefile.toml: This file adds the
lakefile.tomlconfiguration for the newVCVioInteropAeneassub-project, which manages Rust code extracted by hax and Aeneas and lifted into VCVio. It defines two libraries:InteropAeneasas the default target containing the lift, interaction-tree bridges, and proofs (e.g., inInterop.Aeneas.Lift.TripleandInterop.Aeneas.Hax.Adc.Verification), andInteropAeneasHaxExtractionfor the generated extraction modules (e.g.,Interop.Aeneas.Hax.Barrett.Extraction.+) where the header linter is disabled. The file pins dependencies forhax,aeneas, andmathlib(atv4.36.0), matches the root package'ssrcDir,packagesDir, andleanOptions, and explicitly notes that VCVio's dependents must not resolve these requires. - Interop/Aeneas/lean-toolchain: The
lean-toolchainfile was moved fromInterop/toInterop/Aeneas/, creating a dedicated toolchain configuration for the Aeneas interop layer. This change ensures that the Aeneas-specific component has its own version-pinning independent of any otherlean-toolchainin theInteropdirectory, which matters for consistent builds and CI isolation of the Aeneas integration. - Interop/Hax/Adc/hax.toml: The file
Interop/Hax/Adc/hax.tomlwas deleted. This configuration previously defined a Hax extraction scenario namedadcusing the Lean backend, with arguments instructing Aeneas to output the extracted Lean modules intoInterop/Hax/Adc/Extraction/. Its removal disables that extraction pipeline step, meaning the ADC crate will no longer be automatically extracted to Lean modules underInterop.Hax.Adc.Extraction.*. - Interop/Hax/Barrett/hax.toml: The
hax.tomlconfiguration file for the Barrett interop was deleted. This file previously defined a[scenario.barrett]extraction step using theleanbackend with output directed toInterop/Hax/Barrett/Extraction. Its removal changes the pipeline by no longer triggering this hax-based extraction for the Barrett crate, indicating the extraction process has been altered or replaced. - Interop/Hax/CenteredBinomial/hax.toml: The file
Interop/Hax/CenteredBinomial/hax.tomlhas been deleted. This configuration file previously instructed a Hax extraction scenario ([scenario.cbd]) to generate Lean modules into theInterop.Hax.CenteredBinomial.Extraction.*namespace, using a specific output destination and subdirectory. Its removal indicates that the downstream extraction build configuration for the CenteredBinomial crate is no longer needed, or that this extraction setup has been migrated or replaced elsewhere. - Interop/Hax/Computation/hax.toml: The file
Interop/Hax/Computation/hax.tomlhas been deleted. Previously, it configured a Hax extraction scenario namedcomputationtargeting the Lean backend, with output directed toInterop/Hax/Computation/Extraction(viaaeneas-args). This removal eliminates that specific extraction pipeline; the corresponding Lean modules or alternate configuration must now be managed elsewhere. - Interop/Hax/Division/hax.toml: The file
Interop/Hax/Division/hax.toml, which previously configured the extraction of Rust division-related code into Lean modules underInterop.Hax.Division.Extraction, has been entirely deleted. This removal indicates that the scenario for extracting division functionality is no longer needed; consequently, the corresponding extraction pipeline step or the feature it supported has been discontinued or superseded. - Interop/Hax/Examples/hax.toml: The file
Interop/Hax/Examples/hax.tomlhas been deleted. This file configured the extraction of a Rust crate'sadd-or-panicscenario into Lean modules underInterop.Hax.Examples.Extractionusing theleanbackend, withproject-filesdisabled andaeneas-argsspecifying the destination path and subdirectory. Its removal removes that extraction configuration from the project, which may indicate that the extraction output is no longer needed, has been moved elsewhere, or its workflow has been reorganized. - Interop/Hax/README.md: This diff deletes the entire
Interop/Hax/README.mdfile, which previously documented the structure and workflow for integrating Rust programs extracted by the hax CLI into the VCVio project. The file described the layout of example directories (containing hand-written Rust crates, hax-generated Lean extraction modules, and hand-written verification proofs), the process for regenerating extractions viascripts/regenerate-hax.sh, and the method for proving contracts usinghax_mvcgenand theInterop.HaxandInterop.RustAPIs. The removal removes all orientation information about how these hax examples are organized, built, and verified, including details on specific examples (CenteredBinomial, Barrett, Adc, Computation, Division, Examples) and their purpose. - Interop/README.md: The
Interop/README.mdhas been restructured and expanded to reflect a shift from a single-bridge package (for Rust tools hax and Aeneas) to a collection of independent sub-projects underInterop/<Sub>/(e.g.,Interop/Aeneas), each with its own Lake package, trusted base, assumptions, and implementations. The new structure adds a table of sub-projects, a 'Shared rules' section codifying import isolation (core never importsInterop), Lake package conventions, and a 'README template' for consistency. The CI section is updated to describe per-sub-project build/test/axiom-sweep jobs discovered automatically by a newscripts/interop-subprojects.pyscript, alongside the existing import isolation checks. - Interop/lakefile.toml: This commit deletes the
Interop/lakefile.tomlconfiguration, which previously defined a separateVCVioInteroppackage. That package contained therequiredirectives for thehax,aeneas, andmathlibdependencies, theInteropRustandInteropHaxExtractionlibrary targets, and associatedleanOptions, all isolated to prevent dependency resolution for VCVio's dependents. Its removal indicates that these dependency and library configurations have been moved, likely into the root lakefile, streamlining the build setup. - README.md: The
README.mddescription of theInterop/directory was expanded. Previously it only mentioned experimental bridges to Rust verification frontends; now it specifies thatInterop/contains experimental sub-projects (each its own Lake package) that connect VCVio to external tools, and it explicitly namesInterop/Aeneasas the sub-project that verifies Rust code extracted by hax and Aeneas. - docs/agents/gotchas.md: The documentation file
docs/agents/gotchas.mdwas updated to reflect the restructuring of theInterop/directory into multiple independent packages. Specifically, the description of how library roots are declared was changed from a singleInterop/lakefile.tomlto each sub-project having its ownlakefile.toml(e.g.,Interop/Aeneas/lakefile.toml). Additionally, the note aboutInterop/building separately was refined to state that the sub-projects each build as their own package, and that the modules hax extracts retain the form the tool emits — capturing two distinct, related changes about the internal package organization. - docs/agents/interop.md: This documentation diff reorganizes and expands the rules for managing external verification tool sub-projects under
Interop/. It introduces a new requirement that each sub-project must have its own trusted base, directory, Lake package, and README template. The rules forrequireplacement and pin management are updated to refer to the sub-project level (e.g.,Interop/Aeneas/) rather than the top-levelInterop/directory. Import restrictions are tightened: cross-sub-project imports now require an explicitrequireof the other sub-project's package and must be listed inscripts/interop_import_allowlist.txt. A new rule mandates that generic code be placed in VCVio or PolyFun before being shared between sub-projects. API references are updated (e.g.,Interop.Rust.liftRustM→Interop.Aeneas.Lift.RustM,Interop.Rust.Triple→Interop.Aeneas.Lift.Triple). The building instructions are revised to target individual sub-projects, and CI job naming is updated fromInterop BridgestoInterop <Sub>. - docs/design/repository-layout.md: The documentation in
docs/design/repository-layout.mdwas updated with two main changes. First, the description of theInterop/directory was expanded to clarify that it contains sub-projects connecting VCVio to external code and tools, each structured as a separate Lake package (Interop/<Sub>/) with its own trusted base, and that cross-imports between sub-projects require an explicitrequire. Second, a new paragraph aboutInterop/was added to the 'Optional backends and external bridges' section, noting that each sub-project has independent trusted base, assumptions, and coverage, and thatInterop/README.mdindexes them and states shared rules. Additionally, the description ofLean.parseImports'usage was refined to explicitly include that it guards boundaries betweenInterop/sub-projects. - docs/reading/upstream-alignment.md: This documentation change updates the description of the
Interop/directory structure within the upstream-alignment documentation. It replaces the previous characterization ofInterop/as a single non-module excluded from the build with a new description stating that it contains sub-projects, each as its own Lake package with a dedicated CI job. The change also adds a cross-reference toInterop/README.mdfor further detail on the 'one package per trusted base' design. - lakefile.lean: The comment in
lakefile.leanexplaining the build strategy for interoperability sub-projects was updated to be more specific. Previously it referred vaguely to "Rust bridges" and "the separate package inInterop/lakefile.toml"; now it names the exact sub-project (Interop/Aeneas) and clarifies that each sub-directory underInterop/has its ownlakefile.tomlrather than a single shared one. This improves the documentation for developers who need to understand why certainrequirestatements are absent from the main lakefile and where to find the actual build configurations. - scripts/AxiomSweep.lean: The docstring for
defaultRootsinscripts/AxiomSweep.leanwas revised to clarify thatInteropis excluded because its sub‑projects are separate Lake packages, outside the certified surface and not built by the main CI build job. The new text explains that each sub‑project’s own CI job runs the sweeper from its own directory with an explicit--rootper root of its default libraries, referencingscripts/interop-subprojects.py rootsas the source of those roots. - scripts/CheckImports.lean: Added a pair of private functions—
interopAllowlist(readsscripts/interop_import_allowlist.txtinto a list of(String × String)pairs after stripping comments) andinteropSubprojectAllowed(checks whether a module import fromInterop/<B>is allowed from a given path, either because the importer's sub‑project matches the imported one or because the pair is in the allowlist)—and extendedmainto load the allowlist when not in--externmode and to report a forbidden import ifinteropSubprojectAllowedreturns false for anyInteropmodule. The module‑level docstring was also updated to document the new inter‑sub‑project import rule. - scripts/check-comment-fences.py: Updated the docstring comment in
scripts/check-comment-fences.pyto clarify the description of theInterop/directory: instead of referring to a singleInterop/lakefile.tomlpackage, it now correctly describes each sub-project withinInterop/as having its ownInterop/<Sub>/lakefile.tomlthat setsweak.linter.mathlibStandardSet. - scripts/interop-subprojects.py: Added a new Python script,
scripts/interop-subprojects.py, which provides two CLI commands for CI and local use:listoutputs a JSON array of sub-project directory names (e.g.Interop/<Sub>) that each contain alakefile.toml, androots DIRoutputs the axiom-sweep root modules for the Lake package inDIR, derived from the package'sdefaultTargetsthat namelean_libentries, validating that such libraries specifyroots(or use the library name as default) and rejecting any that useglobswithout explicitroots. This enables theInterop Sub-projectsCI job to discover sub-projects and their sweep targets programmatically. - scripts/interop_import_allowlist.txt: A new file
scripts/interop_import_allowlist.txthas been added. It serves as a configuration file for thescripts/check-interop-isolation.shscript, defining which inter-sub-project imports within theInterop/directory are permitted. The file specifies that each line should contain an<importer>and an<imported>pair, optionally annotated with a# reason, and that such allowed imports also require a corresponding[[require]]entry in the importer'slakefile. - scripts/regenerate-hax.sh: The script
scripts/regenerate-hax.shwas updated to reflect a project restructuring: all paths referencingInterop/Hax/andInterop/lakefile.tomlwere changed toInterop/Aeneas/Hax/andInterop/Aeneas/lakefile.toml, respectively. The Python inline script now reads the hax commit pin fromInterop/Aeneas/lakefile.tomland checksInterop/Aeneas/Hax/Cargo.tomlfor consistency. The extraction, copy, and cleanup loops now operate underInterop/Aeneas/Hax/, and corresponding output messages (e.g.,regenerate-hax: regenerated Interop/Aeneas/Hax/*/Extraction) were adjusted. A long error message string was split across two lines for readability. No changes to extraction logic or behavior were introduced. - scripts/test-comment-fences.sh: Updated the comment in
scripts/test-comment-fences.shto more accurately describe why thelinter.style.whitespacelinter does not generate warnings inInterop/directories: the previous wording claimed they are not elaborated, but the corrected comment explains that their CI jobs simply do not gate on warnings. The comment also splits the explanation forlakefile.leanandInterop/into separate clauses for clarity. - scripts/test-interop-isolation.py: The test file
scripts/test-interop-isolation.pywas updated to reflect a reorganization of the Interop module hierarchy:Interop.Haxis nowInterop.Aeneas.Hax,Interop.RustbecomesInterop.Aeneas.Lift, and the pathInterop/Hax/X.leanis moved toInterop/Aeneas/Hax/X.lean. A new testtest_imports_between_interop_subprojectswas added to enforce that imports between different Interop sub-projects (e.g.,Interop.AeneasvsInterop.Other) are forbidden by default, but can be allowed via a whitespace-delimited allowlist file (scripts/interop_import_allowlist.txt); the test also validates that the allowlist format<importer> <imported>is enforced and that allowed imports work only in the specified direction. Additionally, the existing testtest_allowed_edges_comments_and_multiple_importsnow includes an import ofInterop.Aeneas.Lift.RustMin one test case, and thetest_extern_boundarytest path was updated to use the new pathInterop/Aeneas/Hax/X.lean. - scripts/test-interop-subprojects.py: This diff adds a new test script
scripts/test-interop-subprojects.pythat exercises theinterop-subprojects.pyscript with four test cases.test_list_takes_every_directory_with_a_lakefileverifies thatlistreturns only directories underInterop/that contain alakefile.toml, filtering out other files and directories.test_roots_are_those_of_the_default_librarieschecks thatrootsreturns both explicitrootsand default-target library names from the lakefile for a given subproject.test_roots_refuse_an_empty_or_glob_only_sweepensuresrootsfails with a non-zero exit code and no stdout when the subproject has no default library, a glob-only default library, or a library with an empty roots list.test_repository_subprojects_have_sweep_rootsrunslistandrootsagainst the actual repository, asserting that every listed subproject (e.g.,Aeneas) has a non-zero exit code fromrootsand that each declared root is a `startswith( - scripts/test-validation.py: In
scripts/test-validation.py,test-interop-subprojects.pywas added to the list of script files that are either executed with a fixed script (exit 0) or overwritten with a trivialpassplaceholder during the validation test suite. This ensures that a new test script for interop subprojects is excluded from actual test logic during validation, maintaining the isolation pattern used for other test scripts. - scripts/validate.sh: Added
scripts/test-interop-subprojects.pyto the boundary checks executed byscripts/validate.sh. The--helptext now lists this listing of Interop sub-projects and their axiom-sweep roots as part of the boundary checks alongside PolyFun, broad expose, Extern and Interop isolation. The script is invoked viauv runin the file's command sequence, just after the Interop isolation checks. - Interop/Aeneas/.gitignore: (minor changes, +0/-0)
- Interop/Aeneas/Hax/.gitignore: (minor changes, +0/-0)
- Interop/Aeneas/Hax/Barrett/Cargo.toml: (minor changes, +0/-0)
- Interop/Aeneas/Hax/CenteredBinomial/Cargo.toml: (minor changes, +0/-0)
- Interop/Aeneas/Hax/Computation/Cargo.toml: (minor changes, +0/-0)
- Interop/Aeneas/Hax/Division/Cargo.toml: (minor changes, +0/-0)
- Interop/Aeneas/Hax/Examples/Cargo.toml: (minor changes, +0/-0)
- 2 file(s) filtered as noise (lockfiles, generated, or trivial):
Interop/Aeneas/Hax/Cargo.lock,Interop/Aeneas/lake-manifest.json
Last updated: 2026-11-21 21:33 UTC.
Interop/becomes a collection of sub-projects for working with code and tools outside Lean. Eachsub-project is a directory
Interop/<Sub>/with its own Lake package, trusted base, assumptions andimplementations, rather than one package whose libraries are sorted by kind of content. Two tools
whose Lean libraries declare the same names cannot share a Lake package, so separate packages are
what lets such tools live side by side.
Today's package becomes the first sub-project,
Interop/Aeneas. All of it rests on one trustedbase: hax 0.5's Lean output goes through Charon and Aeneas, and the lift, the triples, the
interaction-tree bridges and the hax examples all use Aeneas's
RustM. A later sub-project is anew directory and a row in the index; CI finds it without changes.
Layout
The first commit only moves files (
git mv, no content changes); the second updates names, paths,CI and docs.
Package.
Interop/{lakefile.toml,lake-manifest.json,lean-toolchain,.gitignore}move toInterop/Aeneas/, withsrcDir = "../..",packagesDir = "../../.lake/packages"and VCVio atpath = "../..". The requires, pins and options are unchanged, so the root's dependency cache isstill shared. The package is renamed
VCVioInteropAeneas, and its librariesInteropAeneasandInteropAeneasHaxExtraction, so that names stay distinct if one sub-project ever requiresanother.
Modules keep the
Interop.prefix the core import guard matches on, and follow their paths:Interop/Rust/*→Interop/Aeneas/Lift/*(Interop.Aeneas.Lift.{Common,Run,RustM,Triple});Interop/Aeneas/{ITree,WP}.leanstay where they are;Interop/Hax/**→Interop/Aeneas/Hax/**(Interop.Aeneas.Hax.…).Declaration names do not change: the namespaces
Interop.Rust,Interop.HaxandAeneas.Data.Coinductivedescribe content, not location.Interop/is declared unstable, sothere are no deprecations.
Extractions. Each crate's
hax.tomlpoints aeneas at the repository root from one leveldeeper (
-dest "../../../.."; cargo-hax runs aeneas in the crate directory) and at the new-subdir. The committed extracted modules change only in their imports, which aeneas derivesfrom
-subdir.scripts/regenerate-hax.shand.github/workflows/hax-extraction.ymlfollowthe new paths.
Shared rules and checks
Interop/README.mdlists the sub-projects (what each connects, trusted base,assumptions, implementations covered) and states the shared rules: core never imports
Interop;a sub-project imports another only through a declared
require; generic code moves to VCVio orPolyFun first; each sub-project is its own package, sharing the root's dependency cache when its
pins equal the root's; sources are read from the repository root; tests run through the
sub-project's own test driver. It also fixes the README template: connects to, trusted base,
assumptions, implementations covered, what is proved, stability, build and test.
Interop/Aeneas/README.mdfollows it, from the old README andHax/README.md; the latter keepsthe layout, regeneration and proof recipe of the hax examples.
Interop Bridgesjob becomes a matrix,Interop <Sub>, over every directoryInterop/<Sub>/with alakefile.toml(scripts/interop-subprojects.py list). Each entry runslake exe cache get,lake build,lake testwhenlake check-testfinds a driver, and theaxiom sweep against
scripts/axiom_baseline.json. The sweep roots are listed once, as the rootsof the libraries in the lakefile's
defaultTargets(scripts/interop-subprojects.py roots); forInterop/Aeneasthey are the same 13 modules the old job listed. The helper readslakefile.toml, and has its own tests,scripts/test-interop-subprojects.py, run before thematrix and by
scripts/validate.sh. Tool-specific checks stay with their sub-project:hax-extraction.ymlbelongs toInterop/Aeneas.scripts/CheckImports.leanadds the rule between sub-projects: a module ofInterop/<A>/may importInterop.<B>.…forB ≠ Aonly whenA Bis listed inscripts/interop_import_allowlist.txt, which lists nothing.scripts/test-interop-isolation.pycovers forbidden edges (another sub-project, its umbrella, bare
Interop, anInterop.leanumbrella), an allowed pair, the pair's direction and a malformed entry.
docs/agents/interop.md,AGENTS.md(repository map, module layering, Building,the axiom sweep and the stale claim that no job builds
Interop/),docs/design/repository-layout.md,docs/agents/gotchas.md, the rootlakefile.leanandREADME.md, the comments inscripts/AxiomSweep.leanand the comment-fence scripts, and theInterop/row ofdocs/reading/upstream-alignment.md, which still called it dormant. The linethat let a bridge without Lake dependencies build in the root package is gone.
Evidence
cd Interop/Aeneas && lake buildsucceeds. Its onlyInteropwarnings are the twoStd.Dodeprecation warnings that hax's
mvcgen_trivialmacro raises in the Barrett and Examplesproofs, on lines this PR does not change. The moved manifest is unchanged by the build.
lake exe axiomsweep, run as the CI step runs it: 156 declarations across the 13 roots, with nosorryand no nonstandard axiom.lake check-testfinds no test driver, so CI skipslake test.scripts/check-interop-isolation.shandscripts/check-extern-isolation.shpass;scripts/test-interop-isolation.py(7 tests) andscripts/test-interop-subprojects.py(4 tests) pass, and each new test fails when the rule it covers is removed.
./scripts/validate.shpasses (build and warning budget, boundaries, comment fences, init sweep,style linters, agent docs and doc names).
scripts/regenerate-hax.sh --check, which needscargo-hax. Its paths and theworkflow's path filters all name existing files, and the workflow runs on this PR because the
crates moved. The new CI jobs also run for the first time on this PR.