Skip to main content

xLaDe Logo

xLaDe

eXperimental Lean 4 advanced Development ecosystem

Model Version Platform


xLaDe is a simple Python-based CLI tool built for executing and preserving Lean 4 projects. It is an ecosystem-level tool, which records the toolchain and other metadata of projects and allows the reconstruction and rebuilding of that exact environment later.

Lean 4 undergoes rapid development, which can introduce backward-compatibility issues. This problem becomes more difficult as the versions accumulate over time. xLaDe is built to mitigate the practical issues of backward-compatibility problems and improve ecosystem-level tooling for the Lean 4 theorem prover.

Instead of directly solving backward-compatibility issues by storing every version of Lean 4 and other tools or providing cross-version compatibility, xLaDe tries to store sufficient environment metadata such as toolchains, dependencies, and other context, and then recreates the environment for running Lean 4 projects upon request, also termed as experiments in xLaDe. In this process, xLaDe does not interfere with Lean 4 work and doesn't change anything in Lean 4 projects. It sits on a layer above Lean 4 and there are no modifications to other layers.

xLaDe treats the Lean 4 kernel as immutable and provides CI-based checks to prevent modifications to Lean 4. The Lean 4 repository is included in xLaDe as a submodule and remains optional for use. xLaDe is an opinionated tool, and its policies are enforced by workflows and scripts rather than simply being documented.


Why not to use xLaDe

  • It is still in a developmental stage and not matured yet
  • It breaks on Python 3.13 or earlier
  • We support Linux only, no cross-platform availability is provided
  • It's a CLI tool, there is no GUI or TUI
  • It is a boring tool, there is no groundbreaking magic

Features

  • Lean projects and experiments runnable via xLaDe CLI
  • Comprehensive environment metadata storage for Lean 4 projects
  • Beginner friendly, with extensive documentation
  • Optimised and lightweight tool

Quick Start

To install the entire project:

git clone https://github.com/LakshitSinghBishtTM/xLaDe.git
cd xLaDe
python -m venv venv
source venv/bin/activate
pip install .
xlade

To install the core CLI only, without experiments and other modules:

pip install xlade
xlade

For complete installation instructions, please follow docs/install.


Usage

You can run xLaDe CLI via terminal.

xlade --help
xlade init
xlade run <experiment_id>

To add an experiment or a new project, check the experiments directory and follow the instructions carefully.


Example

We provide a compact example of xLaDe running Terence Tao's Analysis project. The output has been trimmed for readability. Users can also add and run their own Lean 4 projects under xLaDe.

$ xlade run exp-006-teorth-analysis

  Running experiment:  exp-006-teorth-analysis
  Mode:                experimental
  Toolchain:           leanprover/lean4:v4.29.0-rc8
  Timestamp:           2026-09-11 06:09:00
  ----------------------------------------------------------------------------------------------------
  xLaDe EXP-006: Lean Companion to Analysis I
  ----------------------------------------------------------------------------------------------------
  [info]   Project: experiments/exp-006-teorth-analysis/analysis
  [info]   Running: ./build.sh (lake exe cache get && lake build)
  ----------------------------------------------------------------------------------------------------
  info: downloading https://releases.lean-lang.org/lean4/v4.29.0-rc8/lean-4.29.0-rc8-linux.tar.zst
  info: mathlib: checking out revision '698d2b68b870f1712040ab0c233d34372d4b56df'
  info: verso: checking out revision 'b6a5bacc221b260a67d474a2436b89d067ae5f7d'  
  info: aesop: checking out revision '3426969888a264d3f69b6f30ab50aa11f28eb38d'
  ...
  ✔ [2/22] Built Cache.Init (167ms)
  ✔ [3/22] Built Cache.Lean (218ms)
  ...
  ✔ [22/22] Built cache:exe (410ms)
  ℹ [3499/3580] Built Analysis.Tools.ExistsUnique (6.8s)
  ...
  ✔ [8303/8310] Built Analysis.MeasureTheory.Section_1_3_2 (11s)
  ✔ [8304/8310] Built Analysis.MeasureTheory.Section_1_3_3 (2.1s)
  ✔ [8305/8310] Built Analysis.MeasureTheory.Section_1_3_4 (3.5s)
  ✔ [8306/8310] Built Analysis.Section_11_9 (9.7s)
  ✔ [8307/8310] Built Analysis.MeasureTheory.Section_1_3_5 (3.9s)
  ✔ [8308/8310] Built Analysis.Section_11_10 (9.1s)
  ✔ [8309/8310] Built Analysis (2.4s)
  Build completed successfully (8310 jobs).
  ----------------------------------------------------------------------------------------------------
  [pass]   build.sh succeeded.
  ----------------------------------------------------------------------------------------------------
  Status: success

Distribution

xLaDe Git repository is provided free of charge across GitHub, GitLab, Codeberg, Bitbucket, Gitea, and Sourceforge.
Each release is accompanied by a torrent seeded by core team and also available on our official website.
We also publish each version to PyPI and Zenodo.
In addition, we support USB drives, SD cards, CDs, DVDs and other removable storage media on an individual basis. For physical distribution, we only charge for the cost of the storage medium and shipping.

Additional information can be found in docs/official_sources.


Project Structure

This is the simplified structure of the xLaDe repository, including only the important core components.

xLaDe/
|-- .github/           CI workflows
|-- assets/            Cryptographic keys, logo, and torrent
|-- bin/               Manual CLI entrypoint 
|-- docs/              Documentation files
|-- experiments/       Projects wrapped by xLaDe
|-- lean-core/         Lean 4 submodule
|-- metrics/           Experiments and CLI metrics 
|-- modes/             Modes for xLaDe CLI
|-- scripts/           Scripts for experiments, CLI and other uses
|-- security/          Security module
|-- xlade/             Source code of CLI       
|-- tests/             Test suite
|-- tools/             Helper tools for more capabilities
|-- README.md          This file

Development

  1. Clone the repository:
git clone https://github.com/LakshitSinghBishtTM/xLaDe.git
cd xLaDe
  1. Create a development environment:
python -m venv venv
source venv/bin/activate
  1. Install xLaDe and dependencies
pip install -e .
pip install pytest isort black flake8
  1. Run test suite and formatting tools
pytest tests/ -v
isort . --check-only
black . --check
flake8 .

Security

Please read SECURITY for information on safely reporting a security vulnerability.
For details regarding the security of the xLaDe project, visit the security/ directory and keep an eye on the released security advisories (DCVEs).


Contributing

We heartily welcome those who want to help us.
Check out our CONTRIBUTING guide if you want to get involved.


License

Copyright (C) 2026 Lakshit Singh Bisht

Licensed under the GNU General Public License v3.0.
See LICENSE for more details.


Note

AI agents must read docs/agent mandatorily and follow its instructions before inspecting, executing, reviewing, modifying, or otherwise interacting with this project.


Metadata

Release files for xlade 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xlade 2.1.0
File Size Uploaded Provenance Actions
xlade-2.1.0.tar.gz 48.7 kB With provenance Details for xlade-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xlade 2.1.0
File Interpreter ABI Platform Actions
xlade-2.1.0-py3-none-any.whl Python 3 none any Details for xlade-2.1.0-py3-none-any.whl

Total release size: 93.2 kB

Release files / xlade-2.1.0.tar.gz

Download URL xlade-2.1.0.tar.gz
Size 48.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d29f02675a241c77f9ae4277e7289e49745a15168369a3b2a0041257bce43a64
BLAKE2b-256 checksum
How to use checksums
45914a2f25db1c8c02788c5d1cb0c4d3b83c221d45944bee99137bdb7ecb7e8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / xlade-2.1.0-py3-none-any.whl

Download URL xlade-2.1.0-py3-none-any.whl
Size 44.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a09769e2407c4f663f021861ad12195ef3330e11660bc187fa909b770a12a547
BLAKE2b-256 checksum
How to use checksums
44e3d499ccaba167943a7643433bed5867f309561b26292d3500a244678f2ffa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for xlade 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xlade-2.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page