58

/ 100

GradeF

Strong community interest, but tests, CI, or docs need work.

Higher than 42% of 5,156 graded repos

The math library of Lean 4

Lean3,484Apache-2.01mo ago

A low grade is a to-do list, not a judgment of your code

Most gaps here are documentation, tests, and setup, not the code itself. Closing your top 3 gaps alone would lift this repo to B (83).

See your top fixes
Now
F
58
Potential
B
83

Top fixes

Highest-impact changes first, ranked by point weight

11 to address
  1. 1
    Tests18pt

    Add automated tests. They prove the code works and give contributors confidence to make changes.

  2. 2
    CI/CD14pt

    Add a step like `run: npm test`, `run: pytest`, or `run: tox` to your workflow file.

  3. 3
    CI/CD14pt

    Add a lint step to catch style issues automatically.

  4. 4
    CI/CD14pt

    Add `tsc --noEmit`, `mypy`, or `cargo check` to catch type errors before they merge.

Working through the fixes? Let every push regrade itself.

The free GitHub App rescans this repo on every push and posts the grade as a commit check, so the score climbs without coming back to rescan by hand.

Install the GitHub App

Scorecard

Every check, grouped by category and sorted worst-first

Documentation

94

Contributing guide5pt77

CONTRIBUTING guide found.

Install and run instructions9pt90

README documents how to install the project.

README12pt100

README is present.

License6pt100

Licensed under Apache-2.0.

Engineering

31

Tests18pt0

No tests detected anywhere in the repository.

Add automated tests. They prove the code works and give contributors confidence to make changes.

Linting and formatting5pt0

No linter or formatter config found.

Add a linter config such as .eslintrc.json, .prettierrc, ruff.toml, or .golangci.yml to enforce consistent code style.

Reproducibility6pt22

No dependency lockfile found (−70 pts).

Commit the lockfile for this project's package manager so installs produce the same dependency versions everywhere.

CI/CD14pt57

CI is configured (.github/workflows/build_fork.yml).

Issue and PR templates6pt100

Issue or PR templates present.

Project health

68

Dependency manifest6pt0

No dependency manifest detected at root.

Add a manifest (package.json, pyproject.toml, Cargo.toml, go.mod, etc.) so others can install dependencies in one command.

Repository metadata5pt100

Repository has a description.

Activity5pt100

Actively maintained (pushed within the last month).

Housekeeping3pt100

.gitignore present.

Repository health signals

Activity, community, and responsiveness at scan time

Activity

  • 839 / 2959
    Commits (30d / 90d)
  • 1,429
    Forks
  • 15
    Releaseslatest 3mo ago

Community

  • 75% - Good
    Community health
  • 15 bus factor
    authors own >50% of commits
  • 3,484
    Watchers

Responsiveness

  • 1d 21h
    Median issue response
  • 3d 20h
    Median PR merge time
  • 2,990
    Open issues
Repository files28 root entries
  • .devcontainer
    Good: Environment pinned via .devcontainer/Dockerfile.
  • .docker
  • .github
    Good: CONTRIBUTING guide found.
    Issue: CONTRIBUTING guide contents could not be read (−28 pts vs a readable file).Fix: Move the file to the repo root or docs/CONTRIBUTING.md so its setup, style, test, and PR sections can be graded.
    Good: CI is configured (.github/workflows/build_fork.yml).
    Good: Dependabot configured for github-actions.
    Good: Issue or PR templates present.
  • .vscode
  • Archive
  • Cache
    Good: Security policy present.
  • Counterexamples
  • docs
  • DownstreamTest
  • Mathlib
  • MathlibTest
  • scripts
  • widget
  • .gitignore
    Good: .gitignore present.
  • .gitpod.yml
  • .pre-commit-config.yaml
  • Archive.lean
  • bors.toml
  • CITATION.md
  • CODE_OF_CONDUCT.md
    Good: Code of conduct present.
  • Counterexamples.lean
  • docs.lean
  • lake-manifest.json
  • lakefile.lean
  • lean-toolchain
  • LICENSE
    Good: Licensed under Apache-2.0.
  • Mathlib.lean
  • README.md
    Good: README is present.
    Good: README is well structured with multiple sections.
    Good: README includes screenshots or visuals. Great for first impressions.
    Good: README has code examples.
    Good: README links to a live demo or deployed app.
    Good: README includes status badges.
    Good: README documents how to install the project.
    Good: README documents how to run the project.
RepoGrade badge preview

Add this badge to your README

It updates automatically each time the repo is re-graded.

[![RepoGrade](https://www.repo-grade.com/api/badge/leanprover-community/mathlib4)](https://www.repo-grade.com/report/leanprover-community/mathlib4)

More graded Lean repos