The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V34. The tactics of Mathlib

Mathlib.Tactic.OfNat

1 declarations. Mathlib docs · Source

The ofNat() macro

def «termOfNat(_)» E1 #

Lean.ParserDescr

This macro is a shorthand for OfNat.ofNat combined with no_index.

When writing lemmas about OfNat.ofNat, the term needs to be wrapped in no_index so as not to confuse simp, as no_index (OfNat.ofNat n).

Some discussion is on Zulip here.