Documentation

LeanPool.OrderMaintenance.Impl.Fresh

M6: a fresh core in fresh memory #

The wrapper builds a new core in the free slot q: it allocates the parameter array and writes the parameters, computes the capacities into locals, and allocates every other array of the slot (allocSlot). The arrays then read 0, so they hold the empty core freshC P (fresh_enc).

The arrays of a slot #

All EF constructors in the order used by fresh-array initialization.

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

    All GF constructors in the order used by fresh-array initialization.

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

      All CF constructors in the order used by fresh-array initialization.

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

        All NF constructors in the order used by fresh-array initialization.

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

          All AF constructors in the order used by fresh-array initialization.

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

            All SF constructors in the order used by fresh-array initialization.

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

              All LK constructors in the order used by fresh-array initialization.

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

                All OF constructors in the order used by fresh-array initialization.

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

                  All Fld constructors in the order used by fresh-array initialization.

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

                    Every array of a slot but the parameters.

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

                      Capacities #

                      The capacity of each array, from the locals kE … kW.

                      Equations
                      Instances For

                        The capacity locals hold the capacities of parameters P.

                        Instances For

                          Allocate every array of slot q but the parameters.

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

                            The empty core #

                            theorem OrderMaintenance.Impl.fresh_enc {P : Model.Params} {q : ℕ} {m : Machine.State} (hpc : m.cap (arr q Slot.prm) = 16) (hpm : ∀ (k : PF), m.mem (arr q Slot.prm) k.idx = PF.get P k) (hl : CapLocs P m.loc) :

                            Fresh memory holds the empty core. Slot q's parameter array holds P, the capacity locals hold P's capacities, and every other array of the slot is allocated by allocSlot.