Documentation

LeanPool.ApollonianSuperharmonic.NodupPathEdgeIndices

Indices of an undirected edge in a list without repetitions #

Shared list reasoning adapted from Wesley Pegden's Apache-2.0 Trellis formalization.

theorem ApollonianSuperharmonic.NodupPathEdgeIndices {α : Type u_1} [DecidableEq α] (p : List α) (hp : p.Nodup) (a b : α) (hedge : ∃ (c : α) (d : α) (l : List α) (r : List α), p = l ++ c :: d :: r ∧ {a, b} = {c, d}) :

The endpoints of an edge occurring consecutively in a list have consecutive indices.