Finite set accumulated by list insertion
DefinitionAPFPaper1_RankExtendapffinite-setsfoundations
For any type D with decidable equality, extend inserts every list member into an initial finite set. Repetitions are allowed. extend represents only the finite set accumulated from an ordered list by insertion; it neither represents nor certifies the paper's additional tested, distinct, admissible and support-novel chain conditions.
Definition code
import Mathlib.Data.Finset.Card
namespace APFPaper1.Ranks
def extend {D : Type*} [DecidableEq D] : Finset D → List D → Finset D
| S, [] => S
| S, d :: ds => extend (insert d S) ds
end APFPaper1.Ranks
Source
Paper1 Supplement v9.27:2836–2847,2853–2856. Existing seed extension_union, ordinary finite-set bookkeeping. Inputs revision2026-10-04.1 is the policy baseline; no physical input consumed. Exact extend recursion and theorem proof body preserved; unrelated historical Ranks/cost definitions and project imports removed. extend represents only the finite set accumulated from an ordered list by insertion; it neither represents nor certifies the paper's additional tested, distinct, admissible and support-novel chain conditions.
Human review
Confirmed by the mission captain (proposal self-audit).