The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Order.Graph.Basic
20 declarations. Mathlib docs · Source
theorem Mathlib.Tactic.Order.Graph.DFSState.mk.injEq E0 #
∀ (visited visited_1 : Std.HashSet ℕ), ({ visited := visited } = { visited := visited_1 }) = (visited = visited_1)
def Mathlib.Tactic.Order.Graph.DFSState.ctorIdx E1 #
Mathlib.Tactic.Order.Graph.DFSState → ℕ
theorem Mathlib.Tactic.Order.Edge.mk.inj E1 #
∀ {src dst : ℕ} {proof : Lean.Expr} {src_1 dst_1 : ℕ} {proof_1 : Lean.Expr},
{ src := src, dst := dst, proof := proof } = { src := src_1, dst := dst_1, proof := proof_1 } →
src = src_1 ∧ dst = dst_1 ∧ proof = proof_1
theorem Mathlib.Tactic.Order.Edge.mk.injEq E0 #
∀ (src dst : ℕ) (proof : Lean.Expr) (src_1 dst_1 : ℕ) (proof_1 : Lean.Expr),
({ src := src, dst := dst, proof := proof } = { src := src_1, dst := dst_1, proof := proof_1 }) =
(src = src_1 ∧ dst = dst_1 ∧ proof = proof_1)
def Mathlib.Tactic.Order.Edge.ctorIdx E1 #
Mathlib.Tactic.Order.Edge → ℕ
theorem Mathlib.Tactic.Order.Graph.DFSState.mk.inj E1 #
∀ {visited visited_1 : Std.HashSet ℕ}, { visited := visited } = { visited := visited_1 } → visited = visited_1
structure Mathlib.Tactic.Order.Edge E1 #
Type
An edge in a graph. In the order tactic, the proof field stores the of
atoms[src] ≤ atoms[dst].
ctor Mathlib.Tactic.Order.Edge.mk E0 #
ℕ → ℕ → Lean.Expr → Mathlib.Tactic.Order.Edge
abbrev Mathlib.Tactic.Order.Edge.src E1 #
Mathlib.Tactic.Order.Edge → ℕ
Source of the edge.
abbrev Mathlib.Tactic.Order.Edge.dst E1 #
Mathlib.Tactic.Order.Edge → ℕ
Destination of the edge.
abbrev Mathlib.Tactic.Order.Edge.proof E1 #
Mathlib.Tactic.Order.Edge → Lean.Expr
Proof of atoms[src] ≤ atoms[dst].
instance Mathlib.Tactic.Order.instToStringEdge E0 #
ToString Mathlib.Tactic.Order.Edge
abbrev Mathlib.Tactic.Order.Graph E1 #
Type
If g is a Graph, then for a vertex with index v, g[v] is an array containing
the edges starting from this vertex.
def Mathlib.Tactic.Order.Graph.addEdge E1 #
Mathlib.Tactic.Order.Graph → Mathlib.Tactic.Order.Edge → Mathlib.Tactic.Order.Graph
Adds an edge to the graph.
def Mathlib.Tactic.Order.Graph.constructLeGraph E1 #
Array Mathlib.Tactic.Order.AtomicFact → Lean.MetaM Mathlib.Tactic.Order.Graph
Constructs a directed Graph using ≤ facts. It ignores all other facts.
structure Mathlib.Tactic.Order.Graph.DFSState E1 #
Type
State for the DFS algorithm.
ctor Mathlib.Tactic.Order.Graph.DFSState.mk E0 #
Std.HashSet ℕ → Mathlib.Tactic.Order.Graph.DFSState
abbrev Mathlib.Tactic.Order.Graph.DFSState.visited E1 #
Mathlib.Tactic.Order.Graph.DFSState → Std.HashSet ℕ
visited.contains v if and only if the algorithm has already entered vertex v.
opaque Mathlib.Tactic.Order.Graph.buildTransitiveLeProofDFS E1 #
Mathlib.Tactic.Order.Graph →
ℕ → ℕ → Lean.Expr → StateT Mathlib.Tactic.Order.Graph.DFSState Lean.MetaM (Option Lean.Expr)
DFS algorithm for constructing a proof that x ≤ y by finding a path from x to y in the
≤-graph.
def Mathlib.Tactic.Order.Graph.buildTransitiveLeProof E1 #
Mathlib.Tactic.Order.Graph → ℕ → ℕ → Mathlib.Tactic.AtomM (Option Lean.Expr)
Given a ≤-graph g, finds a proof of s ≤ t using transitivity.