Lemma 6 — every edge of satisfies
ProvedHarelTarjan.Compressed.lemma6_sizeC_doublesLet be a rooted tree with root and its compressed tree. Every edge of , that is, every vertex , satisfies
Sizes in at least double from child to parent. This is the fact behind the shallow depth of (Lemma 7) and the rank counting of Lemma 8.
Formalization Note The hypothesis expresses that is an edge of ; for the root, where the Lean map has , the inequality would be false.
import Mathlib import Definitions.Def_HarelTarjan_Compressed_RootedTree import Definitions.Def_HarelTarjan_Compressed_HeavyPath import Definitions.Def_HarelTarjan_Compressed_CompressedTree
namespace HarelTarjan.Compressed
theorem lemma6_sizeC_doubles {V : Type*} [Fintype V] [DecidableEq V] (T : RootedTree V) (v : V)
(hv : v ≠ T.root) :
2 * sizeC T v ≤ sizeC T (pC T v) := by sorry
end HarelTarjan.Compressed
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. is any finite type with decidable equality. is any rooted tree on with root and parent map , where:
- ;
- every vertex reaches under some iterate , .
is any vertex with .
Definitions used.
- is the number of with for some , including itself.
- A vertex is heavy when and .
- for the least with not heavy.
- The compressed parent is , and for .
- is the number of with for some , including itself.
Statement. The theorem asserts
where because . The inequality is non-strict.
The statement applies to every non-root vertex. It is not restricted to apex vertices.
Degenerate cases. If has exactly one element, no vertex satisfies , so the statement is vacuously true. For the root itself nothing is asserted.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.