Equations
- Lean.instInhabitedNameGenerator = { default := { namePrefix := default, idx := default } }
- all: Lean.Meta.TransparencyMode
unfold all constants, even those tagged as
@[irreducible]. - default: Lean.Meta.TransparencyMode
unfold all constants except those tagged as
@[irreducible]. - reducible: Lean.Meta.TransparencyMode
unfold only constants tagged with the
@[reducible]attribute. - instances: Lean.Meta.TransparencyMode
unfold reducible constants and constants tagged with the
@[instance]attribute.
Instances For
Equations
Equations
- all: Lean.Meta.EtaStructMode
Enable eta for structure and classes.
- notClasses: Lean.Meta.EtaStructMode
Enable eta only for structures that are not classes.
- none: Lean.Meta.EtaStructMode
Disable eta for structures and classes.
Instances For
Equations
- Lean.Meta.instInhabitedEtaStructMode = { default := Lean.Meta.EtaStructMode.all }
Equations
- zeta : Bool
let x := v; e[x]reduces toe[v]. - beta : Bool
- eta : Bool
- etaStruct : Lean.Meta.EtaStructMode
- iota : Bool
- proj : Bool
- decide : Bool
- autoUnfold : Bool
- failIfUnchanged : Bool
If
failIfUnchanged := true, then calls tosimp,dsimp, orsimp_allwill fail if they do not make progress. - unfoldPartialApp : Bool
If
unfoldPartialApp := true, then calls tosimp,dsimp, orsimp_allwill unfold even partial applications offwhen we requestfto be unfolded. - zetaDelta : Bool
Given a local context containing entry
x : t := e, free variablexreduces toe.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
Equations
- Lean.Meta.Simp.defaultMaxSteps = 100000
Instances For
The configuration for simp.
Passed to simp using, for example, the simp (config := {contextual := true}) syntax.
See also Lean.Meta.Simp.neutralConfig.
- maxSteps : Nat
The maximum number of subexpressions to visit when performing simplification. The default is 100000.
- maxDischargeDepth : Nat
When simp discharges side conditions for conditional lemmas, it can recursively apply simplification. The
maxDischargeDepth(default: 2) is the maximum recursion depth when recursively applying simplification to side conditions. - contextual : Bool
When
contextualis true (default:false) and simplification encounters an implicationp → qit includespas an additional simp lemma when simplifyingq. - memoize : Bool
When true (default:
true) then the simplifier caches the result of simplifying each subexpression, if possible. - singlePass : Bool
When
singlePassistrue(default:false), the simplifier runs through a single round of simplification, which consists of running pre-methods, recursing using congruence lemmas, and then running post-methods. Otherwise, when it isfalse, it iteratively applies this simplification procedure. - zeta : Bool
When
true(default:true), performs zeta reduction of let expressions. That is,let x := v; e[x]reduces toe[v]. See alsozetaDelta. - beta : Bool
When
true(default:true), performs beta reduction of applications offunexpressions. That is,(fun x => e[x]) vreduces toe[v]. - eta : Bool
TODO (currently unimplemented). When
true(default:true), performs eta reduction forfunexpressions. That is,(fun x => f x)reduces tof. - etaStruct : Lean.Meta.EtaStructMode
Configures how to determine definitional equality between two structure instances. See documentation for
Lean.Meta.EtaStructMode. - iota : Bool
When
true(default:true), reducesmatchexpressions applied to constructors. - proj : Bool
When
true(default:true), reduces projections of structure constructors. - decide : Bool
- arith : Bool
When
true(default:false), simplifies simple arithmetic expressions. - autoUnfold : Bool
When
true(default:false), unfolds definitions. This can be enabled using thesimp!syntax. - dsimp : Bool
- failIfUnchanged : Bool
If
failIfUnchangedistrue(default:true), then calls tosimp,dsimp, orsimp_allwill fail if they do not make progress. - ground : Bool
If
groundistrue(default:false), then ground terms are reduced. A term is ground when it does not contain free or meta variables. Reduction is interrupted at a function applicationf ...iffis marked to not be unfolded. Ground term reduction applies@[seval]lemmas. - unfoldPartialApp : Bool
If
unfoldPartialAppistrue(default:false), then calls tosimp,dsimp, orsimp_allwill unfold even partial applications offwhen we requestfto be unfolded. - zetaDelta : Bool
When
true(default:false), local definitions are unfolded. That is, given a local context containing entryx : t := e, the free variablexreduces toe. - index : Bool
When
index(default :true) isfalse,simpwill only use the root symbol to find candidatesimptheorems. It approximates Lean 3simpbehavior.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
A neutral configuration for simp, turning off all reductions and other built-in simplifications.
Equations
- One or more equations did not get rendered due to their size.
Instances For
- all: Lean.Meta.Occurrences
- pos: List Nat → Lean.Meta.Occurrences
- neg: List Nat → Lean.Meta.Occurrences
Instances For
Equations
- Lean.Meta.instInhabitedOccurrences = { default := Lean.Meta.Occurrences.all }