Skip to main content
QUICK REVIEW

[Paper Review] A Formal Analysis of RANKING

Mohammad Abdulaziz, Christoph Madlener|arXiv (Cornell University)|Jan 1, 2023
Advanced Database Systems and QueriesComputer Science4 citations
TL;DR

This paper presents a formal correctness proof of the RANKING algorithm for online bipartite matching in Isabelle/HOL, revealing a previously unnoticed gap in combinatorial proofs by Birnbaum and Mathieu. The authors close this gap through rigorous formalization, significantly simplifying key lemmas and demonstrating that the competitive ratio converges to 1−1/e in the limit, thereby advancing the understanding of a foundational algorithm in theoretical computer science.

ABSTRACT

We describe a formal correctness proof of RANKING, an online algorithm for online bipartite matching. An outcome of our formalisation is that it shows that there is a gap in all combinatorial proofs of the algorithm. Filling that gap constituted the majority of the effort which went into this work. This is despite the algorithm being one of the most studied algorithms and a central result in theoretical computer science. This gap is an example of difficulties in formalising graphical arguments which are ubiquitous in the theory of computing.

Motivation & Objective

  • To formally verify the correctness of the RANKING algorithm for online bipartite matching using Isabelle/HOL.
  • To identify and close a previously undetected gap in combinatorial proofs of the algorithm, particularly in Birnbaum and Mathieu's simplified proof.
  • To clarify the generalization of competitiveness from perfect matchings to general bipartite graphs.
  • To simplify the analysis of how changing the ranking of an offline vertex affects the matching outcome.
  • To formalize the convergence of the competitive ratio to 1−1/e in the limit, addressing a gap in prior informal treatments.

Proposed method

  • Formalizing the RANKING algorithm and its probabilistic and combinatorial analysis within the Isabelle/HOL theorem prover.
  • Modeling online algorithms via probability distributions and the Giry monad to capture randomized behavior.
  • Reconstructing and formally verifying the combinatorial argument involving alternating paths when an offline vertex's rank is modified.
  • Using a novel approach to prove lemmas about matching changes after rank shifts, avoiding full matching difference construction.
  • Leveraging automated tools like Eberl’s tool for arithmetic manipulation and formalizing convergence of the competitive ratio in a specific family of graphs.
  • Applying do-notation and functional programming constructs in Isabelle/HOL to express and compose random experiments elegantly.

Experimental results

Research questions

  • RQ1What is the precise nature of the combinatorial gap in Birnbaum and Mathieu’s proof of RANKING’s competitive ratio?
  • RQ2How can the effect of changing an offline vertex’s rank on the matching be formally analyzed in a way that avoids constructing the full difference between matchings?
  • RQ3Why is the convergence of the competitive ratio to 1−1/e not rigorously established in prior proofs, and how can it be formalized?
  • RQ4To what extent can formalization reveal hidden complexities in graphical or geometric arguments in algorithmic proofs?
  • RQ5Can a formal proof of the competitive ratio’s asymptotic behavior be achieved for a representative class of bipartite graphs?

Key findings

  • A critical gap was identified in the combinatorial proof of Birnbaum and Mathieu’s simplified analysis of RANKING, specifically in a lemma described as a 'simple structural observation' that required extensive formalization.
  • The formal proof of this lemma consumed the majority of the effort and volume of the formalization, demonstrating the hidden complexity of seemingly trivial combinatorial steps.
  • A significantly simpler proof was developed for a key lemma used in the probabilistic analysis, reducing the complexity of reasoning about matching changes after rank modifications.
  • The formalization confirmed that the competitive ratio converges to 1−1/e as the matching size tends to infinity, for a specific family of graphs Γn, though convergence for all graphs remains unproven.
  • The work highlights the inherent difficulty of formalizing graphical arguments, particularly concepts like 'shifts-to' that are intuitive in diagrams but cumbersome in prose and formal logic.
  • The formalization suggests that modeling online computation in full generality remains an open challenge, as current modeling approaches are ad-hoc and do not capture the essence of incremental input processing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.