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.FunProp.Theorems

124 declarations. Mathlib docs · Source

fun_prop environment extensions storing theorems for fun_prop

def Mathlib.Meta.FunProp.LambdaTheorems.ctorIdx E1 #

Mathlib.Meta.FunProp.LambdaTheorems → ℕ

def Mathlib.Meta.FunProp.LambdaTheorem.ctorIdx E1 #

Mathlib.Meta.FunProp.LambdaTheorem → ℕ

theorem Mathlib.Meta.FunProp.FunctionTheorems.mk.inj E1 #

∀
  {theorems theorems_1 :
    Std.TreeMap Lean.Name (Std.TreeMap Lean.Name (Array Mathlib.Meta.FunProp.FunctionTheorem) Lean.Name.quickCmp)
      Lean.Name.quickCmp},
  { theorems := theorems } = { theorems := theorems_1 } → theorems = theorems_1

def Mathlib.Meta.FunProp.instInhabitedFunctionTheorems.default E1 #

Mathlib.Meta.FunProp.FunctionTheorems

theorem Mathlib.Meta.FunProp.LambdaTheoremArgs.comp.injEq E0 #

∀ (fArgId gArgId fArgId_1 gArgId_1 : ℕ),
  (Mathlib.Meta.FunProp.LambdaTheoremArgs.comp fArgId gArgId =
      Mathlib.Meta.FunProp.LambdaTheoremArgs.comp fArgId_1 gArgId_1) =
    (fArgId = fArgId_1 ∧ gArgId = gArgId_1)

def Mathlib.Meta.FunProp.instInhabitedLambdaTheoremArgs.default E1 #

Mathlib.Meta.FunProp.LambdaTheoremArgs

def Mathlib.Meta.FunProp.LambdaTheoremArgs.ctorIdx E1 #

Mathlib.Meta.FunProp.LambdaTheoremArgs → ℕ

theorem Mathlib.Meta.FunProp.Theorem.transition.injEq E0 #

∀ (thm thm_1 : Mathlib.Meta.FunProp.GeneralTheorem),
  (Mathlib.Meta.FunProp.Theorem.transition thm = Mathlib.Meta.FunProp.Theorem.transition thm_1) = (thm = thm_1)

def Mathlib.Meta.FunProp.instInhabitedLambdaTheoremType.default E1 #

Mathlib.Meta.FunProp.LambdaTheoremType

abbrev Mathlib.Meta.FunProp.TheoremForm.ctorElimType E1 #

{motive : Mathlib.Meta.FunProp.TheoremForm → Sort u} → ℕ → Sort (max 1 u)

theorem Mathlib.Meta.FunProp.FunctionTheorems.mk.injEq E0 #

∀
  (theorems theorems_1 :
    Std.TreeMap Lean.Name (Std.TreeMap Lean.Name (Array Mathlib.Meta.FunProp.FunctionTheorem) Lean.Name.quickCmp)
      Lean.Name.quickCmp),
  ({ theorems := theorems } = { theorems := theorems_1 }) = (theorems = theorems_1)

def Mathlib.Meta.FunProp.TheoremForm.ctorIdx E1 #

Mathlib.Meta.FunProp.TheoremForm → ℕ

theorem Mathlib.Meta.FunProp.LambdaTheorem.mk.injEq E0 #

∀ (funPropName thmName : Lean.Name) (thmArgs : Mathlib.Meta.FunProp.LambdaTheoremArgs)
  (funPropName_1 thmName_1 : Lean.Name) (thmArgs_1 : Mathlib.Meta.FunProp.LambdaTheoremArgs),
  ({ funPropName := funPropName, thmName := thmName, thmArgs := thmArgs } =
      { funPropName := funPropName_1, thmName := thmName_1, thmArgs := thmArgs_1 }) =
    (funPropName = funPropName_1 ∧ thmName = thmName_1 ∧ thmArgs = thmArgs_1)

theorem Mathlib.Meta.FunProp.Theorem.transition.inj E1 #

∀ {thm thm_1 : Mathlib.Meta.FunProp.GeneralTheorem},
  Mathlib.Meta.FunProp.Theorem.transition thm = Mathlib.Meta.FunProp.Theorem.transition thm_1 → thm = thm_1

abbrev Mathlib.Meta.FunProp.LambdaTheoremType.ctorElimType E1 #

{motive : Mathlib.Meta.FunProp.LambdaTheoremType → Sort u} → ℕ → Sort (max 1 u)

abbrev Mathlib.Meta.FunProp.LambdaTheoremArgs.ctorElimType E1 #

{motive : Mathlib.Meta.FunProp.LambdaTheoremArgs → Sort u} → ℕ → Sort (max 1 u)

theorem Mathlib.Meta.FunProp.FunctionTheorem.mk.inj E1 #

∀ {funPropName : Lean.Name} {thmOrigin funOrigin : Mathlib.Meta.FunProp.Origin} {mainArgs : Array ℕ}
  {appliedArgs priority : ℕ} {form : Mathlib.Meta.FunProp.TheoremForm} {funPropName_1 : Lean.Name}
  {thmOrigin_1 funOrigin_1 : Mathlib.Meta.FunProp.Origin} {mainArgs_1 : Array ℕ} {appliedArgs_1 priority_1 : ℕ}
  {form_1 : Mathlib.Meta.FunProp.TheoremForm},
  { funPropName := funPropName, thmOrigin := thmOrigin, funOrigin := funOrigin, mainArgs := mainArgs,
        appliedArgs := appliedArgs, priority := priority, form := form } =
      { funPropName := funPropName_1, thmOrigin := thmOrigin_1, funOrigin := funOrigin_1, mainArgs := mainArgs_1,
        appliedArgs := appliedArgs_1, priority := priority_1, form := form_1 } →
    funPropName = funPropName_1 ∧
      thmOrigin = thmOrigin_1 ∧
        funOrigin = funOrigin_1 ∧
          mainArgs = mainArgs_1 ∧ appliedArgs = appliedArgs_1 ∧ priority = priority_1 ∧ form = form_1

def Mathlib.Meta.FunProp.instInhabitedLambdaTheorems.default E1 #

Mathlib.Meta.FunProp.LambdaTheorems

def Mathlib.Meta.FunProp.instInhabitedTheoremForm.default E1 #

Mathlib.Meta.FunProp.TheoremForm

abbrev Mathlib.Meta.FunProp.Theorem.ctorElimType E1 #

{motive : Mathlib.Meta.FunProp.Theorem → Sort u} → ℕ → Sort (max 1 u)

theorem Mathlib.Meta.FunProp.LambdaTheorems.mk.inj E1 #

∀
  {theorems theorems_1 :
    Std.HashMap (Lean.Name × Mathlib.Meta.FunProp.LambdaTheoremType) (Array Mathlib.Meta.FunProp.LambdaTheorem)},
  { theorems := theorems } = { theorems := theorems_1 } → theorems = theorems_1

theorem Mathlib.Meta.FunProp.FunctionTheorem.mk.injEq E0 #

∀ (funPropName : Lean.Name) (thmOrigin funOrigin : Mathlib.Meta.FunProp.Origin) (mainArgs : Array ℕ)
  (appliedArgs priority : ℕ) (form : Mathlib.Meta.FunProp.TheoremForm) (funPropName_1 : Lean.Name)
  (thmOrigin_1 funOrigin_1 : Mathlib.Meta.FunProp.Origin) (mainArgs_1 : Array ℕ) (appliedArgs_1 priority_1 : ℕ)
  (form_1 : Mathlib.Meta.FunProp.TheoremForm),
  ({ funPropName := funPropName, thmOrigin := thmOrigin, funOrigin := funOrigin, mainArgs := mainArgs,
        appliedArgs := appliedArgs, priority := priority, form := form } =
      { funPropName := funPropName_1, thmOrigin := thmOrigin_1, funOrigin := funOrigin_1, mainArgs := mainArgs_1,
        appliedArgs := appliedArgs_1, priority := priority_1, form := form_1 }) =
    (funPropName = funPropName_1 ∧
      thmOrigin = thmOrigin_1 ∧
        funOrigin = funOrigin_1 ∧
          mainArgs = mainArgs_1 ∧ appliedArgs = appliedArgs_1 ∧ priority = priority_1 ∧ form = form_1)

theorem Mathlib.Meta.FunProp.Theorem.function.injEq E0 #

∀ (thm thm_1 : Mathlib.Meta.FunProp.FunctionTheorem),
  (Mathlib.Meta.FunProp.Theorem.function thm = Mathlib.Meta.FunProp.Theorem.function thm_1) = (thm = thm_1)

theorem Mathlib.Meta.FunProp.LambdaTheorem.mk.inj E1 #

∀ {funPropName thmName : Lean.Name} {thmArgs : Mathlib.Meta.FunProp.LambdaTheoremArgs}
  {funPropName_1 thmName_1 : Lean.Name} {thmArgs_1 : Mathlib.Meta.FunProp.LambdaTheoremArgs},
  { funPropName := funPropName, thmName := thmName, thmArgs := thmArgs } =
      { funPropName := funPropName_1, thmName := thmName_1, thmArgs := thmArgs_1 } →
    funPropName = funPropName_1 ∧ thmName = thmName_1 ∧ thmArgs = thmArgs_1

theorem Mathlib.Meta.FunProp.LambdaTheoremArgs.comp.inj E1 #

∀ {fArgId gArgId fArgId_1 gArgId_1 : ℕ},
  Mathlib.Meta.FunProp.LambdaTheoremArgs.comp fArgId gArgId =
      Mathlib.Meta.FunProp.LambdaTheoremArgs.comp fArgId_1 gArgId_1 →
    fArgId = fArgId_1 ∧ gArgId = gArgId_1

theorem Mathlib.Meta.FunProp.Theorem.mor.inj E1 #

∀ {thm thm_1 : Mathlib.Meta.FunProp.GeneralTheorem},
  Mathlib.Meta.FunProp.Theorem.mor thm = Mathlib.Meta.FunProp.Theorem.mor thm_1 → thm = thm_1

theorem Mathlib.Meta.FunProp.Theorem.lam.inj E1 #

∀ {thm thm_1 : Mathlib.Meta.FunProp.LambdaTheorem},
  Mathlib.Meta.FunProp.Theorem.lam thm = Mathlib.Meta.FunProp.Theorem.lam thm_1 → thm = thm_1

def Mathlib.Meta.FunProp.instInhabitedLambdaTheorem.default E1 #

Mathlib.Meta.FunProp.LambdaTheorem

def Mathlib.Meta.FunProp.FunctionTheorems.ctorIdx E1 #

Mathlib.Meta.FunProp.FunctionTheorems → ℕ

theorem Mathlib.Meta.FunProp.LambdaTheorems.mk.injEq E0 #

∀
  (theorems theorems_1 :
    Std.HashMap (Lean.Name × Mathlib.Meta.FunProp.LambdaTheoremType) (Array Mathlib.Meta.FunProp.LambdaTheorem)),
  ({ theorems := theorems } = { theorems := theorems_1 }) = (theorems = theorems_1)

def Mathlib.Meta.FunProp.FunctionTheorem.ctorIdx E1 #

Mathlib.Meta.FunProp.FunctionTheorem → ℕ

theorem Mathlib.Meta.FunProp.Theorem.lam.injEq E0 #

∀ (thm thm_1 : Mathlib.Meta.FunProp.LambdaTheorem),
  (Mathlib.Meta.FunProp.Theorem.lam thm = Mathlib.Meta.FunProp.Theorem.lam thm_1) = (thm = thm_1)

def Mathlib.Meta.FunProp.Theorem.ctorIdx E1 #

Mathlib.Meta.FunProp.Theorem → ℕ

theorem Mathlib.Meta.FunProp.Theorem.mor.injEq E0 #

∀ (thm thm_1 : Mathlib.Meta.FunProp.GeneralTheorem),
  (Mathlib.Meta.FunProp.Theorem.mor thm = Mathlib.Meta.FunProp.Theorem.mor thm_1) = (thm = thm_1)

def Mathlib.Meta.FunProp.LambdaTheoremType.ctorIdx E1 #

Mathlib.Meta.FunProp.LambdaTheoremType → ℕ

theorem Mathlib.Meta.FunProp.Theorem.function.inj E1 #

∀ {thm thm_1 : Mathlib.Meta.FunProp.FunctionTheorem},
  Mathlib.Meta.FunProp.Theorem.function thm = Mathlib.Meta.FunProp.Theorem.function thm_1 → thm = thm_1

def Mathlib.Meta.FunProp.instInhabitedFunctionTheorem.default E1 #

Mathlib.Meta.FunProp.FunctionTheorem

inductive Mathlib.Meta.FunProp.LambdaTheoremArgs E1 #

Type

Tag for one of the 5 basic lambda theorems, that also hold extra data for composition theorem

ctor Mathlib.Meta.FunProp.LambdaTheoremArgs.id E0 #

Mathlib.Meta.FunProp.LambdaTheoremArgs

Identity theorem e.g. Continuous fun x ↦ x

ctor Mathlib.Meta.FunProp.LambdaTheoremArgs.const E0 #

Mathlib.Meta.FunProp.LambdaTheoremArgs

Constant theorem e.g. Continuous fun x ↦ y

ctor Mathlib.Meta.FunProp.LambdaTheoremArgs.apply E0 #

Mathlib.Meta.FunProp.LambdaTheoremArgs

Apply theorem e.g. Continuous fun (f : (x : X) → Y x ↦ f x)

ctor Mathlib.Meta.FunProp.LambdaTheoremArgs.comp E0 #

ℕ → ℕ → Mathlib.Meta.FunProp.LambdaTheoremArgs

Composition theorem e.g. Continuous f → Continuous g → Continuous fun x ↦ f (g x)

The numbers fArgId and gArgId store the argument index for f and g in the composition theorem.

ctor Mathlib.Meta.FunProp.LambdaTheoremArgs.pi E0 #

Mathlib.Meta.FunProp.LambdaTheoremArgs

Pi theorem e.g. ∀ y, Continuous (f · y) → Continuous fun x y ↦ f x y

def Mathlib.Meta.FunProp.instBEqLambdaTheoremArgs.beq E1 #

Mathlib.Meta.FunProp.LambdaTheoremArgs → Mathlib.Meta.FunProp.LambdaTheoremArgs → Bool

instance Mathlib.Meta.FunProp.instBEqLambdaTheoremArgs E0 #

BEq Mathlib.Meta.FunProp.LambdaTheoremArgs

instance Mathlib.Meta.FunProp.instInhabitedLambdaTheoremArgs E0 #

Inhabited Mathlib.Meta.FunProp.LambdaTheoremArgs

instance Mathlib.Meta.FunProp.instHashableLambdaTheoremArgs E0 #

Hashable Mathlib.Meta.FunProp.LambdaTheoremArgs

def Mathlib.Meta.FunProp.instReprLambdaTheoremArgs.repr E1 #

Mathlib.Meta.FunProp.LambdaTheoremArgs → ℕ → Std.Format

instance Mathlib.Meta.FunProp.instReprLambdaTheoremArgs E0 #

Repr Mathlib.Meta.FunProp.LambdaTheoremArgs

def Mathlib.Meta.FunProp.instHashableLambdaTheoremArgs.hash E1 #

Mathlib.Meta.FunProp.LambdaTheoremArgs → UInt64

inductive Mathlib.Meta.FunProp.LambdaTheoremType E1 #

Type

Tag for one of the 5 basic lambda theorems

ctor Mathlib.Meta.FunProp.LambdaTheoremType.id E0 #

Mathlib.Meta.FunProp.LambdaTheoremType

Identity theorem e.g. Continuous fun x ↦ x

ctor Mathlib.Meta.FunProp.LambdaTheoremType.const E0 #

Mathlib.Meta.FunProp.LambdaTheoremType

Constant theorem e.g. Continuous fun x ↦ y

ctor Mathlib.Meta.FunProp.LambdaTheoremType.apply E0 #

Mathlib.Meta.FunProp.LambdaTheoremType

Apply theorem e.g. Continuous fun (f : (x : X) → Y x ↦ f x)

ctor Mathlib.Meta.FunProp.LambdaTheoremType.comp E0 #

Mathlib.Meta.FunProp.LambdaTheoremType

Composition theorem e.g. Continuous f → Continuous g → Continuous fun x ↦ f (g x)

ctor Mathlib.Meta.FunProp.LambdaTheoremType.pi E0 #

Mathlib.Meta.FunProp.LambdaTheoremType

Pi theorem e.g. ∀ y, Continuous (f · y) → Continuous fun x y ↦ f x y

instance Mathlib.Meta.FunProp.instReprLambdaTheoremType E0 #

Repr Mathlib.Meta.FunProp.LambdaTheoremType

def Mathlib.Meta.FunProp.instHashableLambdaTheoremType.hash E1 #

Mathlib.Meta.FunProp.LambdaTheoremType → UInt64

def Mathlib.Meta.FunProp.instBEqLambdaTheoremType.beq E1 #

Mathlib.Meta.FunProp.LambdaTheoremType → Mathlib.Meta.FunProp.LambdaTheoremType → Bool

instance Mathlib.Meta.FunProp.instInhabitedLambdaTheoremType E0 #

Inhabited Mathlib.Meta.FunProp.LambdaTheoremType

instance Mathlib.Meta.FunProp.instHashableLambdaTheoremType E0 #

Hashable Mathlib.Meta.FunProp.LambdaTheoremType

instance Mathlib.Meta.FunProp.instBEqLambdaTheoremType E0 #

BEq Mathlib.Meta.FunProp.LambdaTheoremType

def Mathlib.Meta.FunProp.instReprLambdaTheoremType.repr E1 #

Mathlib.Meta.FunProp.LambdaTheoremType → ℕ → Std.Format

def Mathlib.Meta.FunProp.LambdaTheoremArgs.type E1 #

Mathlib.Meta.FunProp.LambdaTheoremArgs → Mathlib.Meta.FunProp.LambdaTheoremType

Convert LambdaTheoremArgs to LambdaTheoremType.

def Mathlib.Meta.FunProp.detectLambdaTheoremArgs E1 #

Lean.Expr → Array Lean.Expr → Lean.MetaM (Option Mathlib.Meta.FunProp.LambdaTheoremArgs)

Decides whether f is a function corresponding to one of the lambda theorems.

structure Mathlib.Meta.FunProp.LambdaTheorem E1 #

Type

Structure holding information about lambda theorem.

ctor Mathlib.Meta.FunProp.LambdaTheorem.mk E0 #

Lean.Name → Lean.Name → Mathlib.Meta.FunProp.LambdaTheoremArgs → Mathlib.Meta.FunProp.LambdaTheorem

abbrev Mathlib.Meta.FunProp.LambdaTheorem.funPropName E1 #

Mathlib.Meta.FunProp.LambdaTheorem → Lean.Name

Name of function property

abbrev Mathlib.Meta.FunProp.LambdaTheorem.thmName E1 #

Mathlib.Meta.FunProp.LambdaTheorem → Lean.Name

Name of lambda theorem

abbrev Mathlib.Meta.FunProp.LambdaTheorem.thmArgs E1 #

Mathlib.Meta.FunProp.LambdaTheorem → Mathlib.Meta.FunProp.LambdaTheoremArgs

Type and important argument of the theorem.

instance Mathlib.Meta.FunProp.instInhabitedLambdaTheorem E0 #

Inhabited Mathlib.Meta.FunProp.LambdaTheorem

def Mathlib.Meta.FunProp.instBEqLambdaTheorem.beq E1 #

Mathlib.Meta.FunProp.LambdaTheorem → Mathlib.Meta.FunProp.LambdaTheorem → Bool

instance Mathlib.Meta.FunProp.instBEqLambdaTheorem E0 #

BEq Mathlib.Meta.FunProp.LambdaTheorem

structure Mathlib.Meta.FunProp.LambdaTheorems E1 #

Type

Collection of lambda theorems

ctor Mathlib.Meta.FunProp.LambdaTheorems.mk E0 #

Std.HashMap (Lean.Name × Mathlib.Meta.FunProp.LambdaTheoremType) (Array Mathlib.Meta.FunProp.LambdaTheorem) →
  Mathlib.Meta.FunProp.LambdaTheorems

abbrev Mathlib.Meta.FunProp.LambdaTheorems.theorems E1 #

Mathlib.Meta.FunProp.LambdaTheorems →
  Std.HashMap (Lean.Name × Mathlib.Meta.FunProp.LambdaTheoremType) (Array Mathlib.Meta.FunProp.LambdaTheorem)

map: function property name × theorem type → lambda theorem

instance Mathlib.Meta.FunProp.instInhabitedLambdaTheorems E0 #

Inhabited Mathlib.Meta.FunProp.LambdaTheorems

def Mathlib.Meta.FunProp.LambdaTheorem.getProof E1 #

Mathlib.Meta.FunProp.LambdaTheorem → Lean.MetaM Lean.Expr

Return proof of lambda theorem

abbrev Mathlib.Meta.FunProp.LambdaTheoremsExt E1 #

Type

Environment extension storing lambda theorems.

opaque Mathlib.Meta.FunProp.lambdaTheoremsExt E1 #

Mathlib.Meta.FunProp.LambdaTheoremsExt

Environment extension storing all lambda theorems.

def Mathlib.Meta.FunProp.getLambdaTheorems E1 #

Lean.Name → Mathlib.Meta.FunProp.LambdaTheoremType → Lean.CoreM (Array Mathlib.Meta.FunProp.LambdaTheorem)

Get lambda theorems for particular function property funPropName.

inductive Mathlib.Meta.FunProp.TheoremForm E1 #

Type

Function theorems are stated in uncurried or compositional form.

uncurried

theorem Continuous_add : Continuous (fun x ↦ x.1 + x.2)

compositional

theorem Continuous_add (hf : Continuous f) (hg : Continuous g) : Continuous (fun x ↦ (f x) + (g x))

ctor Mathlib.Meta.FunProp.TheoremForm.uncurried E0 #

Mathlib.Meta.FunProp.TheoremForm

ctor Mathlib.Meta.FunProp.TheoremForm.comp E0 #

Mathlib.Meta.FunProp.TheoremForm

def Mathlib.Meta.FunProp.instBEqTheoremForm.beq E1 #

Mathlib.Meta.FunProp.TheoremForm → Mathlib.Meta.FunProp.TheoremForm → Bool

instance Mathlib.Meta.FunProp.instBEqTheoremForm E0 #

BEq Mathlib.Meta.FunProp.TheoremForm

instance Mathlib.Meta.FunProp.instReprTheoremForm E0 #

Repr Mathlib.Meta.FunProp.TheoremForm

def Mathlib.Meta.FunProp.instReprTheoremForm.repr E1 #

Mathlib.Meta.FunProp.TheoremForm → ℕ → Std.Format

instance Mathlib.Meta.FunProp.instInhabitedTheoremForm E0 #

Inhabited Mathlib.Meta.FunProp.TheoremForm

instance Mathlib.Meta.FunProp.instToStringTheoremForm E0 #

ToString Mathlib.Meta.FunProp.TheoremForm

TheoremForm to string

def Mathlib.Meta.FunProp.DecompositionResult.toTheoremForm E1 #

Mathlib.Meta.FunProp.DecompositionResult → Mathlib.Meta.FunProp.TheoremForm

Gives the theorem form using the result of FunctionData.decomposition.

Note that this returns TheoremForm.comp even when the decomposition failed (usually due to dependent types). This means that the theorem will be applied directly without trying to write the goal as a composition.

structure Mathlib.Meta.FunProp.FunctionTheorem E1 #

Type

theorem about specific function (either declared constant or free variable)

ctor Mathlib.Meta.FunProp.FunctionTheorem.mk E0 #

Lean.Name →
  Mathlib.Meta.FunProp.Origin →
    Mathlib.Meta.FunProp.Origin →
      Array ℕ → ℕ → ℕ → Mathlib.Meta.FunProp.TheoremForm → Mathlib.Meta.FunProp.FunctionTheorem

abbrev Mathlib.Meta.FunProp.FunctionTheorem.funPropName E1 #

Mathlib.Meta.FunProp.FunctionTheorem → Lean.Name

function property name

abbrev Mathlib.Meta.FunProp.FunctionTheorem.thmOrigin E1 #

Mathlib.Meta.FunProp.FunctionTheorem → Mathlib.Meta.FunProp.Origin

theorem name

abbrev Mathlib.Meta.FunProp.FunctionTheorem.funOrigin E1 #

Mathlib.Meta.FunProp.FunctionTheorem → Mathlib.Meta.FunProp.Origin

function name

abbrev Mathlib.Meta.FunProp.FunctionTheorem.mainArgs E1 #

Mathlib.Meta.FunProp.FunctionTheorem → Array ℕ

array of argument indices about which this theorem is about

abbrev Mathlib.Meta.FunProp.FunctionTheorem.appliedArgs E1 #

Mathlib.Meta.FunProp.FunctionTheorem → ℕ

total number of arguments applied to the function

abbrev Mathlib.Meta.FunProp.FunctionTheorem.priority E1 #

Mathlib.Meta.FunProp.FunctionTheorem → ℕ

priority

abbrev Mathlib.Meta.FunProp.FunctionTheorem.form E1 #

Mathlib.Meta.FunProp.FunctionTheorem → Mathlib.Meta.FunProp.TheoremForm

form of the theorem, see documentation of TheoremForm

instance Mathlib.Meta.FunProp.instBEqFunctionTheorem E0 #

BEq Mathlib.Meta.FunProp.FunctionTheorem

def Mathlib.Meta.FunProp.instBEqFunctionTheorem.beq E1 #

Mathlib.Meta.FunProp.FunctionTheorem → Mathlib.Meta.FunProp.FunctionTheorem → Bool

instance Mathlib.Meta.FunProp.instInhabitedFunctionTheorem E0 #

Inhabited Mathlib.Meta.FunProp.FunctionTheorem

structure Mathlib.Meta.FunProp.FunctionTheorems E1 #

Type

ctor Mathlib.Meta.FunProp.FunctionTheorems.mk E0 #

Std.TreeMap Lean.Name (Std.TreeMap Lean.Name (Array Mathlib.Meta.FunProp.FunctionTheorem) Lean.Name.quickCmp)
    Lean.Name.quickCmp →
  Mathlib.Meta.FunProp.FunctionTheorems

abbrev Mathlib.Meta.FunProp.FunctionTheorems.theorems E1 #

Mathlib.Meta.FunProp.FunctionTheorems →
  Std.TreeMap Lean.Name (Std.TreeMap Lean.Name (Array Mathlib.Meta.FunProp.FunctionTheorem) Lean.Name.quickCmp)
    Lean.Name.quickCmp

map: function name → function property → function theorem

instance Mathlib.Meta.FunProp.instInhabitedFunctionTheorems E0 #

Inhabited Mathlib.Meta.FunProp.FunctionTheorems

def Mathlib.Meta.FunProp.FunctionTheorem.getProof E1 #

Mathlib.Meta.FunProp.FunctionTheorem → Lean.MetaM Lean.Expr

return proof of function theorem

abbrev Mathlib.Meta.FunProp.FunctionTheoremsExt E1 #

Type

opaque Mathlib.Meta.FunProp.functionTheoremsExt E1 #

Mathlib.Meta.FunProp.FunctionTheoremsExt

Extension storing all function theorems.

def Mathlib.Meta.FunProp.getTheoremsForFunction E1 #

Lean.Name → Lean.Name → Lean.CoreM (Array Mathlib.Meta.FunProp.FunctionTheorem)

def Mathlib.Meta.FunProp.GeneralTheorem.getProof E1 #

Mathlib.Meta.FunProp.GeneralTheorem → Lean.MetaM Lean.Expr

Get proof of a theorem.

abbrev Mathlib.Meta.FunProp.GeneralTheoremsExt E1 #

Type

Extensions for transition or morphism theorems

opaque Mathlib.Meta.FunProp.transitionTheoremsExt E1 #

Mathlib.Meta.FunProp.GeneralTheoremsExt

Environment extension for transition theorems.

def Mathlib.Meta.FunProp.getTransitionTheorems E1 #

Lean.Expr → Mathlib.Meta.FunProp.FunPropM (Array Mathlib.Meta.FunProp.GeneralTheorem)

Get transition theorems applicable to e.

For example calling on e equal to Continuous f might return theorems implying continuity from linearity over finite-dimensional spaces or differentiability.

opaque Mathlib.Meta.FunProp.morTheoremsExt E1 #

Mathlib.Meta.FunProp.GeneralTheoremsExt

Environment extension for morphism theorems.

def Mathlib.Meta.FunProp.getMorphismTheorems E1 #

Lean.Expr → Mathlib.Meta.FunProp.FunPropM (Array Mathlib.Meta.FunProp.GeneralTheorem)

Get morphism theorems applicable to e.

For example calling on e equal to Continuous f for f : X→L[ℝ] Y would return theorem inferring continuity from the bundled morphism.

inductive Mathlib.Meta.FunProp.Theorem E1 #

Type

There are four types of theorems:

  • lam - theorem about basic lambda calculus terms
  • function - theorem about a specific function(declared or free variable) in specific arguments
  • mor - special theorems talking about bundled morphisms/DFunLike.coe
  • transition - theorems inferring one function property from another

Examples:

  • lam
    theorem Continuous_id : Continuous fun x ↦ x
    theorem Continuous_comp (hf : Continuous f) (hg : Continuous g) : Continuous fun x ↦ f (g x)
    
  • function
    theorem Continuous_add : Continuous (fun x ↦ x.1 + x.2)
    theorem Continuous_add (hf : Continuous f) (hg : Continuous g) :
        Continuous (fun x ↦ (f x) + (g x))
    
  • mor - the head of function body has to be DFunLike.coe
    theorem ContDiff.clm_apply {f : E → F →L[𝕜] G} {g : E → F}
        (hf : ContDiff 𝕜 n f) (hg : ContDiff 𝕜 n g) :
        ContDiff 𝕜 n fun x ↦ (f x) (g x)
    theorem clm_linear {f : E →L[𝕜] F} : IsLinearMap 𝕜 f
    
  • transition - the conclusion has to be in the form P f where f is a free variable
    theorem linear_is_continuous [FiniteDimensional ℝ E] {f : E → F} (hf : IsLinearMap 𝕜 f) :
        Continuous f
    

ctor Mathlib.Meta.FunProp.Theorem.lam E0 #

Mathlib.Meta.FunProp.LambdaTheorem → Mathlib.Meta.FunProp.Theorem

ctor Mathlib.Meta.FunProp.Theorem.function E0 #

Mathlib.Meta.FunProp.FunctionTheorem → Mathlib.Meta.FunProp.Theorem

ctor Mathlib.Meta.FunProp.Theorem.mor E0 #

Mathlib.Meta.FunProp.GeneralTheorem → Mathlib.Meta.FunProp.Theorem

ctor Mathlib.Meta.FunProp.Theorem.transition E0 #

Mathlib.Meta.FunProp.GeneralTheorem → Mathlib.Meta.FunProp.Theorem

def Mathlib.Meta.FunProp.getTheoremFromConst E1 #

Lean.Name → optParam ℕ 1000 → Lean.MetaM Mathlib.Meta.FunProp.Theorem

For a theorem declaration declName return fun_prop theorem. It correctly detects which type of theorem it is.

def Mathlib.Meta.FunProp.addTheorem E1 #

Lean.Name → optParam Lean.AttributeKind Lean.AttributeKind.global → optParam ℕ 1000 → Lean.MetaM Unit

Register theorem declName with fun_prop.