feat : add complete formal solution for IMO 2025 P6#166
Closed
lean-tom wants to merge 8 commits intodwrensha:mainfrom
Closed
feat : add complete formal solution for IMO 2025 P6#166lean-tom wants to merge 8 commits intodwrensha:mainfrom
lean-tom wants to merge 8 commits intodwrensha:mainfrom
Conversation
Owner
|
Please move the new file into the directory |
Owner
|
When I open this file in my code editor I see many errors. |
Fix file location to match project structure as requested.
Owner
|
Thank you for fixing the errors. There are still many warnings like Please fix them too. |
Contributor
Author
|
Hi @dwrensha! |
Owner
|
Thanks! Squashed and merged in 435d0fe. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I have successfully formalized the complete solution for IMO 2025 Problem 6 . To my knowledge, this is the first complete formalization of this problem in Lean 4 without any
sorry.The proof consists of approximately 4,700 lines and is fully compatible with Lean v4.28.0-rc1 and the latest Mathlib.
Methodology
The solution utilizes a multi-disciplinary approach to handle the complexity of the grid configuration:
1. Lower Bound (Necessity - Topological Combinatorics)
We establish the lower bound$n + 2\sqrt{n} - 3$ by applying the Erdős–Szekeres Theorem to the coordinates of the uncovered (black) squares.
max/mincasework at the boundaries where LIS and LDS relations shift.Boundary Filtering: We handled the grid boundary conditions by filtering the set of black squares (using
2. Upper Bound (Sufficiency - Elementary Number Theory)
For$n=k^2$ (specifically $n=2025$ ), we provide an explicit construction:
Index-Based Fiber Construction: To ensure disjointness, we define two integer forms for each point$p = (x, y)$ :
Fiber Mapping: We consider the fibers of the mapping$p \mapsto (s, t)$ , where:
This integer division (Gaussian bracket) naturally partitions the grid into disjoint regions.
Lattice-Point Black Squares: The uncovered (black) squares are precisely the "lattice points" where both forms are divisible by$k^2 + 1$ :
all_black= {The Matilda tiles are then defined by removing the black squares from these fibers:
$p$ | $s = \lfloor val_s(p) / (k^2 + 1) \rfloor$ and $t = \lfloor val_t(p) / (k^2 + 1) \rfloor$ } \
M_(s, t)= {all_blackDisjointness and Geometry:
Acknowledgments & Attribution
Division of Labor
Lead Architect (human): Conceived the global proof strategy and decomposed the problem into a granular series of verifiable lemmas. Key strategic contributions include the set-theoretic topological partitioning, the fiber-based linear congruence system, and the boundary-filtering logic.
AI Assistant (Gemini 3 Pro): Provided implementation support, translating human-designed lemmas into Lean 4 syntax and assisting with the iterative refinement of local proof steps.
Methodology
This formalization is the result of a human-led, iterative process. While AI was used to accelerate implementation, the logical architecture and lemma decomposition were entirely human-driven. Every strategic leap was a conscious mathematical decision, ensuring that the final proof reflects a genuine conceptual understanding of the problem.