Introduction and THEOREM, p. 11 — Warshall's construction equals
ProvedWarshallBool.Closure.warshall_eq_powerSumLet be a matrix each of whose entries is or . Warshall's construction produces a matrix as follows: set ; then for in turn, for every row with and every column , set .
Let and be the boolean powers of , where the boolean product is . Then
the boolean sum being taken entrywise.
This is the claim Warshall's note sets out to establish: the introduction poses the problem of transforming into , the THEOREM asserts for the chain definition of , and footnote 2 identifies the two definitions. It shows that the -pass construction, with on the order of row operations, computes the transitive closure that the power sum computes with boolean matrix products.
Formalization Note Matrices are functions with as true, indexed . is the published definition FloydAlgorithms.ShortestPath.algorithm96 (Floyd's Algorithm 96 is Warshall's construction, with the inner loops over and in ascending order, which does not change the result). The power sum runs over with the page's exponents; no identity matrix (reflexive closure) is included. The boolean product is defined by "there exists ", not by Mathlib's matrix product over Bool, whose addition is exclusive or. The case is allowed and is trivial.
import Mathlib import Definitions.Def_FloydAlgorithms_ShortestPath_Algorithm96 import Definitions.Def_WarshallBool_Closure_Setting
namespace WarshallBool.Closure
/-- Warshall (1962), p. 11, introduction display with the THEOREM ("We assert M* = M′") and
footnote 2: Warshall's construction `M*` (steps 0–4) equals `M ∨ M^2 ∨ ⋯ ∨ M^d`. -/
theorem warshall_eq_powerSum {d : ℕ} (M : Fin d → Fin d → Bool) :
FloydAlgorithms.ShortestPath.algorithm96 M = powerSum M := by sorry
end WarshallBool.Closure
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.