funProp
#
this file defines environment extension for funProp
- constToUnfold : Lean.HashSet Lean.Name
Name to unfold
- disch : Lean.Expr → Lean.MetaM (Option Lean.Expr)
Custom discharger to satisfy theorem hypotheses.
- maxTransitionDepth : ℕ
Maximal number of transitions between function properties e.g. inferring differentiability from linearity
- thmStack : List Lean.Meta.Origin
Stack of used theorem, used to prevent trivial loops.
Instances For
- cache : Lean.Meta.Simp.Cache
Simp's cache is used as the
funProp
tactic is designed to be used inside of simp and utilize its cache - transitionDepth : ℕ
The number of used transition theorems.
Instances For
def
Mathlib.Meta.FunProp.Config.addThm
(cfg : Mathlib.Meta.FunProp.Config)
(thmId : Lean.Meta.Origin)
:
Log used theorem
Equations
- Mathlib.Meta.FunProp.Config.addThm cfg thmId = { constToUnfold := cfg.constToUnfold, disch := cfg.disch, maxTransitionDepth := cfg.maxTransitionDepth, thmStack := thmId :: cfg.thmStack }
Instances For
@[inline, reducible]
Equations
Instances For
Get the name of previously used theorem.
Equations
- One or more equations did not get rendered due to their size.