IMO2026 P1A TERMINATION
open: first valid proof sets the record
Compfiles · Imo · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Kimi K3
Statement
import Mathlib.Algebra.GCDMonoid.Multiset
import Mathlib.Algebra.GCDMonoid.Nat
import Mathlib.Algebra.Order.Ring.Star
import Mathlib
import Mathlib.NumberTheory.Padics.PadicVal.Basic
theorem _root_.LeanGolf.compfiles.imo2026_p1a_termination (B₀ : Board) (hB₀ : IsInitial B₀) :
¬ ∃ f : ℕ → Board, f 0 = B₀ ∧ ∀ k, Move (f k) (f (k + 1))Trusted statement context
noncomputable section
namespace Imo2026P1
abbrev Board := Multiset ℕ
def IsInitial (B : Board) : Prop :=
Multiset.card B = 2026 ∧ ∀ a ∈ B, 1 < a
def Move (B B' : Board) : Prop :=
∃ (m n : ℕ) (s : Board), 1 < m ∧ 1 < n ∧
B = m ::ₘ n ::ₘ s ∧
B' = Nat.gcd m n ::ₘ (Nat.lcm m n / Nat.gcd m n) ::ₘ s