Documentation

LeanPool.OrderMaintenance.Impl.Compile

M6: compiling the core language to the machine #

Layout. The core in slot p (0 or 1) owns the machine arrays 1000·p + code:

Enc p κ s m says that machine state m holds core s in slot p.

Codes #

theorem OrderMaintenance.Impl.EF.idx_inj {k k' : EF} (h : k.idx = k'.idx) :
k = k'
theorem OrderMaintenance.Impl.GF.idx_inj {k k' : GF} (h : k.idx = k'.idx) :
k = k'
theorem OrderMaintenance.Impl.CF.idx_inj {k k' : CF} (h : k.idx = k'.idx) :
k = k'
theorem OrderMaintenance.Impl.NF.idx_inj {k k' : NF} (h : k.idx = k'.idx) :
k = k'
theorem OrderMaintenance.Impl.AF.idx_inj {k k' : AF} (h : k.idx = k'.idx) :
k = k'
theorem OrderMaintenance.Impl.SF.idx_inj {k k' : SF} (h : k.idx = k'.idx) :
k = k'
theorem OrderMaintenance.Impl.Tbl.idx_inj {k k' : Tbl} (h : k.idx = k'.idx) :
k = k'
theorem OrderMaintenance.Impl.Fld.code_inj {f g : Fld} (h : f.code = g.code) :
f = g
theorem OrderMaintenance.Impl.LK.idx_inj {k k' : LK} (h : k.idx = k'.idx) :
k = k'
theorem OrderMaintenance.Impl.OF.idx_inj {k k' : OF} (h : k.idx = k'.idx) :
k = k'

The machine arrays of a core.

Instances For

    The machine array sl of the core in slot p.

    Equations
    Instances For
      theorem OrderMaintenance.Impl.arr_inj {p : Nat} {a b : Slot} (h : arr p a = arr p b) :
      a = b
      theorem OrderMaintenance.Impl.arr_ne {p : Nat} {a b : Slot} (h : a ≠ b) :
      arr p a ≠ arr p b
      @[simp]
      theorem OrderMaintenance.Impl.arr_eq_iff {p : Nat} {a b : Slot} :
      arr p a = arr p b ↔ a = b
      @[reducible, inline]

      The machine array of field f in slot p.

      Equations
      Instances For
        @[reducible, inline]

        The machine cell holding the size of table t.

        Equations
        Instances For
          @[reducible, inline]

          The machine array of the parameters.

          Equations
          Instances For
            theorem OrderMaintenance.Impl.arrF_inj {p : Nat} {f g : Fld} (h : arrF p f = arrF p g) :
            f = g
            theorem OrderMaintenance.Impl.arrF_ne_arrS (p : Nat) (f : Fld) (t : Tbl) :
            arrF p f ≠ arrS p t
            theorem OrderMaintenance.Impl.arrS_inj {p : Nat} {t t' : Tbl} (h : arrS p t = arrS p t') :
            t = t'

            Compilation #

            @[reducible, inline]

            Machine array storing one component of the encoded list rows for a core slot.

            Equations
            Instances For
              @[reducible, inline]

              Machine array storing the lengths of encoded lists for a core slot.

              Equations
              Instances For
                @[reducible, inline]

                Machine array storing flattened chunk ancestor paths for a core slot.

                Equations
                Instances For
                  @[reducible, inline]

                  Machine array storing an encoded optional preparation or job field.

                  Equations
                  Instances For

                    The width of a path row, read from the parameters: H + 1.

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

                      The encoding #

                      structure OrderMaintenance.Impl.Enc (p : Nat) (κ : Caps) (s : Model.Core) (m : Machine.State) :

                      Machine state m holds core s in slot p, with capacities κ.

                      Instances For