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.Core.Extensions

47 declarations. Mathlib docs · Source

def Inclusion.InclusionFamily.ctorIdx E1 #

Inclusion.InclusionFamily → ℕ

def Inclusion.InclusionExt.ctorIdx E1 #

Inclusion.InclusionExt → ℕ

def Inclusion.InclusionParamDecl.ctorIdx E1 #

Inclusion.InclusionParamDecl → ℕ

theorem Inclusion.HypothesisExt.mk.inj E1 #

∀ {declName : autoParam Lean.Name Inclusion.HypothesisExt.declName._autoParam} {family userName : Lean.Name}
  {derive : Lean.Expr → Inclusion.HypothesisM Unit} {priority : ℕ}
  {declName_1 : autoParam Lean.Name Inclusion.HypothesisExt.declName._autoParam} {family_1 userName_1 : Lean.Name}
  {derive_1 : Lean.Expr → Inclusion.HypothesisM Unit} {priority_1 : ℕ},
  { declName := declName, family := family, userName := userName, derive := derive, priority := priority } =
      { declName := declName_1, family := family_1, userName := userName_1, derive := derive_1,
        priority := priority_1 } →
    declName = declName_1 ∧ family = family_1 ∧ userName = userName_1 ∧ derive = derive_1 ∧ priority = priority_1

def Inclusion.HypothesisExt.ctorIdx E1 #

Inclusion.HypothesisExt → ℕ

theorem Inclusion.HypothesisExt.mk.injEq E0 #

∀ (declName : autoParam Lean.Name Inclusion.HypothesisExt.declName._autoParam) (family userName : Lean.Name)
  (derive : Lean.Expr → Inclusion.HypothesisM Unit) (priority : ℕ)
  (declName_1 : autoParam Lean.Name Inclusion.HypothesisExt.declName._autoParam) (family_1 userName_1 : Lean.Name)
  (derive_1 : Lean.Expr → Inclusion.HypothesisM Unit) (priority_1 : ℕ),
  ({ declName := declName, family := family, userName := userName, derive := derive, priority := priority } =
      { declName := declName_1, family := family_1, userName := userName_1, derive := derive_1,
        priority := priority_1 }) =
    (declName = declName_1 ∧ family = family_1 ∧ userName = userName_1 ∧ derive = derive_1 ∧ priority = priority_1)

theorem Inclusion.InclusionParamDecl.mk.inj E1 #

∀ {name : Lean.Name} {type : Lean.Expr} {defaultValue? : Option Lean.Expr} {name_1 : Lean.Name} {type_1 : Lean.Expr}
  {defaultValue?_1 : Option Lean.Expr},
  { name := name, type := type, defaultValue? := defaultValue? } =
      { name := name_1, type := type_1, defaultValue? := defaultValue?_1 } →
    name = name_1 ∧ type = type_1 ∧ defaultValue? = defaultValue?_1

theorem Inclusion.InclusionParamDecl.mk.injEq E0 #

∀ (name : Lean.Name) (type : Lean.Expr) (defaultValue? : Option Lean.Expr) (name_1 : Lean.Name) (type_1 : Lean.Expr)
  (defaultValue?_1 : Option Lean.Expr),
  ({ name := name, type := type, defaultValue? := defaultValue? } =
      { name := name_1, type := type_1, defaultValue? := defaultValue?_1 }) =
    (name = name_1 ∧ type = type_1 ∧ defaultValue? = defaultValue?_1)

theorem Inclusion.InclusionExt.mk.injEq E0 #

∀ (declName : autoParam Lean.Name Inclusion.InclusionExt.declName._autoParam) (family userName : Lean.Name)
  (derive : Lean.Expr → Inclusion.InclusionM Inclusion.ExprInclusionBody) (priority : ℕ)
  (declName_1 : autoParam Lean.Name Inclusion.InclusionExt.declName._autoParam) (family_1 userName_1 : Lean.Name)
  (derive_1 : Lean.Expr → Inclusion.InclusionM Inclusion.ExprInclusionBody) (priority_1 : ℕ),
  ({ declName := declName, family := family, userName := userName, derive := derive, priority := priority } =
      { declName := declName_1, family := family_1, userName := userName_1, derive := derive_1,
        priority := priority_1 }) =
    (declName = declName_1 ∧ family = family_1 ∧ userName = userName_1 ∧ derive = derive_1 ∧ priority = priority_1)

theorem Inclusion.InclusionFamily.mk.injEq E0 #

∀ (ref : Lean.Name) (inclusionExt : DiscrTreeExt.EnvExt Inclusion.InclusionExt)
  (hypothesisExt : DiscrTreeExt.EnvExt Inclusion.HypothesisExt) (ref_1 : Lean.Name)
  (inclusionExt_1 : DiscrTreeExt.EnvExt Inclusion.InclusionExt)
  (hypothesisExt_1 : DiscrTreeExt.EnvExt Inclusion.HypothesisExt),
  ({ ref := ref, inclusionExt := inclusionExt, hypothesisExt := hypothesisExt } =
      { ref := ref_1, inclusionExt := inclusionExt_1, hypothesisExt := hypothesisExt_1 }) =
    (ref = ref_1 ∧ inclusionExt = inclusionExt_1 ∧ hypothesisExt = hypothesisExt_1)

theorem Inclusion.InclusionExt.mk.inj E1 #

∀ {declName : autoParam Lean.Name Inclusion.InclusionExt.declName._autoParam} {family userName : Lean.Name}
  {derive : Lean.Expr → Inclusion.InclusionM Inclusion.ExprInclusionBody} {priority : ℕ}
  {declName_1 : autoParam Lean.Name Inclusion.InclusionExt.declName._autoParam} {family_1 userName_1 : Lean.Name}
  {derive_1 : Lean.Expr → Inclusion.InclusionM Inclusion.ExprInclusionBody} {priority_1 : ℕ},
  { declName := declName, family := family, userName := userName, derive := derive, priority := priority } =
      { declName := declName_1, family := family_1, userName := userName_1, derive := derive_1,
        priority := priority_1 } →
    declName = declName_1 ∧ family = family_1 ∧ userName = userName_1 ∧ derive = derive_1 ∧ priority = priority_1

theorem Inclusion.InclusionFamily.mk.inj E1 #

∀ {ref : Lean.Name} {inclusionExt : DiscrTreeExt.EnvExt Inclusion.InclusionExt}
  {hypothesisExt : DiscrTreeExt.EnvExt Inclusion.HypothesisExt} {ref_1 : Lean.Name}
  {inclusionExt_1 : DiscrTreeExt.EnvExt Inclusion.InclusionExt}
  {hypothesisExt_1 : DiscrTreeExt.EnvExt Inclusion.HypothesisExt},
  { ref := ref, inclusionExt := inclusionExt, hypothesisExt := hypothesisExt } =
      { ref := ref_1, inclusionExt := inclusionExt_1, hypothesisExt := hypothesisExt_1 } →
    ref = ref_1 ∧ inclusionExt = inclusionExt_1 ∧ hypothesisExt = hypothesisExt_1

structure Inclusion.InclusionExt E1 #

Type

An extension used by the inclusion tactic to construct ExprInclusionBodys.

ctor Inclusion.InclusionExt.mk E0 #

autoParam Lean.Name Inclusion.InclusionExt.declName._autoParam →
  Lean.Name → Lean.Name → (Lean.Expr → Inclusion.InclusionM Inclusion.ExprInclusionBody) → ℕ → Inclusion.InclusionExt

abbrev Inclusion.InclusionExt.declName E1 #

Inclusion.InclusionExt → Lean.Name

Name of the declaration of the extension.

abbrev Inclusion.InclusionExt.family E1 #

Inclusion.InclusionExt → Lean.Name

The family in which the extension is registered.

abbrev Inclusion.InclusionExt.userName E1 #

Inclusion.InclusionExt → Lean.Name

The user-facing name of the extension.

abbrev Inclusion.InclusionExt.derive E1 #

Inclusion.InclusionExt → Lean.Expr → Inclusion.InclusionM Inclusion.ExprInclusionBody

Attempt to construct an ExprInclusionBody for e.

abbrev Inclusion.InclusionExt.priority E1 #

Inclusion.InclusionExt → ℕ

The priority of the extension. Extensions with higher priority are tried first.

structure Inclusion.HypothesisExt E1 #

Type

An extension used by the inclusion tactic to construct inclusion hypotheses from local declarations.

ctor Inclusion.HypothesisExt.mk E0 #

autoParam Lean.Name Inclusion.HypothesisExt.declName._autoParam →
  Lean.Name → Lean.Name → (Lean.Expr → Inclusion.HypothesisM Unit) → ℕ → Inclusion.HypothesisExt

abbrev Inclusion.HypothesisExt.declName E1 #

Inclusion.HypothesisExt → Lean.Name

Name of the declaration of the extension.

abbrev Inclusion.HypothesisExt.family E1 #

Inclusion.HypothesisExt → Lean.Name

The family in which the extension is registered.

abbrev Inclusion.HypothesisExt.userName E1 #

Inclusion.HypothesisExt → Lean.Name

The user-facing name of the extension.

abbrev Inclusion.HypothesisExt.derive E1 #

Inclusion.HypothesisExt → Lean.Expr → Inclusion.HypothesisM Unit

Attempt to construct inclusion hypotheses from h.

abbrev Inclusion.HypothesisExt.priority E1 #

Inclusion.HypothesisExt → ℕ

The priority of the extension. Extensions with higher priority are tried first.

structure Inclusion.InclusionFamily E1 #

Type

A family of inclusion and hypothesis extensions.

ctor Inclusion.InclusionFamily.mk E0 #

Lean.Name →
  DiscrTreeExt.EnvExt Inclusion.InclusionExt → DiscrTreeExt.EnvExt Inclusion.HypothesisExt → Inclusion.InclusionFamily

abbrev Inclusion.InclusionFamily.ref E1 #

Inclusion.InclusionFamily → Lean.Name

The declaration the family was registered in. Recorded so that modules referring to the family by name still depend on the module registering it.

abbrev Inclusion.InclusionFamily.inclusionExt E1 #

Inclusion.InclusionFamily → DiscrTreeExt.EnvExt Inclusion.InclusionExt

The DiscrTree-indexed collection of inclusion extensions.

abbrev Inclusion.InclusionFamily.hypothesisExt E1 #

Inclusion.InclusionFamily → DiscrTreeExt.EnvExt Inclusion.HypothesisExt

The DiscrTree-indexed collection of hypothesis extensions.

instance Inclusion.instNonemptyInclusionFamily E0 #

Nonempty Inclusion.InclusionFamily

abbrev Inclusion.InclusionFamilies E1 #

Type

A map from family names to registered inclusion families.

opaque Inclusion.inclusionFamiliesRef E1 #

IO.Ref Inclusion.InclusionFamilies

The registry of inclusion families.

def Inclusion.registerInclusionFamily E1 #

Lean.Name → autoParam Lean.Name Inclusion.registerInclusionFamily._auto_1 → IO Inclusion.InclusionFamily

Register an inclusion family.

ref must name the declaration whose initializer runs the registration: it is what getInclusionFamily? records, so that a module naming the family acquires a dependency on the module registering it. The decl_name% default is correct for the usual initialize _ : InclusionFamily ← registerInclusionFamily .. idiom.

def Inclusion.getInclusionFamily? E1 #

Lean.Name → Lean.CoreM (Option Inclusion.InclusionFamily)

If name is the name of an InclusionFamily family then return some family, otherwise return none.

def Inclusion.getInclusionFamily E1 #

Lean.Name → Lean.CoreM Inclusion.InclusionFamily

Return the registered inclusion family named name, or fail if it is not registered.

def Inclusion.getInclusionExtMatches E1 #

Array Lean.Name → Lean.Expr → Lean.MetaM (Array Inclusion.InclusionExt)

Return an array of the inclusion extensions in families whose DiscrTree key matches e, sorted in order of highest to lowest priority.

def Inclusion.getHypothesisExtMatches E1 #

Array Lean.Name → Lean.Expr → Lean.MetaM (Array Inclusion.HypothesisExt)

Return an array of the hypothesis extensions in families whose DiscrTree key matches e, sorted in order of highest to lowest priority.

structure Inclusion.InclusionParamDecl E1 #

Type

A registered named parameter that can be set by the user and used across inclusion and hypothesis extensions.

ctor Inclusion.InclusionParamDecl.mk E0 #

Lean.Name → Lean.Expr → Option Lean.Expr → Inclusion.InclusionParamDecl

abbrev Inclusion.InclusionParamDecl.name E1 #

Inclusion.InclusionParamDecl → Lean.Name

The name of the parameter.

abbrev Inclusion.InclusionParamDecl.type E1 #

Inclusion.InclusionParamDecl → Lean.Expr

The type of the parameter (as an expression).

abbrev Inclusion.InclusionParamDecl.defaultValue? E1 #

Inclusion.InclusionParamDecl → Option Lean.Expr

The default value of the parameter, if present.

abbrev Inclusion.InclusionParams E1 #

Type

The collection of registered inclusion parameters, indexed by name.

def Inclusion.mkInclusionParamDecl E1 #

Lean.Name → Lean.ImportM Inclusion.InclusionParamDecl

Evaluate the declaration n as an InclusionParamDecl.

opaque Inclusion.inclusionParamExt E1 #

Lean.ScopedEnvExtension Lean.Name (Lean.Name × Inclusion.InclusionParamDecl) Inclusion.InclusionParams

Initialize the InclusionParamExt environment extension.