AFTD Auto-Formalizing Theoretical Domains

op869_graph_extend_predecessors

theoremverified

The padded predecessor graph is the original graph mapped into the larger vertex universe.

Statement

theorem op869_graph_extend_predecessors {n m : ℕ} (h : n ≤ m) (P : Fin n → Finset (Fin n)) :
    op869_graph_from_predecessors (op869_extend_predecessors h P) =
      (op869_graph_from_predecessors P).map (Fin.castLEEmb h)
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 3
  • op869_graph_from_predecessorsThe simple graph on the ordered vertices Fin n whose edge from an earlier vertex a to a later vertex b exists exactly when a is in the…
  • op869_extend_predecessorsExtend a predecessor presentation to a larger initial-segment universe, leaving added vertices isolated.
  • op869_mem_extend_predecessorsMembership in a padded predecessor set is equivalent to original membership under the initial-segment embedding.
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 graph extensionality, reducing the equality of graphs to an equivalence of their adjacency relations on an arbitrary pair of vertices x, y in the larger vertex universe. By the definition of the pushforward graph and the characterization lemma `op869_mem_extend_predecessors`, adjacency in the extended graph corresponds precisely to the existence of adjacent preimage vertices in the original graph. Both implications are established by case analysis on the orientation of the edge (which vertex is smaller), using the fact that the canonical inclusion of `Fin n` into `Fin m` preserves the strict ordering.

  1. Equality of the two graphs reduces to proving that for any two vertices x and y, they are adjacent in the graph from extended predecessors if and only if they are images of adjacent vertices in the original graph.

    By graph extensionality, two graphs on the same vertex type are equal if they have the same adjacency relation. Applying `SimpleGraph.map_adj` expresses adjacency in the pushforward graph as the existence of adjacent preimages under the canonical inclusion `Fin.castLEEmb h`. Unfolding the definition of adjacency in `op869_graph_from_predecessors` reduces the goal to an equivalence between the extended predecessor condition and the existence of adjacent preimages, which is then split into forward and reverse implications.

    lines 5–10

    uses SimpleGraph.map_adj

      classical
      ext x y
      rw [SimpleGraph.map_adj]
      change ((x < y ∧ x ∈ op869_extend_predecessors h P y) ∨
        (y < x ∧ y ∈ op869_extend_predecessors h P x)) ↔ _
      constructor
  2. If x and y are adjacent in the extended predecessor graph, then they are the images of vertices a and b that are adjacent in the original graph.

    By definition, adjacency of x and y in the extended predecessor graph means that either x < y with x in the extended predecessors of y, or y < x with y in the extended predecessors of x. In the first case, lemma `op869_mem_extend_predecessors` yields vertices a, b in `Fin n` whose images under the inclusion are x and y, with a in the predecessor set of b. Because the inclusion preserves the strict ordering, x < y implies a < b, so a and b are adjacent in the original graph. The symmetric case y < x proceeds identically with the roles of x and y swapped.

    lines 11–25

    uses op869_mem_extend_predecessors

      · rintro (⟨hxy, hmem⟩ | ⟨hyx, hmem⟩)
        · obtain ⟨a,b,hax,hby,hab⟩ := (op869_mem_extend_predecessors h P x y).mp hmem
          refine ⟨a,b, ?_, hax, hby⟩
          left
          constructor
          · rw [← hax, ← hby] at hxy
            exact hxy
          · exact hab
        · obtain ⟨b,a,hby,hax,hba⟩ := (op869_mem_extend_predecessors h P y x).mp hmem
          refine ⟨a,b, ?_, hax, hby⟩
          right
          constructor
          · rw [← hax, ← hby] at hyx
            exact hyx
          · exact hba
  3. Conversely, if x and y are the images of vertices a and b that are adjacent in the original graph, then x and y are adjacent in the extended predecessor graph.

    Suppose x and y are the images under `Fin.castLEEmb h` of vertices a and b that are adjacent in the original graph. Adjacency of a and b means either a < b with a in the predecessor set of b, or b < a with b in the predecessor set of a. In the first case, order preservation gives x < y, and the reverse implication of `op869_mem_extend_predecessors` shows that x is in the extended predecessor set of y, establishing adjacency in the extended graph. The second case (b < a) is symmetric.

    lines 26–31

    uses op869_mem_extend_predecessors

      · rintro ⟨a,b,hab,rfl,rfl⟩
        rcases hab with ⟨hab,hmem⟩ | ⟨hba,hmem⟩
        · left
          exact ⟨hab, (op869_mem_extend_predecessors h P _ _).mpr ⟨a,b,rfl,rfl,hmem⟩⟩
        · right
          exact ⟨hba, (op869_mem_extend_predecessors h P _ _).mpr ⟨b,a,rfl,rfl,hmem⟩⟩
SimpleGraph.map_adj
Two vertices are adjacent in the pushforward graph under an embedding if and only if they are the images of adjacent vertices in the original graph.
op869_mem_extend_predecessors
A vertex x belongs to the extended predecessor set of y if and only if x and y are the images under `Fin.castLE` of some 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

/-- The padded predecessor graph is the original graph mapped into the larger vertex universe. -/theorem op869_graph_extend_predecessors {n m : ℕ} (h : n ≤ m) (P : Fin n → Finset (Fin n)) :    op869_graph_from_predecessors (op869_extend_predecessors h P) =      (op869_graph_from_predecessors P).map (Fin.castLEEmb h) := by  classical  ext x y  rw [SimpleGraph.map_adj]  change ((x < y ∧ x ∈ op869_extend_predecessors h P y) ∨    (y < x ∧ y ∈ op869_extend_predecessors h P x)) ↔ _  constructor  · rintro (⟨hxy, hmem⟩ | ⟨hyx, hmem⟩)    · obtain ⟨a,b,hax,hby,hab⟩ := (op869_mem_extend_predecessors h P x y).mp hmem      refine ⟨a,b, ?_, hax, hby⟩      left      constructor      · rw [← hax, ← hby] at hxy        exact hxy      · exact hab    · obtain ⟨b,a,hby,hax,hba⟩ := (op869_mem_extend_predecessors h P y x).mp hmem      refine ⟨a,b, ?_, hax, hby⟩      right      constructor      · rw [← hax, ← hby] at hyx        exact hyx      · exact hba  · rintro ⟨a,b,hab,rfl,rfl⟩    rcases hab with ⟨hab,hmem⟩ | ⟨hba,hmem⟩    · left      exact ⟨hab, (op869_mem_extend_predecessors h P _ _).mpr ⟨a,b,rfl,rfl,hmem⟩⟩    · right      exact ⟨hba, (op869_mem_extend_predecessors h P _ _).mpr ⟨b,a,rfl,rfl,hmem⟩⟩
See it in the graphDiscuss this resultChallenge it