The source's Claim: the gcd of the -adic valuations is invariant under a move
ProvedIMO2026P1.gcdExp_invariantThe heart of the problem. Fix a prime . The gcd of the -adic valuations of the entries is unchanged by any move.
The source's proof: if and with , then the move produces valuations and ; and since , the gcd over the whole board is unmoved. In the source's words, the board is running "essentially a 2026-number Euclidean algorithm", one per prime, and what a Euclidean algorithm preserves is the gcd.
Both parts of the problem follow from this: at a terminal board the valuations are , whose gcd is , so equals the gcd of the starting valuations for every — a quantity fixed by the starting board alone.
Primality of is carried because the source says "fix a prime ". It does no work in the argument: for a non-prime every valuation is and both sides are , so the statement would hold without it, but that branch is vacuous and is not the source's claim.
import Definitions.Def_IMO2026P1_Blackboard import Mathlib.Tactic
open IMO2026P1
theorem IMO2026P1.gcdExp_invariant (p : ℕ) (hp : p.Prime) {s t : Board} (h : Move s t) :
gcdExp p t = gcdExp p s := by sorryRead-back
What the Lean code literally says, in plain math · claude-opus-5
IMO2026P1.gcdExp_invariant
What the statement says. For every natural number , if is prime, then for all finite multisets and of natural numbers (both left implicit, to be inferred from the move hypothesis) such that there is a move from to , the two natural numbers and are equal:
The quantity unfolded. For a board , is obtained by replacing each entry of by — the exponent of in the prime factorization of , as given by Mathlib's Nat.factorization, with the conventions , , and for every whenever is not prime — and then folding the resulting multiset of exponents with , starting from :
Since is commutative and associative and , the value does not depend on the order of the fold: it is the greatest common divisor of the multiset of -adic exponents of the entries, where exponent- entries are neutral (they do not force the result to ), the empty board yields , and a board all of whose entries have exponent yields . Example: ; .
The move relation is as in the other statement: there exist with , , an occurrence of in and an occurrence of in with that copy of deleted, and
1. Hypotheses, and what they exclude. There are two: ( is prime) and (there is a move from to ).
- — the conclusion does not mention it. The conclusion mentions only as the index of the exponent function; nothing in it requires prime. This hypothesis excludes no boards: it restricts the index , so for every board pair the instances , , , , , … are outside the scope. Concretely, with and , the instance is excluded even though both boards are otherwise in scope.
- — the conclusion does not mention it. The conclusion is a bare equality of two numbers computed from and from ; it refers to no move, no , no . This hypothesis excludes every pair of boards not related by a single move:
- any having fewer than two occurrences of values greater than is excluded entirely (no whatsoever is in scope with it): e.g. , , ;
- pairs related by zero moves or by more than one move are excluded: e.g. is excluded, and so is the pair , if it is not produced by one move;
- a board that is not the exact output of a move is excluded as target: with , the target is in scope while is not.
2. The prime, and the non-prime case. Each side computes the greatest common divisor of the -adic exponents of the entries of the board in question: the left side over the entries of , the right side over the entries of (with the -with- conventions above). When is not prime — including and — the exponent function Nat.factorization is supported on primes, so for every entry of every board; both sides are then the greatest common divisor of a multiset of zeros, namely , and the claimed equality would read . The hypothesis rules this case out: the statement is asserted only for prime and says nothing whatsoever for composite , for , or for .
3. Existence / availability of a move. Not applicable in the sense asked of the other statement: this statement has no existential conclusion. It is stated only for pairs already related by a move, and therefore says nothing about any board from which no move is possible.
4. Size. No hypothesis constrains the number of entries of or of , and no size relation is asserted in the conclusion. Unfolding the move hypothesis, however, must contain at least two occurrences (an , and an in the remainder), and is built by deleting two occurrences and adjoining two, so any pair in scope satisfies . That is a consequence of the definition, not a separate claim, and no upper bound of any kind appears.
5. Degenerate cases.
- Empty board: , but the empty board can be neither nor under the move hypothesis ( needs at least two entries, and receives two adjoined entries), so it is out of scope.
- All s, e.g. : . Such a board admits no move, so it is out of scope as ; and since forces at least one of , to exceed , it is out of scope as as well.
- Contains : not excluded — this statement has no positivity hypothesis. A entry can never be selected as or (both must exceed ), so it survives any move, and makes it neutral in the (a junk convention: is divisible by every power of , yet the exponent returned is ). Concretely with , gives , and for the statement asserts , i.e. .
- Exactly one entry above : as a source, e.g. (where ), no move exists, so it is out of scope. As a target it can occur: with gives , and the statement asserts , i.e. .
- Hypotheses unsatisfiable: for non-prime the first hypothesis is false and the statement is vacuous at that ; for any with fewer than two entries exceeding , or any pair not related by exactly one move, the second hypothesis is false and the statement is vacuous there. The two hypotheses are jointly satisfiable (e.g. , , ), so the statement is not vacuous overall.
Not asserted. The statement covers a single move only: it says nothing about reachability, about chains of moves, about terminal boards, or about invariance along a whole play. It does not assert that the common value is positive, nonzero, or bounded; does not assert anything for non-prime ; does not assert anything about the ordinary gcd of the entries themselves, nor about their product, sum, or cardinality; does not assert any inequality or monotonicity, only equality of two natural numbers; does not identify which entry realizes the exponent-gcd; does not claim that and are unique or determined by and ; does not claim a converse (that equality of these quantities implies a move); makes no use of bigPart (the exponents are taken over all entries of the board, including entries equal to or ), and imposes no positivity hypothesis on the entries.