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.Bound.Attribute

7 declarations. Mathlib docs · Source

The bound attribute

Any lemma tagged with @[bound] is registered as an apply rule for the bound tactic, by converting it to either norm apply or safe apply <priority>. The classification is based on the number and types of the lemma's hypotheses.

def Mathlib.Tactic.Bound.isZero E1 #

{u : Lean.Level} → {α : Q(Type u)} → Q(«$α») → Lean.MetaM Bool

Check if an expression is zero

def Mathlib.Tactic.Bound.ineqPriority E1 #

{u : Lean.Level} → {α : Q(Type u)} → Q(«$α») → Q(«$α») → Lean.MetaM ℕ

Map the arguments of an inequality expression to a score

opaque Mathlib.Tactic.Bound.hypPriority E1 #

Q(Prop) → Lean.MetaM ℕ

Map a hypothesis type to a score

def Mathlib.Tactic.Bound.typePriority E1 #

Lean.Name → Lean.Expr → Lean.MetaM ℕ

Map a type to a score

def Mathlib.Tactic.Bound.declPriority E1 #

Lean.Name → Lean.MetaM ℕ

Map a theorem decl to a score (0 means norm apply, 0 < means safe apply)

def Mathlib.Tactic.Bound.scoreToConfig E1 #

Lean.Name → ℕ → Aesop.Frontend.RuleConfig

Map a score to either norm apply or safe apply <priority>

def Mathlib.Tactic.Bound.attrBound_forward E1 #

Lean.ParserDescr

Attribute for forward rules for the bound tactic.

@[bound_forward] lemmas should produce inequalities given other hypotheses that might be in the context. A typical example is exposing an inequality field of a structure, such as HasPowerSeriesOnBall.r_pos.