Ir al contenido
m·amathatlas
ExplorarAcerca deProblemas abiertosAutores citadosMi bibliotecaFeedback
Iniciar sesión
FRENES
Cargando vistas…Solo vistas recientes, en todos los idiomas. El historial de Vercel no está disponible para esta página. Las visitas repetidas en la misma pestaña se agrupan durante 30 minutos.
CompartirLinkedInXFacebookWhatsApp
← Todos los problemas abiertos
Pregunta sin respuesta

Automating the resolution of IMO 2025 Problem 1

Lógica matemáticaÁlgebra

Importado el 28 de noviembre de 2026

El foro clasificaba esta pregunta como sin respuesta en la fecha de recopilación. Esto no certifica un problema abierto de investigación; consulta las respuestas y el historial de la fuente.

Los enunciados y resúmenes están en inglés. Los conceptos de apoyo y los artículos de Wikipedia disponibles en español ayudan a comprenderlos. La fuente conserva la formulación completa y el debate.

Enunciado del problema (inglés)

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 x+y=0x + y = 0x+y=0.

Let n⩾3n ⩾ 3n⩾3 be a given integer.

Determine all nonnegative integers kkk such that there exist nnn distinct lines in the plane satisfying both of the following:

  • for all positive integers aaa and bbb with a+b⩽n+1a + b ⩽ n + 1a+b⩽n+1, the point (a,b)(a, b)(a,b) is on at least one of the lines; and

  • exactly kkk of the nnn 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 nnn, 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 k∈{0,1,3}k \in \{0, 1, 3\}k∈{0,1,3}. 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 ∀n≥3,(P(k,n)  ⟺  k=0∨k=1∨k=3)\forall n \geq 3, (P(k, n) \iff k = 0 \lor k = 1 \lor k = 3)∀n≥3,(P(k,n)⟺k=0∨k=1∨k=3) (*) where PPP 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.

Enunciado y contexto adaptados de MathOverflow · Weier

CC BY-SA 4.0 · Formato adaptado; fórmulas matemáticas conservadas · Historial de la fuente

Temas : lo.logic · computer-science · computer-algebra · mathematical-software · presburger-arithmetic

Autores indicados por la fuente : Weier

Fuentes y estado original

  • MathOverflow Estado en la fuente : unanswered at collection

Última actividad en la pregunta : 9 de octubre de 2025

Cobertura, fuentes y método

Este contador mide las fichas importadas, incluidas variantes distintas. No cuenta todas las preguntas matemáticas abiertas del mundo. Una ficha puede pertenecer a varias áreas y fuentes.

El repertorio no es exhaustivo ni se actualiza en tiempo real. « Abierto según la fuente » describe la clasificación observada al importar; no se ha verificado independientemente cada ficha importada. Las 32 fichas explicadas se revisaron por separado.

Formal Conjectures: se conservan solo enunciados « research open » sin prueba formal indicada; se comprueba su etiqueta en una versión concreta del repositorio. Las variantes siguen separadas. Un « sorry » no basta para establecer que el problema sigue abierto.

Erdős: se excluyen problemas resueltos, independientes o con una solución Lean, incluidos los « open (Lean) ». Se fusionan las coincidencias exactas con los enunciados principales de Formal Conjectures.

Open Problem Garden: se contrasta el índice abierto con el de resueltos; se excluyen spam, copias identificadas y algunos estados obsoletos. Los enunciados y sus definiciones se atribuyen a las páginas originales; se conservan las fórmulas y el contenido sigue bajo la GFDL. Se agrupan los duplicados reconocidos, sin resolver todas las equivalencias matemáticas.

OEIS: extracción directa de comentarios y fórmulas conjeturales, una ficha por sucesión, excluyendo resoluciones mencionadas. MathOverflow y Math Stack Exchange: preguntas clasificadas sin respuesta por su API, excluyendo publicaciones cerradas y categorías ajenas a la investigación. Se distinguen de los problemas señalados como abiertos. La colección es parcial y fechada; cada ficha atribuye autores y licencia.

Las exclusiones documentadas tienen en cuenta anuncios recientes y estados contradictorios. Una variante más fuerte o un caso particular puede seguir abierto tras resolverse otro enunciado.

Atribución: The Formal Conjectures Authors; teorth/erdosproblems y sus colaboradores; Open Problem Garden y sus colaboradores. Cada fuente conserva su licencia.

  • Formal Conjectures · 1924 · 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)
Comunicar un avance o una corrección
mathatlas

Un atlas independiente para comprender, leer y cuestionar la investigación.

Los artículos presentan resultados anunciados en distintas fases de verificación.
NewsletterDar mi opiniónAcerca de Datos y privacidad
Created by Sonny Mupfuni