Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Berggren tree theorem: every valid Euclid pair is reached from `(2,1)` by a

Proved
BerggrenPrice.berg_tree

by raver1975 · Sep 12, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogalgebra

Berggren tree theorem: every valid Euclid pair is reached from (2,1) by a unique word of Berggren generators.

theorem BerggrenPrice.berg_tree(v : Node) (hv : IsNode v) :
    ∃! w : List (Fin 3), applyWord berg w root = v := by sorry

Formalization Note Transplanted verbatim from the Aether Catalog source Algebra/BerggrenPriceInterlock/Trees.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.

Preamble
-- Thm stub generated from Algebra/BerggrenPriceInterlock/Trees.lean
import Mathlib
import Definitions.Def_Algebra_BerggrenPriceInterlock_Core
import Definitions.Def_Algebra_BerggrenPriceInterlock_Trees

/-!
# Berggren–Price interlock, Part II: the two trees over one vertex set

In Euclid parameters `(m,n)` the Barning–Hall–**Berggren** tree is generated by

  `bA (m,n) = (2m - n, m)`,  `bB (m,n) = (2m + n, m)`,  `bC (m,n) = (m + 2n, n)`,

with `2×2` determinants `+1, -1, +1`, while **Price**'s tree is generated by

  `pA (m,n) = (2m, m - n)`,  `pB (m,n) = (2m, m + n)`,  `pC (m,n) = (m + n, 2n)`,

with determinants `-2, +2, +2`.  Both are ternary trees on the *same* vertex set
`IsNode` with the *same* root `(2,1)`: this is the "interlock".

## Main results

* `isNode_berg`, `isNode_price` — the six generators preserve valid Euclid parameters
  (the delicate point for Price is that determinant `±2` still preserves coprimality,
  because opposite parity forces the gcd to be odd).
* `berg_parent`, `price_parent` — the two descent (parent) rules: Berggren compares
  `m` with `2n` and `3n` (continued-fraction style), Price halves `m` or `n`
  (binary-GCD style).
* `berg_tree`, `price_tree` — every node is reached from `(2,1)` by a **unique** word
  in each tree.
-/

open BerggrenPrice

/-! ### The six generators -/





/-! ### The generators preserve nodes -/









/-! ### The size `m + n` strictly increases -/



/-! ### Injectivity and disjointness of the three subtrees -/





/-! ### The two descent (parent) rules -/



/-! ### The two tree theorems -/
Formal statement
theorem BerggrenPrice.berg_tree(v : Node) (hv : IsNode v) :
    ∃! w : List (Fin 3), applyWord berg w root = v := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Algebra/BerggrenPriceInterlock/Trees.lean#L252

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me