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.Inclusion.ExtensionAPI.Attr

33 declarations. Mathlib docs · Source

theorem Inclusion.HypArg.mk.injEq E0 #

∀ (elemIdx setIdx proofIdx elemIdx_1 setIdx_1 proofIdx_1 : ℕ),
  ({ elemIdx := elemIdx, setIdx := setIdx, proofIdx := proofIdx } =
      { elemIdx := elemIdx_1, setIdx := setIdx_1, proofIdx := proofIdx_1 }) =
    (elemIdx = elemIdx_1 ∧ setIdx = setIdx_1 ∧ proofIdx = proofIdx_1)

def Inclusion.instInhabitedParamArg.default E1 #

Inclusion.ParamArg

theorem Inclusion.HypArg.mk.inj E1 #

∀ {elemIdx setIdx proofIdx elemIdx_1 setIdx_1 proofIdx_1 : ℕ},
  { elemIdx := elemIdx, setIdx := setIdx, proofIdx := proofIdx } =
      { elemIdx := elemIdx_1, setIdx := setIdx_1, proofIdx := proofIdx_1 } →
    elemIdx = elemIdx_1 ∧ setIdx = setIdx_1 ∧ proofIdx = proofIdx_1

theorem Inclusion.ParamArg.mk.injEq E0 #

∀ (name : Lean.Name) (idx : ℕ) (name_1 : Lean.Name) (idx_1 : ℕ),
  ({ name := name, idx := idx } = { name := name_1, idx := idx_1 }) = (name = name_1 ∧ idx = idx_1)

def Inclusion.HypArg.ctorIdx E1 #

Inclusion.HypArg → ℕ

def Inclusion.ParamArg.ctorIdx E1 #

Inclusion.ParamArg → ℕ

def Inclusion.instInhabitedHypArg.default E1 #

Inclusion.HypArg

theorem Inclusion.ParamArg.mk.inj E1 #

∀ {name : Lean.Name} {idx : ℕ} {name_1 : Lean.Name} {idx_1 : ℕ},
  { name := name, idx := idx } = { name := name_1, idx := idx_1 } → name = name_1 ∧ idx = idx_1

def Inclusion.inclusionParamAttr E1 #

Lean.ParserDescr

Syntax for registering an inclusion parameter using the inclusion_param attribute.

def Inclusion.addInclusionParam E1 #

Lean.Name → Lean.AttributeKind → Lean.AttrM Unit

Add the inclusion parameter declared by declName.

def Inclusion.inclusionExtAttr E1 #

Lean.ParserDescr

Syntax for declaring an inclusion extension using the inclusion_ext attribute.

def Inclusion.addInclusionExt E1 #

Lean.Name → Array (Array Lean.Meta.DiscrTree.Key) → Lean.AttributeKind → Lean.AttrM Unit

Add the inclusion extension declName under keys.

def Inclusion.hypothesisExtAttr E1 #

Lean.ParserDescr

Syntax for declaring a hypothesis extension using the hypothesis_ext attribute.

def Inclusion.addHypothesisExt E1 #

Lean.Name → Array (Array Lean.Meta.DiscrTree.Key) → Lean.AttributeKind → Lean.AttrM Unit

Add the hypothesis extension declName under keys.

structure Inclusion.HypArg E1 #

Type

The argument indices of an element x, a set s, and an inclusion hypothesis x ∈ s in some theorem statement.

ctor Inclusion.HypArg.mk E0 #

ℕ → ℕ → ℕ → Inclusion.HypArg

abbrev Inclusion.HypArg.elemIdx E1 #

Inclusion.HypArg → ℕ

The index of the element argument.

abbrev Inclusion.HypArg.setIdx E1 #

Inclusion.HypArg → ℕ

The index of the set argument.

abbrev Inclusion.HypArg.proofIdx E1 #

Inclusion.HypArg → ℕ

The index of the membership proof argument.

instance Inclusion.instToExprHypArg E0 #

Lean.ToExpr Inclusion.HypArg

instance Inclusion.instInhabitedHypArg E0 #

Inhabited Inclusion.HypArg

def Inclusion.instToExprHypArg.toExpr E1 #

Inclusion.HypArg → Lean.Expr

structure Inclusion.ParamArg E1 #

Type

The name of an inclusion parameter and its index in some theorem statement.

ctor Inclusion.ParamArg.mk E0 #

Lean.Name → ℕ → Inclusion.ParamArg

abbrev Inclusion.ParamArg.name E1 #

Inclusion.ParamArg → Lean.Name

The name of the registered inclusion parameter.

abbrev Inclusion.ParamArg.idx E1 #

Inclusion.ParamArg → ℕ

The index of the corresponding theorem argument.

instance Inclusion.instToExprParamArg E0 #

Lean.ToExpr Inclusion.ParamArg

instance Inclusion.instInhabitedParamArg E0 #

Inhabited Inclusion.ParamArg

def Inclusion.instToExprParamArg.toExpr E1 #

Inclusion.ParamArg → Lean.Expr

def Inclusion.deriveInclusionOp E1 #

Lean.Name →
  Array Inclusion.HypArg → Array Inclusion.ParamArg → Lean.Expr → Inclusion.InclusionM Inclusion.ExprInclusionBody

Apply the inclusion theorem theoremName to e, recursively constructing the inclusion bodies specified by hypArgs and filling the registered parameter arguments specified by paramArgs.

def Inclusion.deriveHypothesisOp E1 #

Lean.Name → ℕ → Array Inclusion.HypArg → Array Inclusion.ParamArg → Lean.Expr → Inclusion.HypothesisM Unit

Apply the hypothesis theorem theoremName to h as its source hypothesis at sourceIdx, recursively constructing the closed inclusion bodies specified by hypArgs and filling the registered parameter arguments specified by paramArgs.

def Inclusion.inclusionOpAttr E1 #

Lean.ParserDescr

Syntax for registering an inclusion extension from a theorem using the inclusion_op attribute.

def Inclusion.hypothesisOpAttr E1 #

Lean.ParserDescr

Syntax for registering a hypothesis extension from a theorem using the hypothesis_op attribute.