Aharoni et al. (J Combinat Theory, Ser B 101:1–17, 2010) proved the max-flow min-cut theorem for countable networks, namely that in every countable network with finite edge capacities, there exists a flow and a cut such that the flow saturates all outgoing edges of the cut and is zero on all incoming edges. In this paper, we formalize their proof in Isabelle/HOL and thereby identify and fix several problems with their proof. We also provide a simpler proof for networks where the total outgoing capacity of all vertices other than the source and the sink is finite. This proof is based on the max-flow min-cut theorem for finite networks. As a use case, we formalize a characterization theorem for relation lifting on discrete probability distributions and two of its applications.
The record package achieves extensibility with structural subtyping by internally generalizing \(\alpha \ \textsf {graph}\) to \((\alpha , \beta )\ \textsf {graph-scheme}\), where \(\beta \) is the extension slot for further fields. For example, \(\beta \) is instantiated with the singleton type \(\textsf {unit}\) for \(\textsf {graph}\). All operations on \(\textsf {graph}\) are actually defined on \(\textsf {graph-scheme}\) so that they also work for all record extensions. We omit this technicality from the presentation.
Sack and Zhang set \(e_{i,j} = \infty \) if \(x_i \mathrel {R} y_j\), but the max-flow min-cut theorem handles only finite edge capacities. Their argument works unchanged for any value greater than 1, such as our choice of 2.
Sack and Zhang’s proof is formalized in the theory Rel_PMF_Characterisation in the accompanying AFP entry [25] version for Isabelle2016-1. The modified proof can be found in the theory Rel_PMF_Characterisation_MFMC in the version for Isabelle2021-1 of the same AFP entry.