# Ferreira v2: audit of the claimed impossibility proof Evidence checked **2026-11-28 (UTC)**. **Verdict:** Ferreira's four-page arXiv:1506.06621v2 does not prove nonexistence. The subtraction producing printed (41) loses a factor of `z`. Even treating that as a typographical error, the decisive implication (43), (46) ⇒ (47) is false: correct substitution gives an identity, not an obstruction. An integer diagnostic below verifies both failures. No subsequent corrected Ferreira proof was located; this is a bounded literature finding, not a proof that no correction exists anywhere. The exact proposition examined is the existence statement [MagicSquares.exists_magic_square_squares](https://lefttosolve.com/p/MagicSquares.exists_magic_square_squares): there exist `M : Fin 3 → Fin 3 → ℕ` and `t : ℕ` such that `M.Injective2`, every entry is positive and a square, each row and column sums to `t`, and both main diagonals sum to `t`. Ferreira claims its negation. Positivity and all nine entries being distinct are essential. The primary object inspected was the [actual four-page PDF, v2, 26 June 2015](https://arxiv.org/pdf/1506.06621v2), §2, “The proof,” particularly printed pp. 3–4, (31)–(49). The [HTML rendering of the same version](https://arxiv.org/html/1506.06621v2#S2.E41) corroborates (41), including its missing factor. The calculations below are this audit's independent deductions from those printed premises. ## Trace of the elimination and the variables Write the entries in the paper's order as ```text a b c d ε f g h i ``` One can derive the center relation without relying on the paper's substitutions: summing the four lines through the center counts all entries once and the center three additional times. The sum of all entries is `3x` from the rows, so `4x = 3x + 3ε`, hence `x = 3ε`. Opposite entries therefore sum to `2ε`. There is an earlier repairable slip: printed (11), p. 2, has `g = x − ε − i`; solving (3) instead gives `g = x − h − i`. This does not invalidate the independently derivable center relation or parameterization (21)–(28). Granting that repair isolates the substantive elimination failure below. In (31)–(37), `m,e,n` are **positive square roots**, with `0 < m < e < n`, and ```text a = n², ε = e², i = m², n² + m² = 2e². ``` In (38)–(40), `c` is the upper-right **cell value**, not a square-root index: ```text c = (n+w)², g = (m−z)², w,z > 0, m−z > 0. ``` Thus the second diagonal gives `(n+w)² + (m−z)² = 2e²`. Equation (40) applies the same expression as (37) to the second pair of roots, replacing `n` by `n+w` and `m` by `m−z`. It does **not** identify `n` with `c` or with `(n+w)²`. The ordering itself can be granted: each opposite corner pair straddles the center. Its two larger corners are adjacent, and a rotation/reflection can put the smaller of these at `a` and the larger at `c`. Then their opposite corners have `g < i < ε`, yielding the positive root differences `w,z`. This removes an avoidable objection to (38)–(39). Define `F(e,u,v)` as the left-hand side printed in (37), with its superfluous opening parenthesis balanced: ```text F(e,u,v) = (u−e)[−2e²+2(1+e)²+2(−1−e+u)] −[−2−2e²+2(1+e)²−2(e−v)](e−v). ``` Direct expansion of the two brackets gives `2(e+u)` and `2(e+v)`. Consequently ```text F(e,u,v) = 2(u²−e²) − 2(e²−v²) = 2(u²+v²−2e²). ``` This verifies (37) from (31), and (40) from the second diagonal. Subtracting these two equations and dividing by 2 gives exactly ```text 2nw + w² − 2mz + z² = 0, ``` or `2nw + w² + z(−2m+z) = 0`. Printed (41) instead has ```text 2nw + w² + (−2m+z) = 0. ``` **This is the first false algebraic implication in the (37)–(49) elimination.** The factor `z` cannot be dropped. The printed equation is linear in `z`, so the quadratic roots (42)–(43) do not solve it in general. They do solve the corrected equation. ## Repairing (41) still does not yield the conclusion Put `R = m²−2nw−w²`. Grant the corrected quadratic, the necessary condition that `R` is a positive integer square, and the positive-root branch in (43): `z = m−√R`. Then `m−z = √R`. Substitution into the left-hand side of printed (46) gives ```text (m−z)² + (n+w)² − (m²+n²) = R + (n+w)² − m² − n² = −2nw−w² + (n+w)² − n² = 0. ``` It is identically zero. Printed (47), on p. 4, instead asserts ```text n² − 2nw − w² − (n+w)² = 0. ``` Its left-hand side is `−2w(2n+w)`, which is strictly negative when `n,w > 0`. The roots `w=0` and `w=−2n` in (48)–(49) solve this incorrectly introduced equation, not the actual substitution. Solving the difference of the two diagonal relations for `z` and inserting that solution into that same difference provides no further restriction on `w`. The four other cells still have to be squares. With `E=e²`, `P=n²−E`, and `Q=(n+w)²−E`, they are `E−P−Q`, `E−P+Q`, `E+P−Q`, `E+P+Q` by (21)–(28). Their simultaneous square conditions are not resolved by the corrected elimination. ## Exact diagnostic and reproducible check Take `(m,e,n,w,z) = (127,145,161,6,8)`. Then ```text 127² + 161² = 42050 = 2·145², 119² + 167² = 42050, R = 14161 = 119², z = 127−119 = 8. ``` Thus (37), (38)–(40), (43), and (44)–(46) hold, with all stipulated root inequalities. Printed (41) has residual **1722**, whereas its corrected form has residual **0**. Printed (47) has residual **−3936**. The associated full magic array is ```text 25921 9265 27889 22993 21025 19057 14161 32785 16129 ``` All nine entries are positive and distinct; all eight line sums are 63075. The corners and center are squares, and the four edge cells are not. This is a counterexample to the claimed algebraic implications from the diagonal premises; it is **not** a nine-square solution or a counterexample to the paper's theorem itself. Run the following with Python 3; it requires no packages or network. It evaluates the unsimplified printed expressions as well as the diagnostic array: ```sh python3 - <<'PY' from math import isqrt m,e,n,w,z = 127,145,161,6,8 def F(e,u,v): return ((u-e)*(-2*e*e+2*(1+e)**2+2*(-1-e+u)) -(-2-2*e*e+2*(1+e)**2-2*(e-v))*(e-v)) assert 0 < m-z < m < e < n < n+w and w > 0 and z > 0 assert F(e,n,m) == F(e,n+w,m-z) == 0 D = 2*n*w+w*w assert D+z*(-2*m+z) == 0 assert D+(-2*m+z) == 1722 # printed (41) R = m*m-D assert isqrt(R)**2 == R and z == m-isqrt(R) assert (m-z)**2+(n+w)**2-(m*m+n*n) == 0 # actual (46) assert n*n-D-(n+w)**2 == -3936 # printed (47) E=e*e; P=n*n-E; Q=(n+w)**2-E A=[[E+P,E-P-Q,E+Q],[E-P+Q,E,E+P-Q],[E-Q,E+P+Q,E-P]] entries=sum(A,[]) assert len(set(entries)) == 9 and min(entries) > 0 lines = ([sum(row) for row in A] +[sum(A[i][j] for i in range(3)) for j in range(3)] +[sum(A[i][i] for i in range(3)), sum(A[i][2-i] for i in range(3))]) assert lines == [63075]*8 assert sum(isqrt(v)**2 == v for v in entries) == 5 print('PASS: diagonal premises hold; printed (41), (47) fail') PY ``` This command passed locally. The displayed expansion proves the general identities; the numerical check independently exposes the failed implications. No Lean verification or resolution of the original existence proposition is claimed. ## Correction search and limits of the record The [current arXiv submission history for Ferreira](https://arxiv.org/abs/1506.06621) lists v1 (24 April 2015) and v2 (26 June 2015), with v2 the last revision. Searches made on the audit date for the exact identifier and author/title, combined with `correction`, `corrected`, `erratum`, `corrigendum`, and `v3`, did not locate a subsequent corrected Ferreira proof. A missing revision or journal citation is not the mathematical reason for the verdict: the explicit computations above are. As a later primary status check, Auel and Singer's [*The algebraic geometry of 3-by-3 magic squares of squares*, arXiv:2609.09351v1, 8 September 2026, abstract](https://arxiv.org/abs/2609.09351v1), still describes the distinct-entry existence question as open. The target page also presents it as open when retrieved on the audit date. These are dated status evidence, not an exhaustive certification of all later claims. **Evidence still unavailable:** no located author-issued erratum, later corrected proof, or independently verified replacement repairing this elimination. An unindexed correction or work after the cited status report cannot be excluded. The surviving requirement is a valid argument controlling all four edge-square conditions; the inspected four-page proof supplies none after its algebra is repaired.