op869_block_postdegree_from_block_counts
If 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 owner, then every vertex has post-degree at most B+RB.
Statement
theorem op869_block_postdegree_from_block_counts {n : ℕ} {V B : Type} [Fintype B] [DecidableEq V] [DecidableEq B] (P : Fin n → Finset (Fin n)) (block : Fin n → B) (owner : B → V) (target : B → Option V) (blockBound blocksPerOwner : ℕ) (hblock : ∀ b, (Finset.univ.filter (fun x => block x = b)).card ≤ blockBound) (howners : ∀ v, (Finset.univ.filter (fun b => owner b = v)).card ≤ blocksPerOwner) (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 + blocksPerOwner * blockBound
- Source
- Offline size and post-degree accounting in arXiv:2610.41516 Lemma 2.5.
- Verified
- 18 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- op869_block_postdegree_le_target_unionIf 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…
- 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.
The proof, explained
The proof reduces the post-degree bound to bounding the total number of vertices associated with any single owner via the helper theorem op869_block_postdegree_le_target_union. For any owner v, the vertices whose blocks are owned by v are covered by the union of all blocks owned by v. Because there are at most blocksPerOwner such blocks and each block contains at most blockBound vertices, this union contains at most blocksPerOwner * blockBound vertices, completing the required bound.
It suffices to show that for every owner v, at most blocksPerOwner * blockBound vertices belong to blocks owned by v, and that the cross-edge condition holds.
The helper theorem op869_block_postdegree_le_target_union bounds the post-degree of any vertex by blockBound + ownerBound, assuming each block has size at most blockBound, each owner has at most ownerBound vertices, and later cross-edges only point to the target owner. Setting ownerBound = blocksPerOwner * blockBound leaves two goals: bounding the total number of vertices for each owner v, and verifying the edge condition.
uses
op869_block_postdegree_le_target_unionclassical apply op869_block_postdegree_le_target_union P block owner target blockBound (blocksPerOwner * blockBound) hblockFix an owner v, and let S be the set of blocks owned by v and F(b) the set of vertices in block b.
To bound the number of vertices belonging to blocks owned by v, we introduce v and define S = {b ∈ B | owner(b) = v} as the set of blocks belonging to v, and F(b) = {x ∈ Fin n | block(x) = b} as the fiber of vertices in block b.
· intro v let S := Finset.univ.filter (fun b : B => owner b = v) let F := fun b : B => Finset.univ.filter (fun x : Fin n => block x = b)
The set of vertices belonging to blocks owned by v is a subset of the union ⋃_{b ∈ S} F(b).
For any vertex x with owner(block(x)) = v, its block b = block(x) belongs to S by definition of S, and x belongs to F(b) by definition of F. Thus x lies in the union ⋃_{b ∈ S} F(b).
uses
Finset.mem_filter,Finset.mem_univ,true_and,Finset.mem_biUnion.mprhave hsub : (Finset.univ.filter (fun x : Fin n => owner (block x) = v)) ⊆ S.biUnion F := by intro x hx simp only [Finset.mem_filter, Finset.mem_univ, true_and] at hx exact Finset.mem_biUnion.mpr ⟨block x, by simp [S, hx], by simp [F]⟩
The number of vertices belonging to blocks owned by v is at most blocksPerOwner * blockBound.
By the subset inclusion, the number of vertices in blocks owned by v is at most the cardinality of ⋃_{b ∈ S} F(b). By Finset.card_biUnion_le_card_mul and the hypothesis that each block has size at most blockBound, this union has size at most |S| * blockBound. Since v owns at most blocksPerOwner blocks (|S| ≤ blocksPerOwner), multiplying by blockBound yields at most blocksPerOwner * blockBound.
uses
Finset.card_le_card,Finset.card_biUnion_le_card_mul,Nat.mul_le_mul_rightcalc (Finset.univ.filter (fun x : Fin n => owner (block x) = v)).card ≤ (S.biUnion F).card := Finset.card_le_card hsub _ ≤ S.card * blockBound := Finset.card_biUnion_le_card_mul S F blockBound (fun b hb => hblock b) _ ≤ blocksPerOwner * blockBound := Nat.mul_le_mul_right _ (howners v)
The cross-edge condition holds.
The required condition on cross-edges between distinct blocks is identical to the theorem hypothesis hedge.
· exact hedge
op869_block_postdegree_le_target_union- If each block has at most blockBound vertices, each owner has at most ownerBound vertices across all its blocks, and cross-edges only point to the target owner of the source block, then every vertex has predecessor post-degree at most blockBound + ownerBound.
Finset.mem_filter- An element belongs to Finset.filter p s if and only if it belongs to s and satisfies the predicate p.
Finset.mem_univ- Every element of a finite type belongs to the universal set Finset.univ.
true_and- Conjunction with True simplifies to the other conjunct: True ∧ p is equivalent to p.
Finset.mem_biUnion.mpr- An element belongs to a union of sets ⋃_{a ∈ s} f(a) if it belongs to f(a) for some a ∈ s.
Finset.card_le_card- If one finite set is a subset of another (s ⊆ t), then |s| ≤ |t|.
Finset.card_biUnion_le_card_mul- The size of a union of finite sets ⋃_{a ∈ s} f(a) is at most |s| * n provided each piece f(a) has size at most n.
Nat.mul_le_mul_right- Multiplying both sides of an inequality n ≤ m by a natural number k preserves the inequality: n * k ≤ m * k.
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.
/-- The block-count post-degree bound used by the fold simulation. -/theorem op869_block_postdegree_from_block_counts {n : ℕ} {V B : Type} [Fintype B] [DecidableEq V] [DecidableEq B] (P : Fin n → Finset (Fin n)) (block : Fin n → B) (owner : B → V) (target : B → Option V) (blockBound blocksPerOwner : ℕ) (hblock : ∀ b, (Finset.univ.filter (fun x => block x = b)).card ≤ blockBound) (howners : ∀ v, (Finset.univ.filter (fun b => owner b = v)).card ≤ blocksPerOwner) (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 + blocksPerOwner * blockBound := by classical apply op869_block_postdegree_le_target_union P block owner target blockBound (blocksPerOwner * blockBound) hblock · intro v let S := Finset.univ.filter (fun b : B => owner b = v) let F := fun b : B => Finset.univ.filter (fun x : Fin n => block x = b) have hsub : (Finset.univ.filter (fun x : Fin n => owner (block x) = v)) ⊆ S.biUnion F := by intro x hx simp only [Finset.mem_filter, Finset.mem_univ, true_and] at hx exact Finset.mem_biUnion.mpr ⟨block x, by simp [S, hx], by simp [F]⟩ calc (Finset.univ.filter (fun x : Fin n => owner (block x) = v)).card ≤ (S.biUnion F).card := Finset.card_le_card hsub _ ≤ S.card * blockBound := Finset.card_biUnion_le_card_mul S F blockBound (fun b hb => hblock b) _ ≤ blocksPerOwner * blockBound := Nat.mul_le_mul_right _ (howners v) · exact hedge