Documentation

Lean.Compiler.CSimpAttr

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.

Instances For
    Instances For
      Equations
      Instances For
        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
          Instances For

            If e (as a whole) matches a [csimp] theorem, returns the replacement expression, or else e.

            Equations
            Instances For