Documentation

Lean.Meta.Sym.LitValues

Pure functions for extracting values. They are pure (OptionT Id) rather than monadic (MetaM). This is possible because Sym assumes terms are in canonical form, no whnf or reduction is needed to recognize literals.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Returns true if e is a Nat literal (OfNat.ofNat _ n _ with a raw literal n).

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          Instances For

            Returns none if the width is not safe to evaluate (see isSafeBitVecWidth).

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              Instances For
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For