Documentation

Lean.Compiler.LCNF.Simp.DiscrM

Instances For
    Instances For
      @[inline, reducible]

      Helper monad for tracking mappings from discriminant to constructor applications and back. The combinator withDiscrCtor should be used when visiting cases alternatives.

      Instances For

        If fvarId is a constructor application, returns constructor information. Remark: we use the map discrCtorMap. Remark: We use this method when simplifying projections and cases-constructor.

        Instances For

          If type is an inductive datatype, return its universe levels and parameters.

          Instances For
            @[inline]

            Execute x with the information that discr = ctorName ctorFields. We use this information to simplify nested cases on the same discriminant.

            Instances For
              @[inline]

              Execute x with the information that discr = ctorName ctorFields. We use this information to simplify nested cases on the same discriminant.

              Instances For