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.IrreducibleDef

1 declarations and 1 deprecated aliases. Mathlib docs · Source

Irreducible definitions

This file defines an irreducible_def command, which works almost like the def command except that the introduced definition does not reduce to the value. Instead, the command adds a _def lemma which can be used for rewriting.

irreducible_def frobnicate (a b : Nat) :=
  a + b

example : frobnicate a 0 = a := by
  simp [frobnicate_def]

def Lean.Elab.Command.irredDefLemma E1 #

Lean.ParserDescr

Deprecated aliases

NameNew nameSince
Lean.Elab.Command.command_Irreducible_def____2026-11-23