Mathlib PR Guide

•
25
•

Facilitates contributions to the Lean Mathlib4 library by enforcing community PR conventions, commit standards, and workflow practices.

The Mathlib PR skill provides domain-specific intelligence for contributing to mathlib4, the extensive library of formalized mathematics for the Lean theorem prover. It automates adherence to strict commit message formatting, manages GitHub labels via comments, guides the multi-stage merge process involving the Bors bot, and ensures contributors follow authoritative naming and style conventions. This skill is essential for mathematicians and computer scientists looking to streamline their contribution process, minimize review friction, and maintain the high standards of the Lean community.

主な機能

01Direct access and adherence to official Mathlib naming, code, and documentation style guides.
02Performance benchmarking integration using the !bench command trigger.
03Guidance on fork-based workflows and Lean-specific commands like lake exe mk_all.
0425 GitHub stars
05GitHub label management via specialized comment triggers for review status and topics.
06Automated commit message formatting following the <type>(<scope>): <subject> standard.

ユースケース

01Preparing a new mathematical lemma or theorem for submission to the mathlib4 repository.
02Standardizing commit history and metadata for complex mathematical contributions across multiple modules.
03Managing the lifecycle of a pull request from addressing reviewer feedback to final merge.