Documentation

EvmYul.EVM.Gas

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
        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

              NB we currently run in 'this' monad because of the way YP interleaves the definition of C with the definition of C_<> functions that are described inline along with their operations.

              It would be worth restructing everything to obtain cleaner separation of concerns.

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

                CHECK - In YP we have Cselfdestruct(σ, μ); if we were to compute Aₐ that we need, we would need an address in σ - is this address supposed to be obvious? CURRENT SOLUTION - We take EVM.State.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  def EvmYul.EVM.L (n : ) :

                  (331)

                  Equations
                  Instances For
                    Equations
                    Instances For
                      Equations
                      Instances For
                        Equations
                        Instances For
                          def EvmYul.EVM.Cgascap (t r : AccountAddress) (val g : UInt256) (σ : AccountMap) (μ : MachineState) (A : Substate) :
                          Equations
                          Instances For
                            def EvmYul.EVM.Ccallgas (t r : AccountAddress) (val g : UInt256) (σ : AccountMap) (μ : MachineState) (A : Substate) :
                            Equations
                            Instances For
                              def EvmYul.EVM.Ccall (t r : AccountAddress) (val g : UInt256) (σ : AccountMap) (μ : MachineState) (A : Substate) :

                              NB Assumes stack coherence.

                              Equations
                              Instances For
                                def EvmYul.EVM.R (x : ) :

                                (65)

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

                                    H.1. Gas Cost - the third summand.

                                    NB Stack accesses are assumed guarded here and we access with !. This is for keeping in sync with the way the YP is structures, at least for the time being.

                                    Instances For

                                      H.1. Gas Cost

                                      NB this differs ever so slightly from how it is defined in the YP, please refer to EVM/Semantics.lean, function X for further discussion.

                                      Equations
                                      Instances For