Documentation

LeanPool.FullyDynamicMatching.FD1D.V5.JoinedTrajectory

Joined Trajectory #

Initialization joined to the continuous trajectory #

The time-zero spatial coordinate of trajectoryLaw is the iid refreshed inventory. We use that exact coordinate vector as the replenishment supply for the first m scheduled matches. Thus initialization and the main policy live on one path space, with a pathwise (not merely count-law) phase boundary.

A continuous coordinate state, viewed as the supply used by initialization.

Equations
Instances For
    noncomputable def FD1D.V5.ContinuousProcess.joinedInitializationTerminal {L m : ℕ} (initial : RefreshSupply L m) (path : ℕ → ProcessState m) :

    The terminal initialized supply read from the same path used by the main policy.

    Equations
    Instances For
      @[simp]
      theorem FD1D.V5.ContinuousProcess.joinedInitializationTerminal_location {L m : ℕ} (initial : RefreshSupply L m) (path : ℕ → ProcessState m) (j : Fin m) :
      (joinedInitializationTerminal initial path).location j = ↑((path 0).1 j)

      Every terminal initialized coordinate is the corresponding time-zero path coordinate.

      @[simp]

      The terminal initialized leaf labels are the labels of the time-zero path coordinates.

      @[simp]

      The terminal initialized count is the time-zero count of the same path.

      theorem FD1D.V5.ContinuousProcess.map_timeZeroSpatial_trajectoryLaw {L m : ℕ} (a : ℝ) (fallback : Fin m) :
      MeasureTheory.Measure.map (fun (path : ℕ → ProcessState m) => (path 0).1) (trajectoryLaw a fallback) = initialSpatialLaw m

      The time-zero spatial vector on the trajectory has the iid continuous law.

      theorem FD1D.V5.ContinuousProcess.map_joinedInitializationTerminal_countState {L m : ℕ} (a : ℝ) (ha : 0 < a) (hm : 0 < m) (fallback : Fin m) (initial : RefreshSupply L m) :

      On the joined path law, initialization terminates with the refreshed count law.

      noncomputable def FD1D.V5.ContinuousProcess.joinedInitializationStepCost {L m : ℕ} (initial : RefreshSupply L m) (demand : Fin m → ℝ) (path : ℕ → ProcessState m) (j : Fin m) :

      Cost of scheduled initialization match j on the joined path.

      Equations
      Instances For
        @[simp]
        theorem FD1D.V5.ContinuousProcess.joinedInitializationStepCost_eq {L m : ℕ} (initial : RefreshSupply L m) (demand : Fin m → ℝ) (path : ℕ → ProcessState m) (j : Fin m) :
        joinedInitializationStepCost initial demand path j = |demand j - initial.location j|

        The joined scheduled match removes the still-unrefreshed original label.

        theorem FD1D.V5.ContinuousProcess.sum_joinedInitializationStepCost {L m : ℕ} (initial : RefreshSupply L m) (demand : Fin m → ℝ) (path : ℕ → ProcessState m) :
        ∑ j : Fin m, joinedInitializationStepCost initial demand path j = initializationMatchingCost initial demand

        The joined path's initialization costs sum to the explicit initialization cost.

        theorem FD1D.V5.ContinuousProcess.pathProcessCost_integrable {L m : ℕ} (a : ℝ) (fallback : Fin m) (t : ℕ) :
        MeasureTheory.Integrable (fun (path : ℕ → ProcessState m) => processCost L a fallback (path t)) (trajectoryLaw a fallback)

        A main-period path cost is integrable on the continuous trajectory law.

        noncomputable def FD1D.V5.ContinuousProcess.joinedTrajectoryAverageCost {L m : ℕ} (initial : RefreshSupply L m) (demand : Fin m → ℝ) (a : ℝ) (hm : 0 < m) (N : ℕ) (path : ℕ → ProcessState m) :

        The average cost of initialization followed by the main policy, as one random variable on the single infinite continuous trajectory.

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

          The joined full-horizon path cost is integrable.

          theorem FD1D.V5.ContinuousProcess.integral_joinedTrajectoryAverageCost {L m : ℕ} (initial : RefreshSupply L m) (demand : Fin m → ℝ) (a : ℝ) (hm : 0 < m) (N : ℕ) :

          The expectation of the one-path full-horizon cost is exactly initialization cost plus the sum of the trajectory's one-period expected costs.

          theorem FD1D.V5.ContinuousProcess.finite_horizon_expected_joinedTrajectoryCost_le_nine {m N : ℕ} (hm : 1 ≤ m) (hN : 2 * m ^ 2 ≤ N) (initial : RefreshSupply (treeDepth m) m) (demand : Fin m → ℝ) (hdemand : ∀ (j : Fin m), demand j ∈ Set.Icc 0 1) :

          Manuscript part (ii): scheduled replacement followed by the v5 policy has average expected cost at most 9a/m once N ≥ 2m².