Maintaining a search-optimal tree
Statement
Here is a completely new reformulation of almost the same problem. I hope it is more attractive to mathematicians.
[new version]
A binary tree is either:
• a leaf, denoted by , or
• an internal node consisting of a pair , where both and are binary trees; we shall call the left child of the node, and the right child of the node.
We say that a binary tree is optimal if the difference between its longest and shortest path (starting from the root to a leaf) is at most one. Where by a path of a tree we mean a sequence , such that is either the left or right child of .
Our game is parameterized by two natural numbers and ; its initial configuration is a pair . The game consists of rounds. At each round:
• player A chooses a leaf from the tree and substitutes it with “the singleton internal node” , then
• player B chooses any node (either internal or a leaf) and substitutes it with any tree having the same number of leaves as the tree rooted at the chosen node; the number is …
Posed by Michal R. Przybylek · co.combinatorics
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-99190.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-99190.lean
import Mathlib /-! # Maintaining a search-optimal tree Source: https://mathoverflow.net/questions/99190 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_99190 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_99190