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 / V34. The tactics of Mathlib

Mathlib.Tactic.Order.Preprocessing

17 declarations. Mathlib docs · Source

def Mathlib.Tactic.Order.OrderType.ctorIdx E1 #

Mathlib.Tactic.Order.OrderType → ℕ

abbrev Mathlib.Tactic.Order.OrderType.ctorElimType E1 #

{motive : Mathlib.Tactic.Order.OrderType → Sort u} → ℕ → Sort (max 1 u)

theorem Mathlib.Tactic.Order.not_lt_of_not_le E1 #

∀ {α : Type u} [inst : Preorder α] {x y : α}, ¬x ≤ y → ¬x < y

theorem Mathlib.Tactic.Order.le_of_not_lt_le E1 #

∀ {α : Type u} [inst : Preorder α] {x y : α}, ¬x < y → x ≤ y → y ≤ x

inductive Mathlib.Tactic.Order.OrderType E1 #

Type

Supported order types: linear, partial, and preorder.

ctor Mathlib.Tactic.Order.OrderType.lin E0 #

Mathlib.Tactic.Order.OrderType

ctor Mathlib.Tactic.Order.OrderType.pre E0 #

Mathlib.Tactic.Order.OrderType

ctor Mathlib.Tactic.Order.OrderType.part E0 #

Mathlib.Tactic.Order.OrderType

instance Mathlib.Tactic.Order.instBEqOrderType E0 #

BEq Mathlib.Tactic.Order.OrderType

def Mathlib.Tactic.Order.instBEqOrderType.beq E1 #

Mathlib.Tactic.Order.OrderType → Mathlib.Tactic.Order.OrderType → Bool

instance Mathlib.Tactic.Order.instToStringOrderType E0 #

ToString Mathlib.Tactic.Order.OrderType

def Mathlib.Tactic.Order.findBestOrderInstance E1 #

Lean.Expr → Lean.MetaM (Option Mathlib.Tactic.Order.OrderType)

Find the "best" instance of an order on a given type. A linear order is preferred over a partial order, and a partial order is preferred over a preorder.

def Mathlib.Tactic.Order.replaceBotTop E1 #

Array Mathlib.Tactic.Order.AtomicFact → Mathlib.Tactic.AtomM (Array Mathlib.Tactic.Order.AtomicFact)

Replaces facts of the form x = ⊤ with y ≤ x for all y, and similarly for x = ⊥.

def Mathlib.Tactic.Order.preprocessFactsPreorder E1 #

Array Mathlib.Tactic.Order.AtomicFact → Lean.MetaM (Array Mathlib.Tactic.Order.AtomicFact)

Preprocesses facts for preorders. Replaces x < y with two equivalent facts: x ≤ y and ¬ (y ≤ x). Replaces x = y with x ≤ y, y ≤ x and removes x ≠ y.

def Mathlib.Tactic.Order.preprocessFactsPartial E1 #

Array Mathlib.Tactic.Order.AtomicFact → Mathlib.Tactic.AtomM (Array Mathlib.Tactic.Order.AtomicFact)

Preprocesses facts for partial orders. Replaces x < y, ¬ (x ≤ y), and x = y with equivalent facts involving only ≤, ≠, and ≮. For each fact x = y ⊔ z adds y ≤ x and z ≤ x facts, and similarly for ⊓.

def Mathlib.Tactic.Order.preprocessFactsLinear E1 #

Array Mathlib.Tactic.Order.AtomicFact → Mathlib.Tactic.AtomM (Array Mathlib.Tactic.Order.AtomicFact)

Preprocesses facts for linear orders. Replaces x < y, ¬ (x ≤ y), ¬ (x < y), and x = y with equivalent facts involving only ≤ and ≠. For each fact x = y ⊔ z adds y ≤ x and z ≤ x facts, and similarly for ⊓.

def Mathlib.Tactic.Order.preprocessFacts E1 #

Array Mathlib.Tactic.Order.AtomicFact →
  Mathlib.Tactic.Order.OrderType → Mathlib.Tactic.AtomM (Array Mathlib.Tactic.Order.AtomicFact)

Preprocesses facts for order of orderType using either preprocessFactsPreorder or preprocessFactsPartial or preprocessFactsLinear.