Documentation

LeanPool.FullyDynamicMatching.FD1D.V5.LocalPolicy

The local three-cap policy from manuscript bundle v5 #

The two child counts are ordered only inside orderedBias. bias restores the fixed left/right spatial sign. Empty-child rates are auxiliary analytic rates; empty children still receive zero deletion mass.

Parent inventory, coerced to ℝ.

Equations
Instances For

    Parent deletion mass under the identity q = Nh.

    Equations
    Instances For
      noncomputable def FD1D.V5.LocalPolicy.feedbackCandidate (a h : ℝ) (x y : ℕ) :

      The feedback candidate, for ordered positive counts x ≥ y > 0.

      Equations
      Instances For
        noncomputable def FD1D.V5.LocalPolicy.uniformCandidate (h : ℝ) (x y : ℕ) :

        The uniform-deletion cap, for ordered counts.

        Equations
        Instances For
          noncomputable def FD1D.V5.LocalPolicy.floorCandidate (a p h : ℝ) (x y : ℕ) :

          The rate-floor cap, for ordered counts and parent interval mass p.

          Equations
          Instances For
            noncomputable def FD1D.V5.LocalPolicy.orderedBias (a p h : ℝ) (x y : ℕ) :

            Nonnegative bias magnitude after temporarily ordering x ≥ y.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              noncomputable def FD1D.V5.LocalPolicy.bias (a p h : ℝ) (x y : ℕ) :

              Signed left-minus-right deletion bias in fixed spatial labels.

              Equations
              Instances For
                noncomputable def FD1D.V5.LocalPolicy.massLeft (a p h : ℝ) (x y : ℕ) :

                Left-child deletion mass.

                Equations
                Instances For
                  noncomputable def FD1D.V5.LocalPolicy.massRight (a p h : ℝ) (x y : ℕ) :

                  Right-child deletion mass.

                  Equations
                  Instances For
                    noncomputable def FD1D.V5.LocalPolicy.rateLeft (a p h : ℝ) (x y : ℕ) :

                    Auxiliary child rate on the spatial left.

                    Equations
                    Instances For
                      noncomputable def FD1D.V5.LocalPolicy.rateRight (a p h : ℝ) (x y : ℕ) :

                      Auxiliary child rate on the spatial right.

                      Equations
                      Instances For
                        noncomputable def FD1D.V5.LocalPolicy.discrepancy (a p h : ℝ) (x y : ℕ) :

                        Discrepancy t = (p-q)/a.

                        Equations
                        Instances For
                          noncomputable def FD1D.V5.LocalPolicy.regularizedMass (a p : ℝ) (x y : ℕ) :

                          Regularized inverse inventory Z = p/(N+a/2).

                          Equations
                          Instances For
                            noncomputable def FD1D.V5.LocalPolicy.discrepancyLeft (a p h : ℝ) (x y : ℕ) :

                            Left-child discrepancy.

                            Equations
                            Instances For
                              noncomputable def FD1D.V5.LocalPolicy.discrepancyRight (a p h : ℝ) (x y : ℕ) :

                              Right-child discrepancy.

                              Equations
                              Instances For
                                noncomputable def FD1D.V5.LocalPolicy.regularizedMassLeft (a p : ℝ) (x : ℕ) :

                                Left-child regularized inverse inventory.

                                Equations
                                Instances For
                                  noncomputable def FD1D.V5.LocalPolicy.regularizedMassRight (a p : ℝ) (y : ℕ) :

                                  Right-child regularized inverse inventory.

                                  Equations
                                  Instances For
                                    noncomputable def FD1D.V5.LocalPolicy.bellman (h t Z : ℝ) :

                                    The quadratic Bellman correction in equation (15).

                                    Equations
                                    Instances For
                                      theorem FD1D.V5.LocalPolicy.inventory_pos {x y : ℕ} (hne : x + y ≠ 0) :
                                      0 < inventory x y
                                      theorem FD1D.V5.LocalPolicy.bias_swap (a p h : ℝ) (x y : ℕ) :
                                      bias a p h y x = -bias a p h x y
                                      theorem FD1D.V5.LocalPolicy.massLeft_swap (a p h : ℝ) (x y : ℕ) :
                                      massLeft a p h y x = massRight a p h x y
                                      theorem FD1D.V5.LocalPolicy.massRight_swap (a p h : ℝ) (x y : ℕ) :
                                      massRight a p h y x = massLeft a p h x y
                                      theorem FD1D.V5.LocalPolicy.rateLeft_swap (a p h : ℝ) (x y : ℕ) :
                                      rateLeft a p h y x = rateRight a p h x y
                                      theorem FD1D.V5.LocalPolicy.rateRight_swap (a p h : ℝ) (x y : ℕ) :
                                      rateRight a p h y x = rateLeft a p h x y
                                      theorem FD1D.V5.LocalPolicy.massLeft_add_massRight (a p h : ℝ) (x y : ℕ) :
                                      massLeft a p h x y + massRight a p h x y = parentMass h x y
                                      theorem FD1D.V5.LocalPolicy.bias_eq_massLeft_sub_massRight (a p h : ℝ) (x y : ℕ) :
                                      bias a p h x y = massLeft a p h x y - massRight a p h x y
                                      theorem FD1D.V5.LocalPolicy.discrepancyLeft_eq (a p h : ℝ) (x y : ℕ) :
                                      discrepancyLeft a p h x y = (discrepancy a p h x y - bias a p h x y / a) / 2
                                      theorem FD1D.V5.LocalPolicy.discrepancyRight_eq (a p h : ℝ) (x y : ℕ) :
                                      discrepancyRight a p h x y = (discrepancy a p h x y + bias a p h x y / a) / 2
                                      theorem FD1D.V5.LocalPolicy.bellman_nonpos {h t Z : ℝ} (hZ : 0 ≤ Z) (ht : t ≤ h / 2) :
                                      bellman h t Z ≤ 0