op869_block_postdegree_le_target_union
If every later neighbor is in the vertex’s block or in its block’s one target-owner group, and those two groups have bounded sizes, then its post-degree is bounded by the sum of their sizes.
Statement
theorem op869_block_postdegree_le_target_union {n : ℕ} {V B : Type} [DecidableEq V] [DecidableEq B] (P : Fin n → Finset (Fin n)) (block : Fin n → B) (owner : B → V) (target : B → Option V) (blockBound ownerBound : ℕ) (hblock : ∀ b, (Finset.univ.filter (fun x => block x = b)).card ≤ blockBound) (howner : ∀ v, (Finset.univ.filter (fun x => owner (block x) = v)).card ≤ ownerBound) (hedge : ∀ x y, x < y → x ∈ P y → block y = block x ∨ target (block x) = some (owner (block y))) : ∀ x, op869_predecessor_postdegree P x ≤ blockBound + ownerBound
- Source
- Offline size and post-degree accounting in arXiv:2610.41516 Lemma 2.5.
- Verified
- 18 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- op869_predecessor_postdegreeThe post-degree of a vertex in an ordered predecessor presentation is the number of later vertices that list it as a predecessor.
- Used by 1
- op869_block_postdegree_from_block_countsIf each block has at most B vertices, each owner has at most R blocks, and every later cross-edge points from a block to its one target…
The proof, explained
To bound the post-degree of an arbitrary vertex x, we consider two sets of vertices: A, those sharing a block with x, and T, those whose block's owner is the target of x's block. The edge condition guarantees that every later neighbor of x belongs to the union A ∪ T. The post-degree is therefore bounded by |A ∪ T| ≤ |A| + |T|, which in turn is bounded by blockBound + ownerBound using the size hypotheses on blocks and owner groups.
For an arbitrary vertex x, the set A of vertices sharing a block with x has cardinality at most blockBound, and T is defined as the set of vertices whose block's owner is the target of x's block.
We fix an arbitrary vertex x (using classical logic for decidability). We define A to be the set of vertices y with block y = block x, and T to be the set of vertices y such that the target owner of block x equals the owner of block y. Applying the block size bound hblock to the block of x immediately gives |A| ≤ blockBound.
classical intro x let A := Finset.univ.filter (fun y : Fin n => block y = block x) let T := Finset.univ.filter (fun y : Fin n => target (block x) = some (owner (block y))) have hA : A.card ≤ blockBound := hblock (block x)
The set T has cardinality at most ownerBound.
We case split on target (block x). If it is none, no vertex can satisfy the defining equation of T, so T is empty and |T| = 0 ≤ ownerBound. If it is some v, then T consists of all vertices whose block has owner v; applying the owner bound hypothesis howner to v (with equality symmetry via eq_comm) shows |T| ≤ ownerBound.
uses
eq_commhave hT : T.card ≤ ownerBound := by cases ht : target (block x) with | none => simp [T, ht] | some v => simpa [T, ht, eq_comm] using howner v
Every later neighbor of x is contained in A ∪ T.
Let y be any vertex satisfying x < y and x ∈ P y (unpacked using Finset.mem_filter, Finset.mem_univ, and true_and). By the edge assumption hedge, either block y = block x, which places y in A and thus in A ∪ T via Finset.mem_union_left and Finset.mem_filter.mpr, or target (block x) = some (owner (block y)), which places y in T and thus in A ∪ T via Finset.mem_union_right and Finset.mem_filter.mpr.
uses
Finset.mem_filter,Finset.mem_univ,true_and,Finset.mem_union_left,Finset.mem_filter.mpr,Finset.mem_union_righthave hsub : (Finset.univ.filter (fun y : Fin n => x < y ∧ x ∈ P y)) ⊆ A ∪ T := by intro y hy simp only [Finset.mem_filter, Finset.mem_univ, true_and] at hy rcases hedge x y hy.1 hy.2 with h | h · exact Finset.mem_union_left _ (Finset.mem_filter.mpr ⟨Finset.mem_univ _, h⟩) · exact Finset.mem_union_right _ (Finset.mem_filter.mpr ⟨Finset.mem_univ _, h⟩)
The post-degree of x is at most blockBound + ownerBound.
The post-degree of x is defined as the number of later neighbors y (i.e. x < y and x ∈ P y). Since this set is a subset of A ∪ T, its size is at most |A ∪ T| by Finset.card_le_card. By union subadditivity (Finset.card_union_le), |A ∪ T| ≤ |A| + |T|. Combining the bounds |A| ≤ blockBound and |T| ≤ ownerBound via Nat.add_le_add yields the result.
uses
Finset.card_le_card,Finset.card_union_le,Nat.add_le_addcalc op869_predecessor_postdegree P x ≤ (A ∪ T).card := Finset.card_le_card hsub _ ≤ A.card + T.card := Finset.card_union_le _ _ _ ≤ blockBound + ownerBound := Nat.add_le_add hA hT
eq_comm- Equality is symmetric: a = b if and only if b = a.
Finset.card_le_card- A subset of a finite set has cardinality at most that of the superset.
Finset.card_union_le- The cardinality of the union of two finite sets is at most the sum of their cardinalities.
Finset.mem_filter- An element belongs to a filtered finite set if and only if it belongs to the base set and satisfies the predicate.
Finset.mem_filter.mpr- An element belongs to a filtered finite set if it belongs to the base set and satisfies the predicate.
Finset.mem_univ- Every element of a finite type belongs to the universal finite set univ.
Finset.mem_union_left- An element of s also belongs to s ∪ t.
Finset.mem_union_right- An element of t also belongs to s ∪ t.
Nat.add_le_add- Addition preserves order: if a ≤ b and c ≤ d, then a + c ≤ b + d.
true_and- The conjunction True ∧ p is equivalent to p.
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.
/-- Post-degree control from one target owner per block. -/theorem op869_block_postdegree_le_target_union {n : ℕ} {V B : Type} [DecidableEq V] [DecidableEq B] (P : Fin n → Finset (Fin n)) (block : Fin n → B) (owner : B → V) (target : B → Option V) (blockBound ownerBound : ℕ) (hblock : ∀ b, (Finset.univ.filter (fun x => block x = b)).card ≤ blockBound) (howner : ∀ v, (Finset.univ.filter (fun x => owner (block x) = v)).card ≤ ownerBound) (hedge : ∀ x y, x < y → x ∈ P y → block y = block x ∨ target (block x) = some (owner (block y))) : ∀ x, op869_predecessor_postdegree P x ≤ blockBound + ownerBound := by classical intro x let A := Finset.univ.filter (fun y : Fin n => block y = block x) let T := Finset.univ.filter (fun y : Fin n => target (block x) = some (owner (block y))) have hA : A.card ≤ blockBound := hblock (block x) have hT : T.card ≤ ownerBound := by cases ht : target (block x) with | none => simp [T, ht] | some v => simpa [T, ht, eq_comm] using howner v have hsub : (Finset.univ.filter (fun y : Fin n => x < y ∧ x ∈ P y)) ⊆ A ∪ T := by intro y hy simp only [Finset.mem_filter, Finset.mem_univ, true_and] at hy rcases hedge x y hy.1 hy.2 with h | h · exact Finset.mem_union_left _ (Finset.mem_filter.mpr ⟨Finset.mem_univ _, h⟩) · exact Finset.mem_union_right _ (Finset.mem_filter.mpr ⟨Finset.mem_univ _, h⟩) calc op869_predecessor_postdegree P x ≤ (A ∪ T).card := Finset.card_le_card hsub _ ≤ A.card + T.card := Finset.card_union_le _ _ _ ≤ blockBound + ownerBound := Nat.add_le_add hA hT