The areas / V34. The tactics of Mathlib
Mathlib.Tactic.CrossRefAttribute
124 declarations. Mathlib docs · Source
Cross-reference attributes
This file provides attributes for tagging Mathlib results with cross-references to entries in external mathematical databases:
@[stacks TAG]— Stacks Project@[kerodon TAG]— Kerodon@[wikidata QID]— Wikidata@[lmfdb ID]— LMFDB@[pibase <topic> ID]— π-Base databases (by topic)@[dlmf REF]— DLMF@[oeis ID]— OEIS
Each attribute records the cross-reference in an environment extension and appends a link to the declaration's docstring.
The shared infrastructure (Database, Tag, tagExt, addCrossRefDoc,
traceCrossRefs) is database-agnostic; per-database code defines a parser, the
attribute syntax, and the trace command.
Stacks (and Kerodon) parser
Wikidata parser
LMFDB parser
π-Base parser
DLMF parser
OEIS parser
Stacks / Kerodon attribute
Wikidata attribute
LMFDB attribute
π-Base attribute
DLMF attribute
OEIS attribute
def Mathlib.CrossRef.stacksTagParser.formatter E1 #
Lean.PrettyPrinter.Formatter
def Mathlib.CrossRef.wikidataIdParser.formatter E1 #
Lean.PrettyPrinter.Formatter
theorem Mathlib.CrossRef.Tag.mk.injEq E0 #
∀ (declName : Lean.Name) (database : Mathlib.CrossRef.Database) (tag comment : String) (declName_1 : Lean.Name)
(database_1 : Mathlib.CrossRef.Database) (tag_1 comment_1 : String),
({ declName := declName, database := database, tag := tag, comment := comment } =
{ declName := declName_1, database := database_1, tag := tag_1, comment := comment_1 }) =
(declName = declName_1 ∧ database = database_1 ∧ tag = tag_1 ∧ comment = comment_1)
theorem Mathlib.CrossRef.Tag.mk.inj E1 #
∀ {declName : Lean.Name} {database : Mathlib.CrossRef.Database} {tag comment : String} {declName_1 : Lean.Name}
{database_1 : Mathlib.CrossRef.Database} {tag_1 comment_1 : String},
{ declName := declName, database := database, tag := tag, comment := comment } =
{ declName := declName_1, database := database_1, tag := tag_1, comment := comment_1 } →
declName = declName_1 ∧ database = database_1 ∧ tag = tag_1 ∧ comment = comment_1
def Mathlib.CrossRef.Database.ctorIdx E1 #
Mathlib.CrossRef.Database → ℕ
def Mathlib.CrossRef.pibaseIdParser.parenthesizer E1 #
Lean.PrettyPrinter.Parenthesizer
theorem Mathlib.CrossRef.Database.pibase.injEq E0 #
∀ (topic topic_1 : Mathlib.CrossRef.PiBaseTopic),
(Mathlib.CrossRef.Database.pibase topic = Mathlib.CrossRef.Database.pibase topic_1) = (topic = topic_1)
def Mathlib.CrossRef.dlmfIdParser.formatter E1 #
Lean.PrettyPrinter.Formatter
def Mathlib.CrossRef.PiBaseTopic.ctorIdx E1 #
Mathlib.CrossRef.PiBaseTopic → ℕ
def Mathlib.CrossRef.wikidataIdParser.parenthesizer E1 #
Lean.PrettyPrinter.Parenthesizer
def Mathlib.CrossRef.dlmfIdParser.parenthesizer E1 #
Lean.PrettyPrinter.Parenthesizer
def Mathlib.CrossRef.lmfdbIdParser.formatter E1 #
Lean.PrettyPrinter.Formatter
def Mathlib.CrossRef.oeisIdParser.parenthesizer E1 #
Lean.PrettyPrinter.Parenthesizer
def Mathlib.CrossRef.stacksTagParser.parenthesizer E1 #
Lean.PrettyPrinter.Parenthesizer
def Mathlib.CrossRef.lmfdbIdParser.parenthesizer E1 #
Lean.PrettyPrinter.Parenthesizer
def Mathlib.CrossRef.oeisIdParser.formatter E1 #
Lean.PrettyPrinter.Formatter
theorem Mathlib.CrossRef.Database.pibase.inj E1 #
∀ {topic topic_1 : Mathlib.CrossRef.PiBaseTopic},
Mathlib.CrossRef.Database.pibase topic = Mathlib.CrossRef.Database.pibase topic_1 → topic = topic_1
def Mathlib.CrossRef.pibaseIdParser.formatter E1 #
Lean.PrettyPrinter.Formatter
abbrev Mathlib.CrossRef.Database.ctorElimType E1 #
{motive : Mathlib.CrossRef.Database → Sort u} → ℕ → Sort (max 1 u)
def Mathlib.CrossRef.Tag.ctorIdx E1 #
Mathlib.CrossRef.Tag → ℕ
inductive Mathlib.CrossRef.PiBaseTopic E1 #
Type
A topic identifying a π-Base project.
ctor Mathlib.CrossRef.PiBaseTopic.topology E0 #
Mathlib.CrossRef.PiBaseTopic
instance Mathlib.CrossRef.instOrdPiBaseTopic E0 #
Ord Mathlib.CrossRef.PiBaseTopic
def Mathlib.CrossRef.instOrdPiBaseTopic.ord E1 #
Mathlib.CrossRef.PiBaseTopic → Mathlib.CrossRef.PiBaseTopic → Ordering
instance Mathlib.CrossRef.instBEqPiBaseTopic E0 #
BEq Mathlib.CrossRef.PiBaseTopic
def Mathlib.CrossRef.instHashablePiBaseTopic.hash E1 #
Mathlib.CrossRef.PiBaseTopic → UInt64
instance Mathlib.CrossRef.instHashablePiBaseTopic E0 #
Hashable Mathlib.CrossRef.PiBaseTopic
def Mathlib.CrossRef.instBEqPiBaseTopic.beq E1 #
Mathlib.CrossRef.PiBaseTopic → Mathlib.CrossRef.PiBaseTopic → Bool
def Mathlib.CrossRef.PiBaseTopic.urlSubdomain E1 #
Mathlib.CrossRef.PiBaseTopic → String
The string such that https://{topic.urlSubdomain}.pi-base.org is the base URL of the π-Base
project identified by this topic.
def Mathlib.CrossRef.PiBaseTopic.label E1 #
Mathlib.CrossRef.PiBaseTopic → String
The display label used in docstring links and trace output. Used in Database.label.
def Mathlib.CrossRef.PiBaseTopic.shortName E1 #
Mathlib.CrossRef.PiBaseTopic → String
A lowercase short name for the given database. Used in Database.shortName. Useful when
exporting to JSON.
inductive Mathlib.CrossRef.Database E1 #
Type
The supported external databases
ctor Mathlib.CrossRef.Database.dlmf E0 #
Mathlib.CrossRef.Database
ctor Mathlib.CrossRef.Database.kerodon E0 #
Mathlib.CrossRef.Database
ctor Mathlib.CrossRef.Database.lmfdb E0 #
Mathlib.CrossRef.Database
ctor Mathlib.CrossRef.Database.oeis E0 #
Mathlib.CrossRef.Database
ctor Mathlib.CrossRef.Database.pibase E0 #
Mathlib.CrossRef.PiBaseTopic → Mathlib.CrossRef.Database
ctor Mathlib.CrossRef.Database.stacks E0 #
Mathlib.CrossRef.Database
ctor Mathlib.CrossRef.Database.wikidata E0 #
Mathlib.CrossRef.Database
def Mathlib.CrossRef.instBEqDatabase.beq E1 #
Mathlib.CrossRef.Database → Mathlib.CrossRef.Database → Bool
def Mathlib.CrossRef.instOrdDatabase.ord E1 #
Mathlib.CrossRef.Database → Mathlib.CrossRef.Database → Ordering
instance Mathlib.CrossRef.instHashableDatabase E0 #
Hashable Mathlib.CrossRef.Database
def Mathlib.CrossRef.instHashableDatabase.hash E1 #
Mathlib.CrossRef.Database → UInt64
instance Mathlib.CrossRef.instBEqDatabase E0 #
BEq Mathlib.CrossRef.Database
instance Mathlib.CrossRef.instOrdDatabase E0 #
Ord Mathlib.CrossRef.Database
def Mathlib.CrossRef.Database.url E1 #
Mathlib.CrossRef.Database → String → String
The URL for an external database entry, where id is the identifier recorded in Tag.tag.
def Mathlib.CrossRef.Database.label E1 #
Mathlib.CrossRef.Database → String
The display label used in docstring links and trace output.
def Mathlib.CrossRef.Database.shortName E1 #
Mathlib.CrossRef.Database → String
A lowercase short name for the given database. Useful when exporting to JSON.
structure Mathlib.CrossRef.Tag E1 #
Type
A cross-reference from a Mathlib declaration to an entry in an external database.
ctor Mathlib.CrossRef.Tag.mk E0 #
Lean.Name → Mathlib.CrossRef.Database → String → String → Mathlib.CrossRef.Tag
abbrev Mathlib.CrossRef.Tag.declName E1 #
Mathlib.CrossRef.Tag → Lean.Name
The name of the declaration carrying the cross-reference.
abbrev Mathlib.CrossRef.Tag.database E1 #
Mathlib.CrossRef.Tag → Mathlib.CrossRef.Database
The external database the entry belongs to.
abbrev Mathlib.CrossRef.Tag.tag E1 #
Mathlib.CrossRef.Tag → String
The database identifier.
abbrev Mathlib.CrossRef.Tag.comment E1 #
Mathlib.CrossRef.Tag → String
An optional comment supplied with the attribute.
instance Mathlib.CrossRef.instBEqTag E0 #
BEq Mathlib.CrossRef.Tag
def Mathlib.CrossRef.instBEqTag.beq E1 #
Mathlib.CrossRef.Tag → Mathlib.CrossRef.Tag → Bool
instance Mathlib.CrossRef.instHashableTag E0 #
Hashable Mathlib.CrossRef.Tag
def Mathlib.CrossRef.instHashableTag.hash E1 #
Mathlib.CrossRef.Tag → UInt64
opaque Mathlib.CrossRef.tagExt E1 #
Lean.SimplePersistentEnvExtension Mathlib.CrossRef.Tag (Array (Array Mathlib.CrossRef.Tag))
The environment extension storing all cross-references.
addImportedFn is a constant function to avoid a performance overhead during initialization.
def Mathlib.CrossRef.addTagEntry E1 #
{m : Type → Type} → [Lean.MonadEnv m] → Lean.Name → Mathlib.CrossRef.Database → String → String → m Unit
addTagEntry declName db tag comment records a cross-reference for declName in tagExt.
def Mathlib.CrossRef.escapeFormatting E1 #
String → String
Escape punctuation characters in a string so it can be included inline in Markdown or Verso.
def Mathlib.CrossRef.addCrossRefDoc E1 #
Mathlib.CrossRef.Database → Lean.Name → String → String → Lean.CoreM Unit
Append a cross-reference link to the docstring of decl and record it in tagExt.
This is the database-agnostic core of every cross-reference attribute's add handler.
TODO: due to the docstring extension being .async .asyncEnv, this can only add new docstrings
and not replace them. We do not know a good alternative.
See Zulip: https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Cross-reference.20attributes.20don.27t.20change.20the.20docstring/with/631664323
abbrev Mathlib.CrossRef.stacksTagKind E1 #
Lean.SyntaxNodeKind
stacksTag is the node kind of Stacks Project Tags: a sequence of digits and
uppercase letters.
def Mathlib.CrossRef.stacksTagFn E1 #
Lean.Parser.ParserFn
The main parser for Stacks Project Tags: it accepts any sequence of 4 digits or uppercase letters.
def Mathlib.CrossRef.stacksTagNoAntiquot E1 #
Lean.Parser.Parser
The main parser for Stacks Project Tags: it accepts any sequence of 4 digits or uppercase letters.
def Mathlib.CrossRef.stacksTagParser E1 #
Lean.Parser.Parser
The main parser for Stacks Project Tags: it accepts any sequence of 4 digits or uppercase letters.
abbrev Mathlib.CrossRef.wikidataIdKind E1 #
Lean.SyntaxNodeKind
wikidataId is the node kind of Wikidata identifiers: the letter Q followed by digits.
def Mathlib.CrossRef.wikidataIdFn E1 #
Lean.Parser.ParserFn
The main parser for Wikidata identifiers: it accepts Q followed by one or more digits.
def Mathlib.CrossRef.wikidataIdNoAntiquot E1 #
Lean.Parser.Parser
The main parser for Wikidata identifiers: it accepts Q followed by one or more digits.
def Mathlib.CrossRef.wikidataIdParser E1 #
Lean.Parser.Parser
The main parser for Wikidata identifiers: it accepts Q followed by one or more digits.
abbrev Mathlib.CrossRef.lmfdbIdKind E1 #
Lean.SyntaxNodeKind
lmfdbId is the node kind of LMFDB identifiers: lower case words with . in between.
The words can also contain underscores and digits.
def Mathlib.CrossRef.lmfdbIdFn E1 #
Lean.Parser.ParserFn
The main parser for LMFDB identifiers: it accepts lower case words with . in between.
The words can also contain underscores and digits.
def Mathlib.CrossRef.lmfdbIdNoAntiquot E1 #
Lean.Parser.Parser
The main parser for LMFDB identifiers: it accepts lower case words with . in between.
The words can also contain underscores and digits.
def Mathlib.CrossRef.lmfdbIdParser E1 #
Lean.Parser.Parser
The main parser for LMFDB identifiers: it accepts lower case words with . in between.
The words can also contain underscores and digits.
abbrev Mathlib.CrossRef.pibaseIdKind E1 #
Lean.SyntaxNodeKind
pibaseId is the node kind of π-Base identifiers: one of the letters P, S, or T,
followed by exactly six digits.
def Mathlib.CrossRef.pibaseIdFn E1 #
Lean.Parser.ParserFn
The main parser for π-Base identifiers: it accepts canonical property, space, and theorem
identifiers, such as P000001, S000023, and T000010.
def Mathlib.CrossRef.pibaseIdNoAntiquot E1 #
Lean.Parser.Parser
The main parser for π-Base identifiers: it accepts canonical property, space, and theorem
identifiers, such as P000001, S000023, and T000010.
def Mathlib.CrossRef.pibaseIdParser E1 #
Lean.Parser.Parser
The main parser for π-Base identifiers: it accepts canonical property, space, and theorem
identifiers, such as P000001, S000023, and T000010.
abbrev Mathlib.CrossRef.dlmfIdKind E1 #
Lean.SyntaxNodeKind
dlmfId is the node kind of DLMF references:
generally <chapter_no>.<section_no>.E<equation_no> (e.g. 5.4.E1).
See https://dlmf.nist.gov/help/cite for more details on the permalink format.
Note that while underscores are not mentioned in the DLMF permalink table, they are
supported and present in some actual links for equations.
def Mathlib.CrossRef.dlmfIdFn E1 #
Lean.Parser.ParserFn
The main parser for DLMF references:
generally <chapter_no>.<section_no>.E<equation_no> (e.g. 5.4.E1).
See https://dlmf.nist.gov/help/cite for more details on the permalink format.
Note that while underscores are not mentioned in the DLMF permalink table, they are
supported and present in some actual links for equations.
def Mathlib.CrossRef.dlmfIdNoAntiquot E1 #
Lean.Parser.Parser
The main parser for DLMF references:
generally <chapter_no>.<section_no>.E<equation_no> (e.g. 5.4.E1).
See https://dlmf.nist.gov/help/cite for more details on the permalink format.
Note that while underscores are not mentioned in the DLMF permalink table, they are
supported and present in some actual links for equations.
def Mathlib.CrossRef.dlmfIdParser E1 #
Lean.Parser.Parser
The main parser for DLMF references:
generally <chapter_no>.<section_no>.E<equation_no> (e.g. 5.4.E1).
See https://dlmf.nist.gov/help/cite for more details on the permalink format.
Note that while underscores are not mentioned in the DLMF permalink table, they are
supported and present in some actual links for equations.
abbrev Mathlib.CrossRef.oeisIdKind E1 #
Lean.SyntaxNodeKind
oeisId is the node kind of OEIS identifiers: the letter A followed by six digits.
def Mathlib.CrossRef.oeisIdFn E1 #
Lean.Parser.ParserFn
The main parser for OEIS identifiers: it accepts A followed by six digits.
def Mathlib.CrossRef.oeisIdNoAntiquot E1 #
Lean.Parser.Parser
The main parser for OEIS identifiers: it accepts A followed by six digits.
def Mathlib.CrossRef.oeisIdParser E1 #
Lean.Parser.Parser
The main parser for OEIS identifiers: it accepts A followed by six digits.
def Lean.TSyntax.getStacksTag E1 #
Lean.TSyntax Mathlib.CrossRef.stacksTagKind → Lean.CoreM String
Extract the underlying tag as a string from a stacksTag node.
def Lean.TSyntax.getWikidataId E1 #
Lean.TSyntax Mathlib.CrossRef.wikidataIdKind → Lean.CoreM String
Extract the underlying identifier as a string from a wikidataId node.
def Lean.TSyntax.getLmfdbId E1 #
Lean.TSyntax Mathlib.CrossRef.lmfdbIdKind → Lean.CoreM String
Extract the underlying identifier as a string from a lmfdbId node.
def Lean.TSyntax.getPibaseId E1 #
Lean.TSyntax Mathlib.CrossRef.pibaseIdKind → Lean.CoreM String
Extract the underlying identifier as a string from a pibaseId node.
def Lean.TSyntax.getDlmfId E1 #
Lean.TSyntax Mathlib.CrossRef.dlmfIdKind → Lean.CoreM String
Extract the underlying identifier as a string from a dlmfId node.
def Lean.TSyntax.getOeisId E1 #
Lean.TSyntax Mathlib.CrossRef.oeisIdKind → Lean.CoreM String
Extract the underlying identifier as a string from an oeisId node.
def Lean.PrettyPrinter.Formatter.stacksTagNoAntiquot.formatter E1 #
Lean.PrettyPrinter.Formatter
The formatter for Stacks Project Tags syntax.
def Lean.PrettyPrinter.Formatter.wikidataIdNoAntiquot.formatter E1 #
Lean.PrettyPrinter.Formatter
The formatter for Wikidata identifier syntax.
def Lean.PrettyPrinter.Formatter.lmfdbIdNoAntiquot.formatter E1 #
Lean.PrettyPrinter.Formatter
The formatter for LMFDB identifier syntax.
def Lean.PrettyPrinter.Formatter.pibaseIdNoAntiquot.formatter E1 #
Lean.PrettyPrinter.Formatter
The formatter for π-Base identifier syntax.
def Lean.PrettyPrinter.Formatter.dlmfIdNoAntiquot.formatter E1 #
Lean.PrettyPrinter.Formatter
The formatter for DLMF identifier syntax.
def Lean.PrettyPrinter.Formatter.oeisIdNoAntiquot.formatter E1 #
Lean.PrettyPrinter.Formatter
The formatter for OEIS identifier syntax.
def Lean.PrettyPrinter.Parenthesizer.stacksTagAntiquot.parenthesizer E1 #
Lean.PrettyPrinter.Parenthesizer
The parenthesizer for Stacks Project Tags syntax.
def Lean.PrettyPrinter.Parenthesizer.wikidataIdAntiquot.parenthesizer E1 #
Lean.PrettyPrinter.Parenthesizer
The parenthesizer for Wikidata identifier syntax.
def Lean.PrettyPrinter.Parenthesizer.lmfdbIdAntiquot.parenthesizer E1 #
Lean.PrettyPrinter.Parenthesizer
The parenthesizer for LMFDB identifier syntax.
def Lean.PrettyPrinter.Parenthesizer.pibaseIdAntiquot.parenthesizer E1 #
Lean.PrettyPrinter.Parenthesizer
The parenthesizer for π-Base identifier syntax.
def Lean.PrettyPrinter.Parenthesizer.dlmfIdAntiquot.parenthesizer E1 #
Lean.PrettyPrinter.Parenthesizer
The parenthesizer for DLMF identifier syntax.
def Lean.PrettyPrinter.Parenthesizer.oeisIdAntiquot.parenthesizer E1 #
Lean.PrettyPrinter.Parenthesizer
The parenthesizer for OEIS identifier syntax.
def Lean.Parser.Category.stacksTagDB E1 #
Lean.Parser.Category
The syntax category for the database name.
def Mathlib.CrossRef.stacksTagDB.quot E1 #
Lean.ParserDescr
def Mathlib.CrossRef.stacksTagDBKerodon E1 #
Lean.ParserDescr
The syntax for a "kerodon" database identifier in a @[kerodon] attribute.
def Mathlib.CrossRef.stacksTagDBStacks E1 #
Lean.ParserDescr
The syntax for a "stacks" database identifier in a @[stacks] attribute.
def Mathlib.CrossRef.stacksTag E1 #
Lean.ParserDescr
The stacksTag attribute.
Use it as @[kerodon TAG "Optional comment"] or @[stacks TAG "Optional comment"]
depending on the database you are referencing.
The TAG is mandatory and should be a sequence of 4 digits or uppercase letters.
See the Tags page in the Stacks project or Tags page in the Kerodon project for more details.
def Mathlib.CrossRef.wikidataTag E1 #
Lean.ParserDescr
The wikidata attribute.
Use it as @[wikidata Q12345 "Optional comment"] to associate a Mathlib declaration with
the corresponding Wikidata item.
The identifier must be the letter Q followed by one or more digits.
def Mathlib.CrossRef.lmfdbTag E1 #
Lean.ParserDescr
The lmfdb attribute.
Use it as @[lmfdb foo.bar "Optional comment"] to associate a Mathlib declaration with
the corresponding LMFDB item.
def Mathlib.CrossRef.pibaseTopic E1 #
Lean.ParserDescr
The topic identifying a π-Base database. Possible values:
topology
This list will be expanded in the future.
def Mathlib.CrossRef.getPiBaseTopic? E1 #
Lean.TSyntax `Mathlib.CrossRef.pibaseTopic → Option Mathlib.CrossRef.PiBaseTopic
Get the PiBaseTopic from a syntax key.
def Mathlib.CrossRef.pibaseTag E1 #
Lean.ParserDescr
The pibase attribute.
Use it as @[pibase <topic> P000001 "Optional comment"] to associate a Mathlib declaration with
the corresponding π-Base property, space, or theorem.
Each <topic> identifies a different π-Base database. The possible values of <topic> are:
topology
This list will be expanded in the future.
The identifier must start with P, S, or T, followed by exactly six digits.
def Mathlib.CrossRef.dlmfTag E1 #
Lean.ParserDescr
The dlmf attribute.
Use it as @[dlmf 5.4.E1 "Optional comment"] to associate a Mathlib declaration with
the corresponding DLMF item.
def Mathlib.CrossRef.oeisTag E1 #
Lean.ParserDescr
The oeis attribute.
Use it as @[oeis A123456 "Optional comment"] to associate a Mathlib declaration with
the corresponding OEIS item.
The identifier must be the letter A followed by six digits.
def Mathlib.CrossRef.traceCrossRefs E1 #
Mathlib.CrossRef.Database → optParam Bool false → Lean.Elab.Command.CommandElabM Unit
traceCrossRefs db verbose prints the cross-references of database db and
inlines the declaration types if verbose is true.
def Mathlib.CrossRef.stacksTags E1 #
Lean.ParserDescr
#stacks_tags retrieves all declarations that have the stacks attribute.
For each found declaration, it prints a line
'declaration_name' corresponds to tag 'declaration_tag'.
The variant #stacks_tags! also adds the theorem statement (for theorems)
or declaration type (for definitions, structures, instances, etc.) after each summary line.
def Mathlib.CrossRef.kerodonTags E1 #
Lean.ParserDescr
The #kerodon_tags command retrieves all declarations that have the kerodon attribute.
For each found declaration, it prints a line
'declaration_name' corresponds to tag 'declaration_tag'.
The variant #kerodon_tags! also adds the theorem statement (for theorems)
or declaration type (for definitions, structures, instances, etc.) after each summary line.
def Mathlib.CrossRef.wikidataTags E1 #
Lean.ParserDescr
The #wikidata_tags command retrieves all declarations that have the wikidata attribute.
For each found declaration, it prints a line
'declaration_name' corresponds to tag 'declaration_tag'.
The variant #wikidata_tags! also adds the theorem statement (for theorems)
or declaration type (for definitions, structures, instances, etc.) after each summary line.
def Mathlib.CrossRef.lmfdbTags E1 #
Lean.ParserDescr
The #lmfdb_tags command retrieves all declarations that have the lmfdb attribute.
For each found declaration, it prints a line
'declaration_name' corresponds to tag 'declaration_tag'.
The variant #lmfdb_tags! also adds the theorem statement (for theorems)
or declaration type (for definitions, structures, instances, etc.) after each summary line.
def Mathlib.CrossRef.pibaseTags E1 #
Lean.ParserDescr
The #pibase_tags topic command retrieves all declarations that have the pibase attribute
with the given topic.
For each found declaration, it prints a line
'declaration_name' corresponds to tag 'declaration_tag'.
The variant #pibase_tags! topic also adds the theorem statement (for theorems)
or declaration type (for definitions, structures, instances, etc.) after each summary line.
def Mathlib.CrossRef.dlmfTags E1 #
Lean.ParserDescr
The #dlmf_tags command retrieves all declarations that have the dlmf attribute.
For each found declaration, it prints a line
'declaration_name' corresponds to tag 'declaration_tag'.
The variant #dlmf_tags! also adds the theorem statement (for theorems)
or declaration type (for definitions, structures, instances, etc.) after each summary line.
def Mathlib.CrossRef.oeisTags E1 #
Lean.ParserDescr
The #oeis_tags command retrieves all declarations that have the oeis attribute.
For each found declaration, it prints a line
'declaration_name' corresponds to tag 'declaration_tag'.
The variant #oeis_tags! also adds the theorem statement (for theorems)
or declaration type (for definitions, structures, instances, etc.) after each summary line.