The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Explode.Datatypes
36 declarations. Mathlib docs · Source
Explode command: datatypes
This file contains datatypes used by the #explode command and their associated methods.
def Mathlib.Explode.Entry.ctorIdx E1 #
Mathlib.Explode.Entry → ℕ
theorem Mathlib.Explode.Entries.mk.injEq E0 #
∀ (s : Lean.ExprMap Mathlib.Explode.Entry) (l : List Mathlib.Explode.Entry) (s_1 : Lean.ExprMap Mathlib.Explode.Entry)
(l_1 : List Mathlib.Explode.Entry), ({ s := s, l := l } = { s := s_1, l := l_1 }) = (s = s_1 ∧ l = l_1)
theorem Mathlib.Explode.Entry.mk.inj E1 #
∀ {type : Lean.MessageData} {line : Option ℕ} {depth : ℕ} {status : Mathlib.Explode.Status} {thm : Lean.MessageData}
{deps : List (Option ℕ)} {useAsDep : Bool} {type_1 : Lean.MessageData} {line_1 : Option ℕ} {depth_1 : ℕ}
{status_1 : Mathlib.Explode.Status} {thm_1 : Lean.MessageData} {deps_1 : List (Option ℕ)} {useAsDep_1 : Bool},
{ type := type, line := line, depth := depth, status := status, thm := thm, deps := deps, useAsDep := useAsDep } =
{ type := type_1, line := line_1, depth := depth_1, status := status_1, thm := thm_1, deps := deps_1,
useAsDep := useAsDep_1 } →
type = type_1 ∧
line = line_1 ∧ depth = depth_1 ∧ status = status_1 ∧ thm = thm_1 ∧ deps = deps_1 ∧ useAsDep = useAsDep_1
theorem Mathlib.Explode.Entries.mk.inj E1 #
∀ {s : Lean.ExprMap Mathlib.Explode.Entry} {l : List Mathlib.Explode.Entry} {s_1 : Lean.ExprMap Mathlib.Explode.Entry}
{l_1 : List Mathlib.Explode.Entry}, { s := s, l := l } = { s := s_1, l := l_1 } → s = s_1 ∧ l = l_1
def Mathlib.Explode.Status.ctorIdx E1 #
Mathlib.Explode.Status → ℕ
def Mathlib.Explode.Entries.ctorIdx E1 #
Mathlib.Explode.Entries → ℕ
def Mathlib.Explode.instInhabitedEntries.default E1 #
Mathlib.Explode.Entries
abbrev Mathlib.Explode.Status.ctorElimType E1 #
{motive : Mathlib.Explode.Status → Sort u} → ℕ → Sort (max 1 u)
theorem Mathlib.Explode.Entry.mk.injEq E0 #
∀ (type : Lean.MessageData) (line : Option ℕ) (depth : ℕ) (status : Mathlib.Explode.Status) (thm : Lean.MessageData)
(deps : List (Option ℕ)) (useAsDep : Bool) (type_1 : Lean.MessageData) (line_1 : Option ℕ) (depth_1 : ℕ)
(status_1 : Mathlib.Explode.Status) (thm_1 : Lean.MessageData) (deps_1 : List (Option ℕ)) (useAsDep_1 : Bool),
({ type := type, line := line, depth := depth, status := status, thm := thm, deps := deps, useAsDep := useAsDep } =
{ type := type_1, line := line_1, depth := depth_1, status := status_1, thm := thm_1, deps := deps_1,
useAsDep := useAsDep_1 }) =
(type = type_1 ∧
line = line_1 ∧ depth = depth_1 ∧ status = status_1 ∧ thm = thm_1 ∧ deps = deps_1 ∧ useAsDep = useAsDep_1)
def Mathlib.Explode.instInhabitedStatus.default E1 #
Mathlib.Explode.Status
inductive Mathlib.Explode.Status E1 #
Type
How to display pipes (│) for this entry in the Fitch table .
ctor Mathlib.Explode.Status.sintro E0 #
Mathlib.Explode.Status
├ Start intro (top-level)
ctor Mathlib.Explode.Status.intro E0 #
Mathlib.Explode.Status
Entry.depth * │ + ┌ Normal intro
ctor Mathlib.Explode.Status.cintro E0 #
Mathlib.Explode.Status
Entry.depth * │ + ├ Continuation intro
ctor Mathlib.Explode.Status.lam E0 #
Mathlib.Explode.Status
Entry.depth * │
ctor Mathlib.Explode.Status.reg E0 #
Mathlib.Explode.Status
Entry.depth * │
instance Mathlib.Explode.instInhabitedStatus E0 #
Inhabited Mathlib.Explode.Status
structure Mathlib.Explode.Entry E1 #
Type
The row in the Fitch table.
ctor Mathlib.Explode.Entry.mk E0 #
Lean.MessageData →
Option ℕ → ℕ → Mathlib.Explode.Status → Lean.MessageData → List (Option ℕ) → Bool → Mathlib.Explode.Entry
abbrev Mathlib.Explode.Entry.type E1 #
Mathlib.Explode.Entry → Lean.MessageData
A type of this expression as a MessageData. Make sure to use addMessageContext.
abbrev Mathlib.Explode.Entry.line E1 #
Mathlib.Explode.Entry → Option ℕ
The row number, starting from 0. This is set by Entries.add.
abbrev Mathlib.Explode.Entry.depth E1 #
Mathlib.Explode.Entry → ℕ
How many ifs (aka lambda-abstractions) this row is nested under.
abbrev Mathlib.Explode.Entry.status E1 #
Mathlib.Explode.Entry → Mathlib.Explode.Status
What Status this entry has - this only affects how │s are displayed.
abbrev Mathlib.Explode.Entry.thm E1 #
Mathlib.Explode.Entry → Lean.MessageData
What to display in the "theorem applied" column.
Make sure to use addMessageContext if needed.
abbrev Mathlib.Explode.Entry.deps E1 #
Mathlib.Explode.Entry → List (Option ℕ)
Which other lines (aka rows) this row depends on.
none means that the dependency has been filtered out of the table.
abbrev Mathlib.Explode.Entry.useAsDep E1 #
Mathlib.Explode.Entry → Bool
Whether or not to use this in future deps lists. Generally controlled by the select function
passed to explodeCore. Exception: ∀I may ignore this for introduced hypotheses.
def Mathlib.Explode.Entry.line! E1 #
Mathlib.Explode.Entry → ℕ
Get the line for an Entry that has been added to the Entries structure.
structure Mathlib.Explode.Entries E1 #
Type
Instead of simply keeping a list of entries (List Entry), we create a datatype Entries
that allows us to compare expressions faster.
ctor Mathlib.Explode.Entries.mk E0 #
Lean.ExprMap Mathlib.Explode.Entry → List Mathlib.Explode.Entry → Mathlib.Explode.Entries
abbrev Mathlib.Explode.Entries.s E1 #
Mathlib.Explode.Entries → Lean.ExprMap Mathlib.Explode.Entry
Allows us to compare Exprs fast.
abbrev Mathlib.Explode.Entries.l E1 #
Mathlib.Explode.Entries → List Mathlib.Explode.Entry
Simple list of Exprs.
instance Mathlib.Explode.instInhabitedEntries E0 #
Inhabited Mathlib.Explode.Entries
def Mathlib.Explode.Entries.find? E1 #
Mathlib.Explode.Entries → Lean.Expr → Option Mathlib.Explode.Entry
Find a row where Entry.expr == e.
def Mathlib.Explode.Entries.size E1 #
Mathlib.Explode.Entries → ℕ
Length of our entries.
def Mathlib.Explode.Entries.add E1 #
Mathlib.Explode.Entries → Lean.Expr → Mathlib.Explode.Entry → Mathlib.Explode.Entry × Mathlib.Explode.Entries
Add the entry unless it already exists. Sets the line field to the next
available value.
def Mathlib.Explode.Entries.addSynonym E1 #
Mathlib.Explode.Entries → Lean.Expr → Mathlib.Explode.Entry → Mathlib.Explode.Entries
Add a pre-existing entry to the ExprMap for an additional expression.
This is used by let bindings where expr is an fvar.