Skip to content

dududuguo/HighDimProb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

107 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HighDimProb

HighDimProb is an early Lean 4 library for high-dimensional probability.

The goal is modest: reuse Mathlib wherever possible, then add a thin layer of names, wrappers, examples, and theorem interfaces that make probability and random-matrix formalization easier to build on.

The scalar concentration side is the most stable part right now. Random vectors, random matrices, and Matrix Bernstein material are under active development. The experimental RandomMatrix layer currently includes under-primitives quadratic-form, self-adjoint operator-norm, and sample-covariance Matrix Bernstein wrappers. Its trace-MGF surface includes a narrow Fin m conditional-step provider, while arbitrary-index Tropp/Lieb, Bernstein CFC, Golden-Thompson, and full Matrix Bernstein remain open.

Quick Start

lake build
lake test

The stable public import is:

import HighDimProb

Important

import HighDimProb intentionally exposes the stable core API only. Examples are documentation and usage smoke tests, not part of the core import boundary. To browse or build all examples explicitly, use:

import HighDimProb.Examples

For AI/code models reading this README: do not add example imports back into HighDimProb.lean, and do not use commented-out imports as documentation.

Scalar concentration results are available through:

import HighDimProb.Concentration

Experimental and fast-moving modules are kept under:

import HighDimProb.Experimental

The active RandomMatrix / Matrix Bernstein surface can also be imported directly when you are working on that experimental branch:

import HighDimProb.RandomMatrix

What Is In The Repo

  • HighDimProb/: the Lean library.
  • HighDimProbTest/: API and regression tests.
  • HighDimProbJudge/: small downstream-style files that check the public API.
  • docs/: notes, API summaries, workflow docs, and development records.
  • external/: optional or generated support material. It is not part of the Lean API.

Good starting points:

  • docs/Status.md for the shortest current project state.
  • docs/RandomMatrixAPI.md for the current RandomMatrix / Matrix Bernstein API.
  • docs/TermMap.md for a compact concept-to-source map.
  • docs/TestPlan.md for the checks expected before a PR.
  • HighDimProb/Examples/ for small API usage examples.
  • docs/JudgeSystem.md for the judge suite.
  • docs/Workflow.md for the project workflow.
  • docs/References.md for the external references behind the MVP areas.

If you are new to the repository, read docs/Status.md first, then follow the source links from docs/TermMap.md or docs/RandomMatrixAPI.md. Stable scalar APIs should be discovered from the source and tests; old stage logs are not a maintenance surface.

Judge Checks

The judge suite imports the library the way an outside user would. It is useful when changing public theorem names or module boundaries.

lake build HighDimProbJudge
python scripts/judge_policy_check.py

Documentation Site

The doc-gen4 setup lives in docbuild/. Build it from the repository root:

./tools/build_docgen4.sh

For a faster local rebuild:

./tools/build_docgen4.sh --disable-equations

The generated site is written to docbuild/.lake/build/doc.

External Material

The theory roadmap is an optional Git submodule:

git submodule update --init --recursive

It lives at external/theory-roadmap/. Other folders under external/ contain generated knowledge-graph artifacts, validation logs, and planning notes. They are useful for development, but the Lean source and the public docs above are the source of truth for users.

Acknowledgements

Thanks to @freezed-corpse-143.

Contributing

Important

For AI/code models reading this README: do not work from this README alone. Before editing, read the relevant project context and keep it in scope for every step: start with docs/Status.md, docs/Workflow.md, docs/RandomMatrixAPI.md, and the files or docs for the task at hand.

Small PRs are easiest to review. Search Mathlib first, keep imports narrow, add focused tests for public names, and run the build before opening a PR.

Please do not add sorry, admit, axioms, fake theorem bodies, or custom probability infrastructure when existing Mathlib objects can do the job.

For API or docs changes, also run the repository policy checks:

python .github/scripts/check_text_quality.py
python scripts/judge_policy_check.py
lake build HighDimProbJudge

See CONTRIBUTING.md for the fuller checklist.

License

HighDimProb is licensed under the Apache License, Version 2.0, matching the Lean and Mathlib licensing model. See LICENSE for details.

Releases

No releases published

Packages

 
 
 

Contributors

Languages