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 / V01. The language of Mathlib

Mathlib.Util.Simp

1 declarations. Mathlib docs · Source

Additional simp utilities

This file adds additional tools for metaprogramming with the simp tactic

def Lean.Meta.Simp.Methods.dischargeQ? E1 #

Lean.Meta.Simp.Methods → (a : Q(Prop)) → Lean.Meta.SimpM (Option Q(«$a»))

Qq version of Lean.Meta.Simp.Methods.discharge?, which avoids having to use ~q matching on the proof expression returned by discharge?

dischargeQ? (a : Q(Prop)) attempts to prove a using the discharger, returning some (pf : Q(a)) if a proof is found and none otherwise.