Documentation

LeanPool.FullyDynamicMatching.FD1D.Realization

Realization #

Realizing fixed-total count states by spatial configurations #

Every unit of a count vector is represented by one slot in the sigma type Σ i, Fin (x i). An equivalence with Fin m enumerates those slots, and placing each enumerated point at its cell's left endpoint gives an exact spatial realization.

@[reducible, inline]

One distinguishable slot for every unit of inventory in every leaf.

Equations
Instances For

    Enumerate all count slots by the m supply labels.

    Equations
    Instances For
      noncomputable def FD1D.SupplyConfiguration.countAssignment {L m : ℕ} (x : InventoryState (DyadicNode L) m) (j : Fin m) :

      The leaf label obtained by forgetting which copy of a count slot was used.

      Equations
      Instances For

        The canonical spatial realization of a fixed-total leaf count state. Every point is placed at the left endpoint of its declared dyadic cell.

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

          The canonical spatial realization projects back to the original state.

          Every fixed-total leaf count state has an exact spatial realization.

          A canonical total representative fallback whenever the inventory is nonempty.

          Equations
          Instances For