The areas / V34. The tactics of Mathlib
Mathlib.Tactic.FunProp.Decl
29 declarations. Mathlib docs · Source
funProp environment extension that stores all registered function properties
theorem Mathlib.Meta.FunProp.FunPropDecl.mk.inj E1 #
∀ {funPropName : Lean.Name} {path : Array Lean.Meta.DiscrTree.Key} {funArgId : ℕ} {funPropName_1 : Lean.Name}
{path_1 : Array Lean.Meta.DiscrTree.Key} {funArgId_1 : ℕ},
{ funPropName := funPropName, path := path, funArgId := funArgId } =
{ funPropName := funPropName_1, path := path_1, funArgId := funArgId_1 } →
funPropName = funPropName_1 ∧ path = path_1 ∧ funArgId = funArgId_1
theorem Mathlib.Meta.FunProp.FunPropDecls.mk.injEq E0 #
∀ (decls decls_1 : Lean.Meta.DiscrTree Mathlib.Meta.FunProp.FunPropDecl),
({ decls := decls } = { decls := decls_1 }) = (decls = decls_1)
theorem Mathlib.Meta.FunProp.FunPropDecls.mk.inj E1 #
∀ {decls decls_1 : Lean.Meta.DiscrTree Mathlib.Meta.FunProp.FunPropDecl},
{ decls := decls } = { decls := decls_1 } → decls = decls_1
def Mathlib.Meta.FunProp.FunPropDecls.ctorIdx E1 #
Mathlib.Meta.FunProp.FunPropDecls → ℕ
def Mathlib.Meta.FunProp.instInhabitedFunPropDecls.default E1 #
Mathlib.Meta.FunProp.FunPropDecls
def Mathlib.Meta.FunProp.FunPropDecl.ctorIdx E1 #
Mathlib.Meta.FunProp.FunPropDecl → ℕ
def Mathlib.Meta.FunProp.instInhabitedFunPropDecl.default E1 #
Mathlib.Meta.FunProp.FunPropDecl
theorem Mathlib.Meta.FunProp.FunPropDecl.mk.injEq E0 #
∀ (funPropName : Lean.Name) (path : Array Lean.Meta.DiscrTree.Key) (funArgId : ℕ) (funPropName_1 : Lean.Name)
(path_1 : Array Lean.Meta.DiscrTree.Key) (funArgId_1 : ℕ),
({ funPropName := funPropName, path := path, funArgId := funArgId } =
{ funPropName := funPropName_1, path := path_1, funArgId := funArgId_1 }) =
(funPropName = funPropName_1 ∧ path = path_1 ∧ funArgId = funArgId_1)
structure Mathlib.Meta.FunProp.FunPropDecl E1 #
Type
Basic information about function property
To use funProp to prove a function property P : (α→β)→Prop one has to provide FunPropDecl.
ctor Mathlib.Meta.FunProp.FunPropDecl.mk E0 #
Lean.Name → Array Lean.Meta.DiscrTree.Key → ℕ → Mathlib.Meta.FunProp.FunPropDecl
abbrev Mathlib.Meta.FunProp.FunPropDecl.funPropName E1 #
Mathlib.Meta.FunProp.FunPropDecl → Lean.Name
function transformation name
abbrev Mathlib.Meta.FunProp.FunPropDecl.path E1 #
Mathlib.Meta.FunProp.FunPropDecl → Array Lean.Meta.DiscrTree.Key
path for discrimination tree
abbrev Mathlib.Meta.FunProp.FunPropDecl.funArgId E1 #
Mathlib.Meta.FunProp.FunPropDecl → ℕ
argument index of a function this function property talks about.
For example, this would be 4 for @Continuous α β _ _ f
instance Mathlib.Meta.FunProp.instBEqFunPropDecl E0 #
BEq Mathlib.Meta.FunProp.FunPropDecl
def Mathlib.Meta.FunProp.instBEqFunPropDecl.beq E1 #
Mathlib.Meta.FunProp.FunPropDecl → Mathlib.Meta.FunProp.FunPropDecl → Bool
instance Mathlib.Meta.FunProp.instInhabitedFunPropDecl E0 #
Inhabited Mathlib.Meta.FunProp.FunPropDecl
structure Mathlib.Meta.FunProp.FunPropDecls E1 #
Type
Discrimination tree for function properties.
ctor Mathlib.Meta.FunProp.FunPropDecls.mk E0 #
Lean.Meta.DiscrTree Mathlib.Meta.FunProp.FunPropDecl → Mathlib.Meta.FunProp.FunPropDecls
abbrev Mathlib.Meta.FunProp.FunPropDecls.decls E1 #
Mathlib.Meta.FunProp.FunPropDecls → Lean.Meta.DiscrTree Mathlib.Meta.FunProp.FunPropDecl
Discrimination tree for function properties.
instance Mathlib.Meta.FunProp.instInhabitedFunPropDecls E0 #
Inhabited Mathlib.Meta.FunProp.FunPropDecls
abbrev Mathlib.Meta.FunProp.FunPropDeclsExt E1 #
Type
opaque Mathlib.Meta.FunProp.funPropDeclsExt E1 #
Mathlib.Meta.FunProp.FunPropDeclsExt
Extension storing function properties tracked and used by the fun_prop attribute and tactic,
including, for example, Continuous, Measurable, Differentiable, etc.
def Mathlib.Meta.FunProp.addFunPropDecl E1 #
Lean.Name → Lean.MetaM Unit
Register new function property.
def Mathlib.Meta.FunProp.getFunProp? E1 #
Lean.Expr → Lean.MetaM (Option (Mathlib.Meta.FunProp.FunPropDecl × Lean.Expr))
Is e a function property statement? If yes return function property declaration and
the function it talks about.
def Mathlib.Meta.FunProp.isFunProp E1 #
Lean.Expr → Lean.MetaM Bool
Is e a function property statement?
def Mathlib.Meta.FunProp.isFunPropGoal E1 #
Lean.Expr → Lean.MetaM Bool
Is e a fun_prop goal? For example ∀ y z, Continuous fun x ↦ f x y z
def Mathlib.Meta.FunProp.getFunPropDecl? E1 #
Lean.Expr → Lean.MetaM (Option Mathlib.Meta.FunProp.FunPropDecl)
Returns function property declaration from e = P f.
def Mathlib.Meta.FunProp.getFunPropFun? E1 #
Lean.Expr → Lean.MetaM (Option Lean.Expr)
Returns function f from e = P f and P is function property.
def Mathlib.Meta.FunProp.tacticToDischarge E1 #
Lean.TSyntax `tactic → Lean.Expr → Lean.MetaM (Option Lean.Expr)
Turn tactic syntax into a discharger function.