Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Magic Squares · exists_semi_magic_square_cubes

Source:Wikipedia lists of open problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Variant of:Magic Squares
Statement:

Does there exist a 3×33 \times 3 semi-magic square whose entries are all distinct positive integer cubes? A square is semi-magic if all rows and columns sum to the same total.

More precisely, we seek a 3×33 \times 3 matrix with entries aija_{ij} such that each aij=nij3a_{ij} = n_{ij}^3 for some positive integer nijn_{ij}, all nine cubes are distinct, and all row sums and column sums are equal.

Reference: Semi-Magic Square of Cubes

Subjects:Combinatorics (math.CO); Number Theory (math.NT)
MSC classes:05, 11
Tags:question
Cite as:NS.08161 [math.CO] · NS.08161v1 for this version
Declaration:MagicSquares.exists_semi_magic_square_cubes
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100; accepted critique: up to 100
Statement hash:615bd6c0479f6541f147269ead158bdebc63b75be45a24c0000d0e9e81464f14
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Wikipedia/MagicSquares.lean

Formal statement

theorem exists_semi_magic_square_cubes :
    ∃ m : Fin 3 → Fin 3 → ℕ, ∃ t : ℕ,
       m.Injective2 ∧
       (∀ i j, ∃ n : ℕ, 0 < n ∧ m i j = n ^ 3) ∧
       (∀ i, ∑ j, m i j = t) ∧
       (∀ j, ∑ i, m i j = t)
Show the full Challenge.lean (74 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Magic Squares

*References:*

* [Magic Square of Squares - Wikipedia](https://en.wikipedia.org/wiki/Magic_square_of_squares)
* [multimagie.com](http://www.multimagie.com/English/SquaresOfSquaresSearch.htm)
* [Semi-Magic Square of Cubes](https://unsolvedproblems.org/index_files/SquareofCubes.htm)
* [Magic Square of Squares](https://static.nsta.org/pdfs/QuantumV6N3.pdf)
-/

@[expose] public section

namespace MagicSquares

/--
Does there exist a $3 \times 3$ matrix such that every entry is a distinct square,
and all rows, columns, and diagonals add up to the same value?

0 is excluded, as a Magic Square of Squares with 0 and 8 distinct squares is know is knownn.
See [Magic Square of Squares](https://static.nsta.org/pdfs/QuantumV6N3.pdf)
-/
@[category research open, question, AMS 11]
theorem exists_magic_square_squares :
    ∃ m : Fin 3 → Fin 3 → ℕ, ∃ t : ℕ,
       m.Injective2 ∧
       (∀ i j, 0 < (m i j) ∧ IsSquare (m i j)) ∧
       (∀ i, ∑ j, m i j = t) ∧
       (∀ j, ∑ i, m i j = t) ∧
       m 0 0 + m 1 1 + m 2 2 = t ∧
       m 0 2 + m 1 1 + m 2 0 = t := by
  sorry

/--
Does there exist a $3 \times 3$ semi-magic square whose entries are all distinct positive
integer cubes? A square is semi-magic if all rows and columns sum to the same total.

More precisely, we seek a $3 \times 3$ matrix with entries $a_{ij}$ such that each
$a_{ij} = n_{ij}^3$ for some positive integer $n_{ij}$, all nine cubes are distinct,
and all row sums and column sums are equal.

*Reference:*
[Semi-Magic Square of Cubes](https://unsolvedproblems.org/index_files/SquareofCubes.htm)
-/
@[category research open, question, AMS 5 11]
theorem exists_semi_magic_square_cubes :
    ∃ m : Fin 3 → Fin 3 → ℕ, ∃ t : ℕ,
       m.Injective2 ∧
       (∀ i j, ∃ n : ℕ, 0 < n ∧ m i j = n ^ 3) ∧
       (∀ i, ∑ j, m i j = t) ∧
       (∀ j, ∑ i, m i j = t) := by
  sorry

end MagicSquares

To prove it: keep every definition of Challenge.lean unchanged and prove MagicSquares.exists_semi_magic_square_cubes with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_exists_semi_magic_square_cubes : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk wikipedia-magicsquares--exists-semi-magic-square-cubes      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch wikipedia-magicsquares--exists-semi-magic-square-cubes
nosorry submit wikipedia-magicsquares--exists-semi-magic-square-cubes nosorry/wikipedia-magicsquares--exists-semi-magic-square-cubes/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.