Enables the csimpNoncomputable linter, which warns when a @[csimp] theorem replaces a
definition that is not marked noncomputable. A @[csimp] theorem only affects code compiled after
it, so code compiled before it may still call the slow definition; marking the definition
noncomputable turns such uses into errors.
Recursors and structure projections cannot be marked noncomputable and are exempt.
This linter is off by default. It is a member of the linter.coreInternal set, so it is enabled
when building Lean itself.
@[instance_reducible]
Equations
Map from
e.fromDeclNametoe
Instances For
@[instance_reducible]
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
If e (as a whole) matches a [csimp] theorem, returns the replacement expression.
Equations
- One or more equations did not get rendered due to their size.
- Lean.Compiler.CSimp.replaceConstant? env e = pure none
Instances For
If e (as a whole) matches a [csimp] theorem, returns the replacement expression, or else e.
Equations
- Lean.Compiler.CSimp.replaceConstant env e = do let __do_lift ← Lean.Compiler.CSimp.replaceConstant? env e pure (__do_lift.getD e)
Instances For
Equations
- Lean.Compiler.hasCSimpAttribute env declName = (Lean.ScopedEnvExtension.getState Lean.Compiler.CSimp.ext env).thmNames.contains declName