Footnote 2, p. 11 — the chain definition of agrees with
ProvedWarshallBool.Closure.chainRel_iff_powerSumboolean-matricesp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1transitive-closurewarshall-algorithm
Let be a matrix with entries in , and let be indices. Write for the boolean powers of (, , with ).
Then either or there are indices with , if and only if
This is footnote 2 of Warshall's note: the THEOREM's chain definition of "is trivially equivalent to" the introduction's . The content beyond unfolding definitions is that chains may be taken of length at most , so that the powers up to suffice.
Formalization Note Indices run over instead of , and is true. The chain side is the proposition that some (possibly empty) list of indices makes a chain of entries equal to ; the empty list is the case . There is no reflexive closure on either side.
Preamble
import Mathlib import Definitions.Def_WarshallBool_Closure_Setting
Formal statement
namespace WarshallBool.Closure
/-- Warshall (1962), p. 11, footnote 2: the chain definition of `M′` in the THEOREM agrees
with the introduction's `M′ = ∨_{p=1}^{d} M^p`. -/
theorem chainRel_iff_powerSum {d : ℕ} (M : Fin d → Fin d → Bool) (i j : Fin d) :
ChainRel M i j ↔ powerSum M i j = true := by sorry
end WarshallBool.Closure
Source
Warshall, A theorem on Boolean matrices, J. ACM 9 (1962), p. 11, THEOREM (definition of M′) and footnote 2 ('This definition of M′ is trivially equivalent to the previous one'), with the introduction's display M′ = ∨_{i=1}^d M^i
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.