Documentation

LeanPool.MRiscX.Elab.HandleExpr

HandleExpr #

This module provides helpers reflecting Lean Exprs into MRiscX data.

Fold the optional label expression e? into the running labelmap expression.

Equations
Instances For

    Evaluate an Expr to the UInt64 it denotes.

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

      Evaluate an Expr to the String it denotes.

      Equations
      Instances For

        Reflect a PMap value from its Expr representation e.

        Equations
        Instances For

          Reflect the LabelMap value out of an Expr of type Code.

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

            Extract an Instr from a Code.mk Expr given a program counter value.

            This function takes an Expr of type Code.mk and a program counter (UInt64), and returns the Expr of the Instr at that program counter position.

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

              Interpret the first n arguments as UInt64 values, throwing otherwise.

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

                Interpret two argument expressions as a pair of UInt64 values.

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

                  Interpret three argument expressions as a triple of UInt64 values.

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

                    Interpret two argument expressions as a UInt64 and a String.

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

                      Interpret three argument expressions as two UInt64 values and a String.

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

                        Reflect the Instr value out of an Expr.

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

                          Reflect an InstructionMap value from its Expr representation e.

                          Equations
                          Instances For

                            Reflect the InstructionMap value out of an Expr of type Code.

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

                              Return the actual binding body from a lambda function.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                def splitConjDisj (declType : Lean.Expr) :

                                Split a conjunction/disjunction type declType into a matching rcases pattern.

                                Equations
                                Instances For

                                  Evaluate a singleton argument expression to the UInt64 it denotes.

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