op869_extend_predecessors_update
Padding a predecessor-set update agrees with updating the padded presentation.
Statement
theorem op869_extend_predecessors_update {n m : ℕ} (h : n ≤ m) (P : Fin n → Finset (Fin n))
(i : Fin n) (S : Finset (Fin n)) :
op869_extend_predecessors h (Function.update P i S) =
Function.update (op869_extend_predecessors h P) (Fin.castLE h i) (S.map (Fin.castLEEmb h))- Source
- Padding and monotonicity for the finite adversary game of arXiv:2610.41516 Section 2.
- Verified
- 18 Nov 2026
- Axioms
Quot.soundpropext- Built on 1
- op869_extend_predecessorsExtend a predecessor presentation to a larger initial-segment universe, leaving added vertices isolated.
- Used by 1
- op869_bounded_vertex_paddingFor a positive colorability bound, a bounded adversary winning position remains winning after padding its entire graph and color history…
The proof, explained
The theorem is proved by function extensionality, checking that the two predecessor-set maps agree on an arbitrary vertex v : Fin m. We split into cases depending on whether v is the updated vertex Fin.castLE h i. When it is, both sides evaluate directly to the mapped updated set S. When v is not the updated vertex, we subcase on whether v.val < n: if so, the restriction of v cannot equal i, so neither update takes effect and both sides produce the original predecessors of v mapped forward; if not, both sides evaluate to the empty set.
It suffices to show that the two predecessor-set functions agree at an arbitrary vertex v of Fin m.
We enable classical logic and apply function extensionality (`funext`), reducing the equality of the two functions to checking that they agree on an arbitrary index v : Fin m.
classical funext vThe identity holds at the updated index, i.e., when v = Fin.castLE h i.
We split into cases on whether v = Fin.castLE h i. In the positive case, substituting v reduces the query to Fin.castLE h i. Since the underlying numerical value of this vertex is i.val < n, the definition of `op869_extend_predecessors` takes the branch for vertices within Fin n, evaluating the updated predecessor map at i to obtain S mapped into Fin m. On the right-hand side, updating at Fin.castLE h i with the mapped set S and evaluating at that same vertex immediately yields the same set.
by_cases hvi : v = Fin.castLE h i · subst v simp [op869_extend_predecessors, i.isLt]
The identity holds when v ≠ Fin.castLE h i and v.val < n.
Assuming v ≠ Fin.castLE h i, we split on whether v.val < n. When v.val < n, the restricted vertex ⟨v.val, hv⟩ : Fin n cannot equal i: if it were equal, extracting the underlying natural numbers with `congrArg` would give v.val = i.val, which by `Fin.ext` would imply v = Fin.castLE h i, contradicting our case assumption. Since ⟨v.val, hv⟩ ≠ i and v ≠ Fin.castLE h i, `Function.update_of_ne` simplifies both updates away, and both sides evaluate to (P ⟨v.val, hv⟩).map (Fin.castLEEmb h).
uses
Fin.ext,congrArg,Function.update_of_ne· by_cases hv : v.val < n · have hbne : (⟨v.val, hv⟩ : Fin n) ≠ i := by intro heq apply hvi apply Fin.ext exact congrArg (fun z : Fin n => z.val) heq simp [op869_extend_predecessors, hv, Function.update_of_ne, hvi, hbne]
The identity holds when v ≠ Fin.castLE h i and v.val ≥ n.
In the remaining case where v.val ≥ n, v lies outside the original range Fin n. On the left-hand side, the extension definition directly yields the empty set. On the right-hand side, since v ≠ Fin.castLE h i, `Function.update_of_ne` simplifies the update to the padded presentation of P at v, which also yields the empty set because v.val ≥ n.
uses
Function.update_of_ne· simp [op869_extend_predecessors, hv, Function.update_of_ne, hvi]
Fin.ext- Two elements of Fin n are equal if and only if their underlying natural values are equal.
congrArg- If two arguments are equal, then applying any function to them produces equal results.
Function.update_of_ne- Evaluating an updated function `Function.update f a' v` at an argument a distinct from a' returns the original value f(a).
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- Padding a predecessor-set update agrees with updating the padded presentation. -/theorem op869_extend_predecessors_update {n m : ℕ} (h : n ≤ m) (P : Fin n → Finset (Fin n)) (i : Fin n) (S : Finset (Fin n)) : op869_extend_predecessors h (Function.update P i S) = Function.update (op869_extend_predecessors h P) (Fin.castLE h i) (S.map (Fin.castLEEmb h)) := by classical funext v by_cases hvi : v = Fin.castLE h i · subst v simp [op869_extend_predecessors, i.isLt] · by_cases hv : v.val < n · have hbne : (⟨v.val, hv⟩ : Fin n) ≠ i := by intro heq apply hvi apply Fin.ext exact congrArg (fun z : Fin n => z.val) heq simp [op869_extend_predecessors, hv, Function.update_of_ne, hvi, hbne] · simp [op869_extend_predecessors, hv, Function.update_of_ne, hvi]