Automating the resolution of IMO 2025 Problem 1
Import du
Cette question était classée sans réponse par le forum à la collecte. Cela ne certifie pas qu’elle est un problème ouvert de recherche ; consultez les réponses et l’historique de la source.
Les énoncés et les résumés sont en anglais. Les repères ci-dessous et les articles Wikipédia disponibles en français vous aident à les lire. La source permet de retrouver la formulation complète et les discussions.
Énoncé du problème (anglais)
The problem 1 of the 2025 IMO is the following:
A line in the plane is called sunny if it is not parallel to any of the x-axis, the y-axis, and the line .
Let be a given integer.
Determine all nonnegative integers such that there exist distinct lines in the plane satisfying both of the following:
-
for all positive integers and with , the point is on at least one of the lines; and
-
exactly of the lines are sunny.
Warning: this post will spoil the solution.
I am interested here in the possibility of solving this problem in a fully automated way using deterministic solvers of some sort.
For specific values of , I was able to solve the problem using the Satisfiability Modulo Theories tool z3 and the following program:
from z3 import *
def solve_sunny_lines(n):
s = Solver()
lines = []
is_vertical = [Bool(f"v_{i}") for i in range(n)]
m = [Real(f"m_{i}") for i in range(n)]
c = [Real(f"c_{i}") for i in range(n)]
d = [Real(f"d_{i}") for i in range(n)]
is_sunny = [Bool(f"sunny_{i}") for i in range(n)]
for i in range(n):
s.add(
is_sunny[i] ==
And(
Not(is_vertical[i]),
m[i] != 0,
m[i] != -1
)
)
points = [(a, b) for a in range(1, n+1) for b in range(1, n+1) if a + b <= n + 1]
for (a, b) in points:
on_some_line = []
for i in range(n):
vertical_case = And(is_vertical[i], a == d[i])
non_vertical_case = And(Not(is_vertical[i]), b == m[i]*a + c[i])
on_some_line.append(Or(vertical_case, non_vertical_case))
s.add(Or(*on_some_line))
possible_k = []
for k in range(n+1):
s_k = Solver()
s_k.add(s.assertions())
s_k.add(Sum([If(is_sunny[i], 1, 0) for i in range(n)]) == k)
if s_k.check() == sat:
possible_k.append(k)
return possible_k
Which gives me:
>>> solve_sunny_lines(3)
[0, 1, 3]
>>> solve_sunny_lines(4)
[0, 1, 3]
>>> solve_sunny_lines(5)
[0, 1, 3]
>>> solve_sunny_lines(6)
[0, 1, 3]
This is a good hint for conjecturing the general solution . This conjecture can be proven by induction, e.g. using geometrical arguments (there are several solutions discussed at various places, see here for instance).
Question: is there a way to fully automate the resolution of the general case using a deterministic software tool (z3 or other)?
Naïvely, the best I could think of is:
-
Solving specific cases with some SMT tool like detailed above.
-
Formulating a conjecture in the form (*) where is a predicate (which I suppose might be) definable in Presburger arithmetic (since the problem involves natural numbers and no multiplication, but as mentioned in comment there are other difficulties...)
-
Since Presburger arithmetic is complete and decidable, we could (theoretically) algorithmically show (*) to be true.
Énoncé et contexte adaptés de MathOverflow · Weier
CC BY-SA 4.0 · Mise en forme adaptée ; formules conservées · Historique de la source
Sources et statut d’origine
- MathOverflow Statut dans la source : unanswered at collection
Dernière activité sur la question :
Couverture, sources et méthode
Ce compteur mesure les fiches importées, y compris des variantes distinctes. Il ne mesure pas le nombre total de questions mathématiques ouvertes dans le monde. Une même fiche peut appartenir à plusieurs domaines et sources.
Le répertoire n’est ni exhaustif ni actualisé en temps réel. « Signalé ouvert » décrit le classement observé dans la source à la date d’import ; chaque fiche importée n’a pas fait l’objet d’une vérification scientifique indépendante. Les 32 fiches expliquées ont été examinées séparément.
Formal Conjectures : seuls les énoncés « research open » sans preuve formelle signalée sont retenus ; leur balise est contrôlée dans une version précise du dépôt. Les variantes restent distinctes. Un « sorry » ne suffit pas à établir qu’un problème est ouvert.
Erdős : les problèmes résolus, indépendants ou accompagnés d’une solution Lean sont exclus, y compris « open (Lean) ». Les correspondances exactes avec les énoncés principaux de Formal Conjectures sont fusionnées.
Open Problem Garden : l’index des problèmes ouverts est croisé avec celui des résolus ; le spam, les clones identifiés et certains statuts obsolètes sont écartés. Les énoncés et leurs définitions sont attribués aux pages originales ; les formules sont conservées et le contenu reste sous GFDL. Les doublons reconnus entre sources sont regroupés, sans prétendre résoudre toutes les équivalences mathématiques.
OEIS : extraction directe des commentaires et formules conjecturaux, une fiche par suite, avec exclusion des résolutions mentionnées. MathOverflow et Math Stack Exchange : questions classées sans réponse par leur API, hors publications fermées et rubriques non scientifiques. Ces questions restent distinctes des conjectures signalées ouvertes. La collecte est partielle et datée ; les auteurs et licences figurent sur chaque fiche.
Des exclusions documentées tiennent compte des annonces récentes et des conflits de statut. Une variante plus forte ou un cas particulier peut rester ouvert après la résolution d’un autre énoncé.
Attribution : The Formal Conjectures Authors ; teorth/erdosproblems et ses contributeurs ; Open Problem Garden et ses contributeurs. Chaque source conserve sa licence.
- Formal Conjectures · 1 924 · Apache-2.0 / CC-BY-4.0
- Erdős Problems (teorth) · 622 · Apache-2.0
- Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
- OEIS · 18 857 · CC BY-SA 4.0
- MathOverflow · 19 035 · CC BY-SA (version on each entry)
- Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)