Lemma database is a collection of lemmas that users
can supply to a tactic. Users only need to provide
the name of the lemma database to the tactic.
Each lemma database has a name, which is internally stored as a Name.
User can add a lemma to a lemma database (internally, .addLemma),
or combine several existing lemma databases to form a larger
lemma database (internally, .compose), or both.
Note that .compose is dynamic.
- empty : LemDB
- addLemma (lem : Lean.Name) (lemdb : LemDB) : LemDB
- compose (lemdbs : Array Lean.Name) : LemDB
Instances For
Equations
- Auto.instBEqLemDB.beq Auto.LemDB.empty Auto.LemDB.empty = true
- Auto.instBEqLemDB.beq (Auto.LemDB.addLemma a a_1) (Auto.LemDB.addLemma b b_1) = (a == b && Auto.instBEqLemDB.beq a_1 b_1)
- Auto.instBEqLemDB.beq (Auto.LemDB.compose a) (Auto.LemDB.compose b) = (a == b)
- Auto.instBEqLemDB.beq x✝¹ x✝ = false
Instances For
Equations
- Auto.instBEqLemDB = { beq := Auto.instBEqLemDB.beq }
Equations
Equations
Instances For
Instances For
Equations
- Auto.instInhabitedLemDB = { default := Auto.instInhabitedLemDB.default }
Equations
- One or more equations did not get rendered due to their size.
- Auto.instReprLemDB.repr Auto.LemDB.empty prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Auto.LemDB.empty")).group prec✝
Instances For
Equations
- Auto.instReprLemDB = { reprPrec := Auto.instReprLemDB.repr }
@[reducible, inline]
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Auto.declarelemdb = Lean.ParserDescr.node `Auto.declarelemdb 1022 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "#declare_lemdb") (Lean.ParserDescr.const `ident))
Instances For
Equations
- Auto.printlemdb = Lean.ParserDescr.node `Auto.printlemdb 1022 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "#print_lemdb") (Lean.ParserDescr.const `ident))
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.