AFTD Auto-Formalizing Theoretical Domains

op869_extend_postdegree_bound

theoremverified

If every original post-degree is at most D, padding preserves this bound at all vertices.

Statement

theorem op869_extend_postdegree_bound {n m : ℕ} (h : n ≤ m)
    (P : Fin n → Finset (Fin n)) (D : ℕ)
    (hD : ∀ a, op869_predecessor_postdegree P a ≤ D) :
    ∀ x, op869_predecessor_postdegree (op869_extend_predecessors h P) x ≤ D
Source
Padding and monotonicity for the finite adversary game of arXiv:2610.41516 Section 2.
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 4
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 proof proceeds by case analysis on whether a vertex x ∈ Fin m is an original vertex (x < n) or an added padding vertex (x ≥ n). For an original vertex, op869_extend_postdegree shows that its post-degree is unchanged from the original system, so it is bounded by D by hypothesis. For a padding vertex, op869_mem_extend_predecessors implies that it cannot appear in any extended predecessor set, giving it a post-degree of 0, which is at most D.

  1. To show that every vertex has post-degree at most D, it suffices to consider original vertices (x < n) and padding vertices (x ≥ n) separately.

    We fix an arbitrary vertex x ∈ Fin m under classical logic and split into two cases based on whether x.val < n.

    lines 6–8

      classical
      intro x
      by_cases hx : x.val < n
  2. If x < n, the post-degree of x in the extended system is at most D.

    When x.val < n, x is the image under Fin.castLE of the original vertex a = ⟨x.val, hx⟩ ∈ Fin n. By op869_extend_postdegree, the post-degree of x in the extended predecessor system equals the post-degree of a in P. The hypothesis hD guarantees that this post-degree is at most D.

    lines 9–12

    uses op869_extend_postdegree

      · let a : Fin n := ⟨x.val, hx⟩
        have hax : Fin.castLE h a = x := by ext; rfl
        rw [← hax, op869_extend_postdegree]
        exact hD a
  3. If x ≥ n, the post-degree of x in the extended system is 0.

    By definition, the post-degree of x is the number of vertices y such that x < y and x belongs to the extended predecessors of y. By Finset.card_eq_zero.mpr and Finset.filter_eq_empty_iff.mpr, this cardinality is zero if no such y exists. If such a y did exist, op869_mem_extend_predecessors implies that x is the embedding of some original vertex a ∈ Fin n, meaning x.val = a.val < n, which directly contradicts the assumption x.val ≥ n.

    lines 13–22

    uses Finset.card_eq_zero.mpr, Finset.filter_eq_empty_iff.mpr, op869_mem_extend_predecessors

      · have hz : op869_predecessor_postdegree (op869_extend_predecessors h P) x = 0 := by
          unfold op869_predecessor_postdegree
          apply Finset.card_eq_zero.mpr
          apply Finset.filter_eq_empty_iff.mpr
          intro y hy hmem
          obtain ⟨a,b,ha,hb,hab⟩ := (op869_mem_extend_predecessors h P x y).mp hmem.2
          have hx' : x.val < n := by
            rw [← ha]
            exact a.isLt
          exact hx hx'
  4. The post-degree bound holds for padding vertices.

    Substituting the fact that the post-degree of x is 0, the goal reduces to 0 ≤ D, which holds trivially for any natural number D.

    line 23

        simp [hz]
op869_extend_postdegree
Embedding an original vertex into the extended predecessor system preserves its post-degree.
Finset.card_eq_zero.mpr
A finite set has cardinality zero if it is empty.
Finset.filter_eq_empty_iff.mpr
Filtering a finite set produces the empty set if no element satisfies the predicate.
op869_mem_extend_predecessors
A vertex x is in the extended predecessors of y if and only if x and y are the embeddings of original vertices a and b such that a is a predecessor of b.

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

/-- If every original post-degree is at most D, padding preserves this bound at all vertices. -/theorem op869_extend_postdegree_bound {n m : ℕ} (h : n ≤ m)    (P : Fin n → Finset (Fin n)) (D : ℕ)    (hD : ∀ a, op869_predecessor_postdegree P a ≤ D) :    ∀ x, op869_predecessor_postdegree (op869_extend_predecessors h P) x ≤ D := by  classical  intro x  by_cases hx : x.val < n  · let a : Fin n := ⟨x.val, hx⟩    have hax : Fin.castLE h a = x := by ext; rfl    rw [← hax, op869_extend_postdegree]    exact hD a  · have hz : op869_predecessor_postdegree (op869_extend_predecessors h P) x = 0 := by      unfold op869_predecessor_postdegree      apply Finset.card_eq_zero.mpr      apply Finset.filter_eq_empty_iff.mpr      intro y hy hmem      obtain ⟨a,b,ha,hb,hab⟩ := (op869_mem_extend_predecessors h P x y).mp hmem.2      have hx' : x.val < n := by        rw [← ha]        exact a.isLt      exact hx hx'    simp [hz]
See it in the graphDiscuss this resultChallenge it