A blue cut gem, point up, with sparkles on its edges; light from inside leaves one corner as a small rainbow.

Carles Marín 🏛️ Atlas of blueprints

What moves me is curiosity about the details that nature hides. Here is where it has led: research papers in mathematics, physics and computing, with their proofs, data and code.

“Imagination is the researcher’s most powerful instrument.”

Papers

74 preprints. Each page has the abstract, the PDF, the DOI and, where they exist, the blueprint, the labs and the formalization.

Mathematics 49

Mathematics

A divisor-sum criterion for Kassel--Reutenauer polynomial divisibility modulo odd primes

Carles Marín Muñoz

Show moreShow less

We give an exact divisor-sum criterion for the integers n such that p divides the sum of divisors of n but the Kassel--Reutenauer polynomial P_n(q) is not divisible by [p]_q over F_p[q]. We classify the odd primes for which the implication holds for every n and construct infinitely many exceptions for every other prime. The note includes complete proofs, exact computational checks, and an illustrated counting question.

In response to the problem posed by J. M. Rodríguez Caballero. The author used AI assistance in the research and preparation. No external human peer review is claimed.

Number theory & characters

Mathematics

How Many Dyck Words Do the Divisors of an Integer Make? II. Generic Rigidity and Persistent Ambiguity

Carles Marín Muñoz

Show moreShow less

For the Dyck words of Rodríguez Caballero attached to integers with odd part r^a s^b, we study the excess E(a,b) between the number of cells of the associated line arrangement and the number of distinct words. A semilinear dimension criterion characterises linear excess, and a finite affine certificate gives a sufficient test for each fixed a. We obtain an explicit linear term and period bound for the cell count, a wall-crossing weight, antichain and fibre bounds, and a fixed number of power sums that determines the word.

Exact certificates, checked by a separate verifier and combined with a written reduction, give E(a,b)=Θ_a(b) for a=2,3,4,5 and hence W(a,b)=C_a b²+O_a(b), including C_5=7657/210. We prove a structural result in the all-positive chamber for every a≥2 and explain the nonintegral shifts by the denominator a+1. For a=3 a further computer-assisted lemma confines coincidences to a neighbourhood of 25 lines; nine explicit families produce coincidences and lead to a compact conjectural formula for E(3,b), checked by exact enumeration. We also give exact intersections of distinct two-prime shapes and a sampled analysis of ambiguity among integers. The written reduction and affinity argument remain premises of the computer-assisted result, and the formula for E(3,b) remains conjectural. Selected statements are checked in Isabelle/HOL. This record includes English and Spanish versions and a reproducibility package with code, exact data, logs and certificates. The research used an AI assistant.

Companion blueprint. https://karlesmarin.github.io/blueprints/dyck-divisors-rigidity/ presents the statements with their proof and verification status, dependencies, figures and six interactive labs. The English and Spanish PDFs are also available there.

Combinatorics & graphs Certificates (exact, SAT/SMT) Isabelle/HOL Labs in the browser

Mathematics

Maximum number of spanning trees of a multigraph with m edges: exact values for m ≤ 22

Carles Marín Muñoz

Show moreShow less

Let T(m) be the largest number of spanning trees of a connected loopless multigraph with m edges, the number of vertices being free; this is the first question of Problem 2 of R. Kenyon (1996). This record gives T(m) and the complete list of extremal multigraphs, up to isomorphism, for m ≤ 22, together with the maxima S(m) over simple graphs and M(m) over multigraphs with a multiple edge:

T(m) = 1, 2, 3, 5, 8, 16, 24, 45, 81, 135, 231, 432, 720, 1280, 2304, 4096, 7168, 12584, 22720, 40960, 72657, 130691 (m = 1, …, 22).

For m ≤ 18 every value and every list of extremizers is backed by a certificate (53 certificates, JSON Lines) accepted by a stand-alone checker that uses only the Python standard library; the completeness of every enumeration in the certificates is checked by the checker's own counting (orbit sums against labelled counts from generating functions), without nauty. For 19 ≤ m ≤ 22 the values come from an exhaustive search with the same proved pruning rules, whose skeleton lists come from nauty; there is no certificate for these four values. From m = 8 on every extremizer is simple with degrees 3 and 4; T(22) is attained only by the circulant C11(1,3). The sequence was not in the OEIS when this record was prepared.

Files: the note (PDF), with a Spanish version (PDF); the values (CSV, JSON); all extremizers of T, S and M with edge lists and multiplicities (JSON, text); the certificates with SHA-256 sums; the checker, an independent re-check of the graph file and the search code (MIT licence), with every pruning rule and its proof and the certificate format; the logs of all checks and controls; a README with the commands that reproduce the checks. The upper bound τ(G)2·8m < 27m and the answer to Kenyon's second question are due to F. Majchrzak (doi:10.5281/zenodo.24523144). I worked with an AI assistant.

Companion blueprint. https://karlesmarin.github.io/blueprints/kenyon-spanning-trees/ — a web companion to this note: every result (Theorem 2, the computational result for m = 19–22, Lemmas 5–11 and Corollary 12) as a node with its status (certified by the 53 certificates, computed, or proved on paper), plain-language summaries, the coloured table of T(m) (blue certified, vermilion search only, purple multiple edge), and an interactive 3D lab with all 70 extremal graphs of T, S and M for m ≤ 22: rotate them, step through m, see multiple edges as arcs, and recompute the number of spanning trees exactly in the browser (Kirchhoff, exact integer arithmetic), next to the curve T(m)^(1/m) against √(27/8). English and Spanish PDFs are linked there too.

Combinatorics & graphs Certificates (exact, SAT/SMT)

Mathematics

How Many Dyck Words Do the Divisors of an Integer Make? Exact Counts and Quasipolynomial Growth

Carles Marín Muñoz

Show moreShow less

For an integer n ≥ 1, Rodríguez Caballero's word ⟨⟨n⟩⟩₂ records how the divisors of n interleave with the doubled divisors: read D_n △ 2D_n in increasing order and write an opening bracket for elements of D_n and a closing bracket for elements of 2D_n. It is a symmetric Dyck word whose shape reflects classical divisor statistics. Rodríguez Caballero asked which Dyck words arise in this way; we know of no answer in the literature. Let L_k be the set of these words of semilength k. Starting from the reduction to the odd part, we describe the words through the cells of a hyperplane arrangement in the logarithms of the primes, and show that L_k is produced by the single finest factorisation pattern p₁^(q₁−1)⋯p_r^(q_r−1), where k = q₁⋯q_r is the prime factorisation; as a consequence, membership in L is decidable. For the pattern p^a p′^b the number R(a,b) of cells is a classical count: 8R(a,b) − 4a − 4b − 6 is the number of two-dimensional threshold functions on a grid of (2b+1)×(2a+1) points, for which Alekseyev gave an exact formula, so R(a,b) = R(b,a) and its leading coefficient C_a in b is asymptotic to 12a²/π²; we give a direct proof in our coordinates. We show that the number W(a,b) of words satisfies (2/3 − o(1))b² ≤ W(a,b) ≤ (C_a + o(1))b². Together with a theorem of Woods on Presburger counting functions, this shows that for fixed a, W(a,b) is eventually a quasipolynomial in b of degree exactly two; its period and threshold are not determined. We also prove three general mechanisms by which distinct cells give the same word. Finally, |L_2q| = (9q² − 10q + 13)/4 for every odd prime q, with a proof by hand, and |L_3q| = (44q² − 69q + 58 − 3(q/3))/6 for every prime q ≥ 5, where (q/3) = ±1 according as q ≡ ±1 (mod 3). In the second count, one lemma (the listed coincidences are all of them, and are disjoint) is a computer-assisted proof using exact SMT queries (496 queries for completeness and 231 for disjointness, all unsatisfiable, after 38 of 69 branches were discarded as infeasible by the same solver), without a checked proof object. Whether almost every cell has its own word for a ≥ 2 is left to a companion paper.

Version 2 corrects the novelty claim for the cell count R(a,b): it equals (N(2b,2a) + 4a + 4b + 6)/8, where N is the number of two-dimensional threshold functions on a grid (Alekseyev, SIAM J. Discrete Math. 24 (2010); Acketa–Žunić, Inform. Process. Lett. 38 (1991)), which I had overlooked (see also Žunić, SIAM J. Discrete Math. 25 (2011)). It adds Proposition 5.3, which proves this identity in two ways and gives the symmetry R(a,b) = R(b,a), and Remarks 5.4 and 5.5; Theorem 5.1 and Corollary 5.2 are kept as a direct proof of a known count. Steps 3 and 5 of Section 6 are worded more precisely, with the same argument. All other statements, proofs and numbers are those of version 1.

Files: the paper in English and in Spanish; Supplement B (the hand proofs of the coincidence families behind |L_3q| and the documentation of the SMT step); its package of scripts, each run with its output, and the recorded logs of the full solver runs; the SMT-LIB2 files of the 496 direct queries; the LaTeX sources; and an offline copy of the companion site. Some steps are checked in Isabelle/HOL (https://github.com/karlesmarin/formalizations, folder Isabelle/CaballeroDyckWords): the reduction to the odd part and the Dyck property, the mixed-radix bijection behind the refinement theorem, the closing count of |L_2q|, the algebraic identities of the event encoding, and part of the link with the Kassel–Reutenauer polynomials. These checks cover individual steps, not the theorems as a whole. The companion site https://karlesmarin.github.io/blueprints/dyck-divisors/ says, for each statement, what is formalized and what is checked by computation. I worked with an AI assistant.

Combinatorics & graphs Certificates (exact, SAT/SMT) Isabelle/HOL Labs in the browser

Mathematics

Every m×4 biquadratic sum of squares is a sum of 3m−1 squares (5 ≤ m ≤ 16)

Carles Marín Muñoz, Liqun Qi and Chen Ouyang

Show moreShow less

Let BSR(m,n) be the least r such that every real biquadratic sum of squares in m+n variables is a sum of r squares of bilinear forms. We prove BSR(m,4) ≤ 3m−1 for 5 ≤ m ≤ 16, one square below the previous bound 3m. In particular BSR(5,4) ≤ 14, the upper half of the conjecture BSR(5,4) = 14 proposed by two of the present authors, Qi and Ouyang; with the known lower bounds this gives 13 ≤ BSR(5,4) ≤ 14 and 16 ≤ BSR(6,4) ≤ 17. As a corollary, BSR(m,5) ≤ 4m−1 for every m ≥ 2, one below the Choi–Lam–Reznick bound 4m for 5 ≤ m ≤ 10.

The proof studies boundary points of the sets of sums of a fixed number of squares. Minimality of a representation bounds the negative index q of its Hankel multiplier through the dimension of its syzygies, a boundary inertia inequality (a transport to this setting of the negative-index bound of Boumal, Voroninski and Bandeira for Burer–Monteiro critical points) whose case q = 1 recovers the Barvinok–Pataki bound. For m×4 forms it gives q ≤ ⌊(m+13)/6⌋, which is at most 4 exactly for m ≤ 16. A classification of isotropic restrictions involving at most four rows and a low-negative-index lemma for q ≤ 4 then exclude the remaining boundary configurations; compression to fewer rows handles the smaller supports, and an explicit inductive family of tuples gives the regular points. The argument first fails at m = 17.

English and Spanish versions, LaTeX sources and the scripts that check the computational steps are included. The arithmetic, the enumeration of cases and several linear-algebra steps are checked in Isabelle/HOL (https://github.com/karlesmarin/formalizations) or by exact computation; these checks cover individual steps, not the whole theorem. The companion site https://karlesmarin.github.io/blueprints/bsr-m-four/ says, for each statement, what is formalized and what is checked by computation. We worked with an AI assistant.

Sums of squares & real algebraic geometry Isabelle/HOL Labs in the browser Biquadratic sums of squares (BSR)

Mathematics

Rational sums-of-squares lengths of biquadratic forms and orthogonal dilations

Carles Marín Muñoz

Show moreShow less

For a rational symmetric matrix H of order n with spectrum in [−1, 1], how many squares of rational bilinear forms are needed to write P_H(x, y) = (x₁² + x₂²)|y|² + 2x₁x₂ yᵀHy? Over the reals the answer is n or n + 1 (Blekherman–Plaumann–Sinn–Vinzant, Hanselka–Sinn). Over the rationals it is the least dimension of a sum of squares carrying an orthogonal dilation of a contraction with symmetric part H, and the obstruction is arithmetic: a rotation with rational cosine λ has the real sine √(1 − λ²), and what decides is the imaginary quadratic field ℚ(√(λ² − 1)) of its eigenvalues. For H with one interior eigenvalue we reduce the length to a positive complement inside a sum of squares and decide it by an exact finite local procedure; the excess over n is at most 7, and 7 is attained, first in order 6. Two consequences are explicit: ℓ_ℚ(λI_m) in closed form, governed by the number of rational squares needed for 1 − λ², and the length of the normalized complete graphs (J − I)/(n − 1) for every n, which for odd n is n, n + 3 or n + 5 according to squares and n modulo 8. We also give a criterion over ℚ(t), the integer length of every graph and the smallest gaps between ℝ and ℚ.

English and Spanish versions, LaTeX sources and the scripts that check the computational steps are included. Parts of the proofs are formalized in Isabelle/HOL and Lean 4 (https://github.com/karlesmarin/formalizations), some of them relative to named classical theorems; the companion site https://karlesmarin.github.io/blueprints/real-rational-integer/ says, for each statement, what is formalized, what is checked by computation and what has a written proof only. We worked with an AI assistant.

Sums of squares & real algebraic geometry Combinatorics & graphs Isabelle/HOL Labs in the browser Biquadratic sums of squares (BSR)

Mathematics

On z_2M(21,4): the Hole Extensions of the Chen–Chen Configuration Are Reducible, and the Extremal Configurations of z₂(21,4) Are Not Unique

Carles Marín, Liqun Qi and Gaohang Yu

Show moreShow less

The second order extended Zarankiewicz number z_2M(m,n) of Qi and Yu allows a secondary half of a 2-edge to be shared, while the 1-edge graph stays C₄-free and extremal and 1-edges and main halves stay exclusive. Whether z_2M(21,4)=55 is open. Since deleting a 2-edge removes exactly one displayed square, z_2M(21,4)=55 if and only if there is no irreducible admissible configuration with exactly 56 displayed squares, and by the cell count of Qi and Yu and the heredity of irreducibility such a configuration without empty cells is an extremal 55-square configuration of z₂(21,4) plus one 2-edge at its hole. For the extremal configuration of Chen and Chen we show, by certificates verified in exact rational arithmetic, that all 56 such extensions have SOS rank at most 55: 32 by product relations and 24 by contraction certificates of Xu–Yan type. We also show, with computer-assisted certificates and an exhaustive isomorphism search, that the extremal configurations of z₂(21,4) fall into at least six isomorphism classes; Chen and Chen leave the structural classification of extremal augmented graphs open. Finally we prove a six-to-four reduction. For irreducible configurations whose 1-edge graph is C₄-free with m+C(n,2) edges it bounds the multiplicity of a shared half by n(n−1) (12 at 21×4), and it applies directly to an explicit number of the extensions of any extremal configuration of z₂(21,4), eight for that of Chen and Chen, bringing each to at most 54 squares, in agreement with the certificates. The cell count, the heredity lemma, the rows lemma, the six-to-four identity and a 2×2 example are checked in Isabelle/HOL; the remaining arguments are written proofs.

Combinatorics & graphs

Mathematics

Integer character values on the ρ-line of Sp(2m)

Carles Marín Muñoz

Show moreShow less

Kostant's element aP is one point of a line, and this paper is about the rest of it: which points give integer character values, when the character vanishes, and—in type C—what it is when it does not, sign included.

Kostant's 1976 paper singles out two elements of a compact simple group at which every character is 0 or ±1; one of them is aP = ρ(ζt) with t = 2m+2. That element sits on the line θ ↦ exp(2πiθρ♯), and the argument that settles it—an argument about alcoves—needs ρ to be a regular point of the relevant arrangement. At the powers of lower order, aPk with gcd(k, 2m+2) > 1, it is not: ρ moves onto the walls, the argument degenerates, and the values that were 0 and ±1 run to 72 one power later in a group of rank three. Beyond q > 2m no positive root of Cm takes a value above 2ρ1 = 2m, so regularity returns and the line has three regimes rather than two.

Three things are proved.

  1. A classification. Of all rational points g1/q of the line, exactly four families make every character of Sp(2m) an integer: q | 2m, q | 2m+1, q | 2m+2, and a sporadic q = 6 with m ≡ 1 (mod 3). Integrality forces the characteristic polynomial of the natural representation into Z[X], so the spectrum must be stable under the Galois group; classifying the stable spectra is then elementary. The necessity also follows from the field computation of Gannon–Schopieray (2019). The powers of aP are the family q | 2m+2 — one case of a list, not the boundary of what can be said.
  2. A vanishing criterion. With ℓ = λ+ρ and Nq(x) = #{α > 0 : q | (x,α)}, the character is non-zero exactly when Nq(ℓ) = Nq(ρ). The count can never come out below; equality is the whole condition.
  3. The value, in type C, for every power and with its sign: χλ(aPk) = (−1)Ep,q(λ) Zq(λ+ρ)/Zq(ρ) on the surviving weights and 0 elsewhere, with Zq a product of root statistics and Ep,q a sum of floors. That modulus factors as κ(λ) ∈ {1, 2} times a product of dimensions of irreducible representations of GLn, Sp2n and SO2n+1, one per folded class. A closed count of the surviving weights follows for every q, and G2 is settled in closed form at q = 3.

What is not new, stated plainly. At aP itself, nothing here is new. The criterion and its sign are Corollary 3.2 of Cellini–Möseneder Frajria–Papi (2007), in every type and on this very line; read on coroots the count is Corollary 3.7 of Nadimpalli–Pattanayak–Prasad; the principal specialisation the argument runs on is classical; and at q = 2 the factorisation into dimensions has the two-block form of Theorem 5.1 of Karmakar. The paper carries a table that says, line by line, which statement is whose. What is done here is the powers, where ρ is no longer regular — and, in type C, the exact value with its sign, the factorisation into dimensions at q ≥ 3, and the closed count.

What is formalized, and what is not. In Lean 4 with Mathlib (repository karlesmarin/formalizations, commit 6283de8, no sorry, standard axioms only): the type-Cm statements on the root products Fx and their quotient Q — including that Fρ divides Fℓ over any commutative ring — the spectral classification behind the first theorem, and, stated for Q(ζ), the criterion, the value with its sign and the factorisation into dimensions in both parities. Outside Lean: the identification of Q(ζ) with the character (Weyl's formula), the equivalence between spectral and character integrality, that the ν(c) are partitions, and the step from a dominant λ to ℓ. The paper's section “Formalization” gives the scope statement by statement, and the companion site links every statement to its declarations.

Every number is checked, and the checks travel. The floating-point checks of version 1 are replaced by exact certificates (C1–C4: Laurent-polynomial identities, arithmetic in Z[ζq] and the row lemma), each with a control built to fail. Eleven verification gates — on the figures, the formulas, the numbering, the cited attributions, the bibliography, the EN/ES parity and the overlap with the author's own arXiv:2609.02630 — run over the document itself, each with a control. The ancillary archive carries 107 files: the scripts that produce every framed formula and every count, the certificates and the gates, together with their archived output.

Version 2 adds the Lean formalization, the exact certificates, the companion site, and corrections throughout (attributions checked against the sources, the scope of every claim). Included: the paper in English (36 pp) and Spanish (37 pp), and the ancillary archive of scripts and their runs.

Number theory & characters Certificates (exact, SAT/SMT) Lean 4 Labs in the browser Characters at torsion elements

Mathematics

Every 4×4 biquadratic sum of squares is a sum of eleven squares

Carles Marín Muñoz

Show moreShow less

Let BSR(m,n) be the largest number of squares of real bilinear forms needed to write an m×n biquadratic sum of squares. We prove BSR(4,4) = 11. The lower bound is Qi and Cui's BSR(4,4) ≥ z2A(4,4) = 11; the previous upper bound was 12. The upper bound follows the boundary strategy of Blekherman, Dunbar and Sinn, as in our note on width three: at a hypothetical boundary point of the set of sums of eleven squares inside the cone, a Hankel multiplier of rank at most five satisfies first and second order conditions. A classification of such multipliers without simple tensors in their image leaves, up to exchanging the factors, only two support and rank triples. For support 3×4, alternating variations parametrized by R3⊗Λ2R4 have a 17-dimensional image in a quadratic space of positive index at most 16. For support 3×3, we use either the width-three trace argument or a syzygy involving the radicals in both factors.

English and Spanish versions, LaTeX sources and the scripts that check the computational steps are included. Four elementary steps of the proof are formalized in Isabelle/HOL (https://github.com/karlesmarin/formalizations); the companion site https://karlesmarin.github.io/blueprints/bsr-four-four/ says, for each statement, what is formalized and what is checked by computation. We worked with an AI assistant.

Sums of squares & real algebraic geometry Isabelle/HOL Labs in the browser Biquadratic sums of squares (BSR)

Mathematics

For m ≥ 2, every m×3 biquadratic sum of squares is a sum of 2m squares

Carles Marín Muñoz

Show moreShow less

Let BSR(m,n) be the largest number of squares of real bilinear forms needed to write an m×n biquadratic sum of squares. We prove BSR(m,3) = 2m for every m ≥ 2, answering the question of Qi, Löfberg and Chen on the exact values of BSR(m,3); in particular BSR(4,3) = 8, which closes the interval 8 ≤ BSR(4,3) ≤ 9. The cases m = 2, 3 already follow from results of Blekherman, Plaumann, Sinn, Smith, Velasco and Vinzant; the new range is m ≥ 4. The lower bound comes from the quadratic persistence qp(Pm-1×P2) = m and an explicit form. The upper bound follows the boundary strategy of Blekherman, Dunbar and Sinn for ternary forms: at a hypothetical boundary point of the set of sums of 2m squares inside the cone, a Hankel multiplier satisfies first and second order conditions. We replace their classification of Gorenstein ideals by a rank inequality for such multipliers and an induction on m, closed by a second variation built from the alternating symbol in three indices.

English and Spanish versions, LaTeX sources and the scripts that check the computational steps are included. Parts of the proof are formalized in Isabelle/HOL (https://github.com/karlesmarin/formalizations); the companion site https://karlesmarin.github.io/blueprints/bsr-width-three/ says, for each statement, what is formalized and what is checked by computation. We worked with an AI assistant.

Version 2 corrects the following points of version 1 (none affects the proof of the main theorem): the title now states the hypothesis m ≥ 2 (for m = 1 the form x₁²(y₁²+y₂²+y₃²) needs three squares); the parallel-line bound is stated for m, n ≥ 2; in Proposition 3 the exclusion of a singular point with a real factor is now argued through the positive definite matrix M_F(x); the trace argument keeps the positive and negative inertia indices; the closing question on width four bounds the rank of a multiplier whose kernel contains k linearly independent summands by 4m − k; the example with m = 5 is described as attaining equality in Lemma 5 under its hypotheses; and the ranks of Lemma 2 are now checked modulo a prime in the supplement (version 1 used a numerical SVD).

Version 2 adds Section 7: as a consequence of the main theorem, BSR(m,4) ≤ 3m for m ≥ 4, in particular 11 ≤ BSR(4,4) ≤ 12 (the lower bound is due to Qi and Cui); the general bound mn − max(m,n) obtained the same way is compared with the bounds of Blekherman, Sinn, Smith and Velasco (Figure 1): it is new only in width four.

Sums of squares & real algebraic geometry Isabelle/HOL Labs in the browser Biquadratic sums of squares (BSR)

Mathematics

Quadratic persistence of Segre varieties and a linear gap between biquadratic SOS rank and Zarankiewicz bounds

Carles Marín Muñoz

Show moreShow less

We compute the quadratic persistence of the Segre varieties Pm-1×P2 and Pm-1×P3 for every m ≥ 2: the values are m and ⌈4m/3⌉. By the Pythagoras-number bound of Blekherman, Sinn, Smith and Velasco, some m×4 biquadratic sums of squares require at least ⌊8m/3⌋ real bilinear squares. This exceeds both the second order and the augmented second order Zarankiewicz numbers at m = 21 and for every m ≥ 23, and the gap is at least m/6 − O(1). In every width n ≥ 3 we prove qp ≤ n⌈m/3⌉, so the gap is at least (n−3)m/6 − O(1) for fixed n ≥ 4, and we certify exact values in widths five and six. We construct rational forms whose rational length exceeds their real length by exactly three, and a covering bound of the same authors gives BSR(m,n) ≤ mn − max(m,n) + 1, hence 8 ≤ BSR(4,3) ≤ 9.

English and Spanish versions, LaTeX sources and the scripts and certificates that check the ranks are included. Parts of the proofs are formalized in Isabelle/HOL and Lean 4 (https://github.com/karlesmarin/formalizations); the companion site https://karlesmarin.github.io/blueprints/segre-persistence-bsr/ says, for each statement, what is formalized and what is checked by computation. We worked with an AI assistant.

Sums of squares & real algebraic geometry Combinatorics & graphs Lean 4 Isabelle/HOL Labs in the browser Biquadratic sums of squares (BSR)

Mathematics

Why three blocks? The limited augmented Zarankiewicz number in fixed width

Carles Marín Muñoz

Show moreShow less

The limited augmented Zarankiewicz number z_L(m,n) of Qi, Cui and Xu bounds the maximum sum-of-squares rank of m× n biquadratic forms from below: it counts the cells of a maximum C₄-free set in the m× n grid together with pairs of further cells that avoid two forbidden patterns. We determine z_L(m,3)=⌊3m/2⌋+2 for every m≥3, answering a question of Qi, Löfberg and Chen, with a proof formalized in Lean; it also shows that the gap to their weak variant grows like m/6. For a fixed number n of columns we prove that each new row adds ρₙ pairs up to a bounded error, where ρₙ is a rational number given by finitely many linear programs, and that the error is eventually periodic. Pairs placed around a hollow triangle of three column blocks give ρₙ≥λₙ=n/3−1/2+O(1/n); balanced blocks are optimal within this family, and ρₙ=λₙ for n≤6 by rational dual certificates checked in exact arithmetic; we conjecture equality for all n. Consequently, in every fixed width the original criterion stays linearly below the recursive-line, signed and second-order ones. We also reduce Lebedev's canonical base to a graph parameter whose sharp bound is due to Hof, which gives its slope ⌊(n−1)²/4⌋/(n−1) for every n; we find the exact value of z_L(m,4) for every m≥6 by certified computation, fourteen new exact values by exhaustive computer search (eight of them instances of the three- and four-column formulas), and a three-dimensional analogue in which the naive bound of one quarter fails already in 3×3×5, the smallest such box. The admissibility lemmas behind the constructions are formalized in Isabelle/HOL.

Version 2. Changes from version 1: the sharp bound on the graph parameter in Theorem D is due to Hof (2016, Thm. 7.2; Hof, Kern, Kurz and Paulusma, SAGT 2018), and the theorem's contribution is the reduction to it; the integer program over row types is exact for n ≤ 4 only, and no value of the table rests on it for n ≥ 5 (the supplement's program now refuses n ≥ 5); eight of the fourteen new values are instances of Theorems A and E; in Question 1, three-block shadows attain the optimal value for n ≤ 6, which is not a classification of the optimal programs.

Companion site (blueprint): https://karlesmarin.github.io/blueprints/zl-three-blocks/

Sums of squares & real algebraic geometry Combinatorics & graphs Lean 4 Isabelle/HOL Certificates (exact, SAT/SMT) Labs in the browser Biquadratic sums of squares (BSR)

Mathematics

Integer frieze patterns and Tabachnikov's four sign changes

Carles Marín Muñoz

Show moreShow less

Tabachnikov asked for which rows the differences between the entries of a row of two frieze patterns of the same width must change sign at least four times along the period, and left open whether this holds for all rows when the entries are positive integers. We show that it does not. For every even n ≥ 14 there are two integer (Conway--Coxeter) frieze patterns of width n − 3 whose middle rows are strictly ordered, and for every odd n ≥ 15 there are two whose rows ⌊(n−3)/2⌋ differ with no zero and exactly two sign changes. The second family lies inside the range 1 ≤ k ≤ [w/2] in which the question is stated. The differences in both families never vanish, so they are counterexamples however zeros are counted. When zeros may count as sign changes, an exhaustive search shows that 14 is the smallest n with strictly ordered rows and 15 the smallest with fewer than four sign changes in a row of the stated range. Both families are verified in Isabelle/HOL for all n, and the base pairs also in Lean.

Companion site (blueprint): https://karlesmarin.github.io/blueprints/integer-frieze-sign-changes/

Combinatorics & graphs Lean 4 Isabelle/HOL Labs in the browser

Mathematics

Inversion height two in the free field of the free group: strict hierarchies and a non-membership criterion

Carles Marín Muñoz

Let D be the free field of A=ℂ[F₃] and E₂ the ring obtained from A by inverting twice.

Show moreShow less

Let D be the free field of A=ℂ[F₃] and E₂ the ring obtained from A by inverting twice. Two chains of subrings of E₂ are strict at every step: the rings generated over E₁ by inverses of sums of products of at most r inverse binomials (with coefficients in A), whose union is a proper subring of E₂, and the rings generated by A and the entries of the inverses of full matrices over A of size at most d, intersected with E₂. We also locate infinitely many stopping steps of the Dubrovin–Gräter–Hanke complexity series inside E₂, with explicit witnesses; that there are infinitely many stopping steps follows from the work of Herbera and Sánchez, but no infinite family had been located within a fixed stage. The tool is a non-membership criterion that compares one atomic factor with the allowed denominators through invariants that do not grow under passage to factors.

MSC 2020: Primary 16K40; Secondary 16S85, 16S10, 16S34, 16E60.

Companion site (blueprint): https://karlesmarin.github.io/blueprints/inversion-height-two/

Algebra Lean 4 Labs in the browser

Mathematics

Huddling, diatonic and pentatonic scales in Z12: Fourier maxima and convex-energy minima formalized in Lean 4

Carles Marín Muñoz

Note 5 of the Mathematics of Music series.

Show moreShow less

Note 5 of the Mathematics of Music series. English and Spanish versions, with reproducible source files, figures and a Lean 4 formalization.

Why do the seven white keys maximize a Fourier magnitude and minimize a repulsive pair energy? The twelve-tone Huddling theorem identifies consecutive pitch-class clusters as the first-frequency maximizers at every cardinality, with a complete equality class. Multiplication by five transports this result to frequency five; at cardinality seven the equality class is precisely the twelve transpositions of the diatonic collection. Double Abel summation identifies the same orbit as the unique energy-minimizing orbit for every strictly decreasing, strictly discretely convex potential. Thus, for every seven-note set A, |Ahat(5)| = 2 + sqrt(3) if and only if E_V(A) = E_V(D), under the stated strict hypotheses. Weak admissibility still gives a minimum, but does not guarantee this equality class.

A symbolic complement-energy identity transfers both optimization problems to five-note anhemitonic pentatonic sets without another census. Homometry, tritone transposition and the parity coefficient connect the result to Notes 1–4. The mathematics is classical: the contribution is a connected, explicit formalization, with exact arithmetic and complete twelve-tone equality conditions. The literature and proof-assistant overlap audits are included; their bounded searches do not establish universal priority.

The Lean development pins Lean 4.30.0-rc2 and Mathlib revision 701fb6e9c3b9285968b375d19886bfc5ca134840. Two finite certificates use native_decide, adding trusted compiled-evaluation dependencies to the ordinary foundational axioms. The symbolic transport and complement bridges require no new census. Independent Python and SageMath checks cover all 4096 subsets and all 792 seven-note frequency-five cases. No sorry, admit or handwritten mathematical axiom is used. Prepared with the assistance of artificial intelligence tools; statements, attribution and interpretation remain the author's responsibility.

The papers and their figures are CC BY 4.0, following Note 4. The accompanying software retains the repository's Apache 2.0 license; see the included LICENSE and the note README.

Mathematics of music Lean 4 Labs in the browser

Mathematics

The Tonnetz spectrum is the generating triad's Fourier balance profile

Carles Marín Muñoz

Show moreShow less

The neo-Riemannian Tonnetz — the graph on the 24 major and minor triads joined by the parsimonious P, L, R moves — has an adjacency spectrum, and the main result identifies it exactly: the eigenvalues of the Tonnetz are ± the Fourier balances of the single triad that generates it, the signed multiset ±{3, sqrt(5), sqrt(3), 1, 2cos(pi/12), 2cos(5pi/12)} = {±|hat 1_T(k)|} for k = 0..6. The augmented balance sqrt(5) = |a_3|, the diminished sqrt(3) = |a_4|, the whole-tone 1 = |a_6| — the chord's own periodicity weights — are literally the graph's vibration frequencies. The proof builds one tool: the discrete Fourier transform is the shared eigenbasis of pitch-class symmetry. (i) every translation-invariant operator on Z_N (the chromatic cycle C_12, every abelian Cayley graph) is diagonalized by the DFT characters, eigenvalue the Fourier coefficient of its connection set (Babai). (ii) adjoining inversion makes the T/I group D_2N block-diagonal, pairing a_k &lt;-&gt; a_{-k} into conjugate-pair irreducibles. (iii) the Tonnetz is the Cayley graph of the non-abelian PLR = D_12 group, and reading it through (i)-(ii) yields the balance-profile identity, complete with multiplicities. Every step is machine-checked in Lean 4, sorry-free and axiom-clean, including the unconditional completeness of the spectrum (an explicit basis of eigenvectors; no Sage, no irrep classification). The spectral formula itself is standard — the dihedral-Cayley computation of Gao-Luo, of which the Tonnetz is the S = {P,L,R} instance; the Tonnetz Laplacian was studied by Lostanlen. What is added is the reading of that adjacency spectrum as the generating triad's balance profile, the identification of its spectral fibres with the music-theoretic Z-relation (homometric chords give cospectral graphs — Babai's 1979 criterion, read musically), and the Lean certification. An appendix instantiates the N-generic saturation rule at N = 24 (quarter tones): the limited-transposition catalogue strictly extends the chromatic one, with one symmetric mode (H_8) landing off the 12-tone grid; the Z_24 cosets are verified by exact cyclotomic computation in Sage. Not new mathematics — a unified, certified account. Note #3 of the music-math series; continues the phase-taxonomy note. This record bundles the English and Spanish versions of the note.<p>Revision 1.1 (October 2026): the reference-table fifth-frequency magnitude of the seven-note diatonic collection is corrected to 2 + sqrt(3); 2 cos(pi/12) belongs to the generating triad. The unit-frequency fixed-cardinality Huddling maximizer is stated as an inverse-unit image of a consecutive arc, rather than as a maximally even set at every unit frequency. English and Spanish sources/PDFs are synchronized; Spanish layout is reviewed with Babel. The Tonnetz spectral theorem is unchanged. Corrections prepared with the assistance of artificial intelligence tools.</p>

Mathematics of music Combinatorics & graphs Lean 4

Mathematics

Where the character values of Sp(2m) at a torsion element fail to generate the ring of integers

Carles Marin Munoz

Show moreShow less

Take every irreducible character of Sp(2m) and evaluate them all at one element of finite order. They generate a ring. This note locates and describes what that ring is missing from the ring of integers — its conductor — and finds Stickelberger's ideal and a relative class number waiting there.

Let ξ be a primitive q-th root of unity and let g have eigenvalues ξ±1, …, ξ±m, with 1 ≤ m < q/2. The character values generate A = Z[e1(η), …, em(η)] inside the ring of integers O = Z[ξ+ξ−1] of the real cyclotomic field, with ηj = ξj+ξ−j. Apart from known points where A = Z, it is an order, and its conductor is the subject.

Four things are proved. Write h = 2m, the Coxeter number of type Cm, and q = pvq′ with p not dividing q′, d = φ(q′)/2.

  1. Which primes. Every prime of the index divides q; and for q′ outside {1,2,3,4,6}, a prime p | q divides it exactly when q′ divides h, h+1 or h+2 — the same three families of integer points at which g is conjugate to all its prime-to-q powers. The combinatorial input is a lemma on scales that also answers a question about musical tuning.
  2. What the defect looks like. At each such prime the conductor is a power of the radical, the order has a single maximal ideal above p with residue field Fp, and the first graded layer has the dimension of the cyclic module over Fp[(Z/q′)×] generated by an explicit first-moment function of the segment {±1, …, ±m}. Both lengths, a Gorenstein criterion in layers and the Cohen–Macaulay type follow.
  3. Why class numbers appear. On the stable families that first moment is Stickelberger's sawtooth, or the same sawtooth shifted by half a period — and a single identity, 2 ŝn(c) = sn(2c) − sn(c), governs both regimes. The maximal minors of the moment matrix are Sinnott's index of the Stickelberger ideal times (2q′)d/wq′, a unit at odd p not dividing q′, so the conductor at p is the radical exactly when p does not divide h−(Q(ζq′)), provided p does not divide ⌈m/q′⌉ (on the half-period families, ⌈2m/q′⌉), and a simple divisor of h− gives the square of the radical and a Gorenstein local ring. On the shifted sawtooth the subgroup generated by 2 decides everything, with almost Gorenstein rings of type 2δ−1; and the index closes, vp([O:A]) = 2d−1−W1, whenever the first layer is more than half full.
  4. Below and beyond. When p divides the multiplicity there is a universal ladder of layers at the degrees P−pj, P = pvp(N), whose first term is Kontsevich's finite logarithm; and at degree P the theory descends to the first layer of a smaller order of the same family, an equality that complex conjugation — not a formal argument — is what pins down. There, when p does not divide h−, the layer is WP = d if −1 lies in ⟨2⟩ modulo q′ and d−d/t otherwise, t the order of 2; the hypothesis on h− cannot be dropped.

What is not ours, said plainly. The note carries a section that states, line by line, what is proved here and what rests on the work of others: Amiot on scales; Sinnott's index formula in the form of Bernard and Kučera, and Kučera's evaluation of one maximal minor of the moment matrix; Kac on the regular element σM of order h+1, which appears in Macdonald; Pianzola on the ring as the image of Z[P]W; Carlitz–Olson on Maillet's determinant; Girstmair on the cosecant numbers and the rank over Q of their Galois conjugates; Kuribayashi's rank of the rectangular matrix; the Euler factor of the shifted sawtooth, which is in Kanemitsu–Kuzumaki and in Kučera; the length characterisation of Gorenstein rings after Bass, Herzog–Kunz and Huneke–Swanson; Campillo–Delgado–Kiyek on the symmetric criterion; Marseglia's formula for the type; Barucci–Fröberg on almost Gorenstein rings. Where no earlier statement was found, that is said as a search result. The arithmetic input is classical and no priority is claimed for it: for those statements, what is ours is the matrix form and what it gives for the orders Am(q).

Every number is checked, and the checks travel. Each figure and each number labelled measured or observed comes with the script that produces it and its archived output: 153 files in the ancillary archive, in a flat directory that reads and writes only inside itself, with a README mapping every number to its script and its run. Three controls run over the whole package: that nothing published quotes private correspondence, that nothing published reads a file that does not travel with it, and that every claim made by a figure caption holds against the data the figure draws.

Included: the note in English (32 pp) and Spanish (33 pp), and the ancillary archive of scripts and their runs.

Mathematics of music Number theory & characters Certificates (exact, SAT/SMT) Lean 4 Characters at torsion elements

Mathematics

Subsets of F_p with two prescribed moments, Part II: every exponent — the classification, the Cauchy-Liouville-Mirimanoff polynomials that decide the column n=3, and where this moment subset sum stops being PORC

Carles Marin Munoz

Show moreShow less

Fix k ≥ 3 and an odd prime p, and let Ck(n,p) count the n-subsets T of Fp with ∑ t = ∑ tk = 0. Part I evaluates k = 3; this note settles every k. The criterion for the deciding stratum to be singular depends on k only through gcd(k−1,6), by Mann's theorem on relations between roots of unity; but the correct condition in general is that its normalisation have genus zero, and with it the classification collapses: Ck(n,p) is Artin–Tate precisely for n in {3,4,6} when k = 3, for n in {3,4} when k = 5, and for n = 3 alone for every other k.

The column n = 3 is described completely. Writing u = e23/e32, the count is governed by the roots of an explicit polynomial Qk(u) of Cauchy–Liouville–Mirimanoff type and the cubic Y3+uY−u attached to each root; it is expressible in quadratic characters if and only if Qk is constant, which happens exactly for k in {3,4,5,7}. That list is a dimension: deg Qk + 1 = dim M2k(SL2(Z)), so the count is elementary exactly at the weights 6, 8, 10, 14. Where it is not, some fibre has Galois group S3, and a permutation-character identity shows the nonabelian part cannot cancel, so the count is not PORC; for 6 ≤ k ≤ 46 this rests on forty printed irreducibility certificates, and beyond on a proved bound.

The two ends of the classification fail to be polynomial on residue classes for different reasons: at n = 3, k = 6 the obstruction is a nonabelian Artin-type class function and the count is polynomial on Frobenius sets; for n ≥ 4 it is a surviving weight-one Frobenius trace, and there the count is not even POFS. The note ships with the scripts behind every measured statement, the data behind every figure, and the table of certificates.

Combinatorics & graphs Number theory & characters Lean 4 Labs in the browser Orders from S-matrices and prescribed moments

Mathematics

Subsets of F_p with two prescribed moments, Part I: the pair (1,3) — a moment subset sum over F_p: exact counts of totally split squarefree polynomials with a non-consecutive pair of prescribed coefficients, and exactly when those counts are elementary

Carles Marin Munoz

Show moreShow less

Fix an odd prime p and let C(n,p) count the n-subsets T of Fp with ∑ t = ∑ t3 = 0; equivalently, for p > 3, the totally split squarefree polynomials of degree n over Fp whose coefficients of Xn−1 and Xn−3 both vanish. For n ≥ 3 this count admits an elementary expression — a polynomial in p with coefficients in quadratic characters of fixed integers — for exactly three degrees, n = 3, 4, 6. This note proves that, and gives the closed forms of C(3,p), C(4,p), C(5,p) and C(6,p); the case n = 5 involves the Frobenius trace of the elliptic curve of conductor 20, so it is exact without being elementary.

The mechanism is combinatorial: the partition sieve attaches to each partition of n a weighted hyperplane section of a diagonal cubic whose singular points are the biquanimous splittings of the weights, and the stratum of length exactly four decides, because there the variety is a plane cubic and smoothness forces an elliptic curve. The uniform witness (n−3,1,1,1) settles every n > 6 at once.

Two further strata are worked out by pencils of conics: V(a,1,1,1,1) has line field Q(√Da, √Ea), abelian of exponent two for every a, while V(2,2,1,1,1) does not, its line field containing the splitting field of a cubic of discriminant −140 and Galois group S3. The two extremal cubics are identified with the Cayley nodal cubic and the Segre cubic over the base field, by exhibiting the map. The note ships with the program that recomputes every count it quotes and with the scripts behind every measured statement.

Combinatorics & graphs Number theory & characters Lean 4 Orders from S-matrices and prescribed moments

Mathematics

The order generated by a column of the SU(n)_k S-matrix is locally a numerical semigroup ring (Part II)

Carles Marin Munoz

Show moreShow less

Part I determined the ring generated by a single column of the modular S-matrix of SU(n)k: at prime height p = n+k it is, locally at p, a monomial ring whose valuations form a numerical semigroup. This note asks how the columns fit together. The p-adic valuation of the discriminant of the fusion ring splits into ramification, twice the sum of the column defects, and twice a gluing term; the gluing has a closed form by orbits except for Δ(n,p) = ∑orbits δ(T), and this note gives an asymptotic expansion of that term. The splitting itself is verified computationally and not proved, and what rests on it inherits that status.

The defect is a function of one thing only, of which power sums of the spectrum vanish, so the census is a question about vanishing moments. We classify the small defects: for a centred spectrum with trivial stabiliser, δ ≥ 2 is governed by two single vanishing conditions and δ ≥ 3 by exactly four pairs of them, one for each numerical semigroup of genus three. The proportion of columns with δ ≥ 2 is 2/p − 1/p2 up to an explicit error for each fixed n ≥ 5, with no factorial threshold; the mean defect per orbit is 1 + 2/p + 3/p2, the coefficient 3 being −1 from the first expansion and one unit for each of the four semigroups; and in the central range εp ≤ n ≤ (1−ε)p both hold uniformly, the first with an exponentially small error.

Two classical objects turn up at the ends of that distribution. At the top, the columns of maximal defect are exactly the totally split Bring–Jerrard trinomials Xn + aX + b with ab ≠ 0, counted for n = 5 by the elliptic curve of conductor 50; the Hasse–Weil bound is quadratically miscalibrated there, and the first such column occurs at p = 67, 163 and 601 for n = 5, 6, 7, all below n!. Deep in the distribution, one of the four genus-three families is realised by the half-systems of Gauss's lemma, which give an infinite family of non-Gorenstein orders whose value semigroup ⟨3,5,7⟩ does not move with p. Separately, the centred half-systems themselves are counted by H(p) = (2(p−1)/2 + (2|p)(p−1))/p, a closed form for a sequence catalogued since 1965 and an exact relabelling of the Fermat quotient of 2.

Number theory & characters Lean 4 Orders from S-matrices and prescribed moments

Mathematics

The order generated by a column of the SU(n)_k S-matrix is locally a numerical semigroup ring (Part I)

Carles Marin Munoz

Show moreShow less

Fix a column μ of the modular S-matrix of SU(n)k and let Aμ be the ring generated by the ratios Sλμ/S0μ: the character values of SU(n) at the element of finite order that labels μ. Its field is known; we determine the ring when the height p = n+k is prime. Aμ is the tensor product of the integers of a cyclotomic field Q(ζm), fixed by the charge of μ under the centre, with an order CT that depends only on the reduced spectrum T ⊂ Fp of the element. Locally at p, CT is a monomial ring: its valuations form a numerical semigroup ST, written down exactly by Gauss sums and Stickelberger's theorem. Every property of the order at p is then a property of ST. The index [Oμ : Aμ] is pφ(m)δ with δ the number of gaps of ST; Aμ is Gorenstein if and only if ST is symmetric; p Oμ ⊆ Aμ when the conductor is at most the ramification index; level–rank duality replaces T by its negated complement and keeps ST; the vacuum column has ST = N0 and is maximal. When p > (n−1)(n−2), and for every p when n ≤ 12, ST is read in Fp: it is generated by the ramification index e = (p−1)/h and the j < e with Mhj(T) ≠ 0, where Mr(T) = ∑t∈T tr and h is the order of the multiplicative stabiliser of T. At prime height, the first non-Gorenstein column, by n and then by level, is at SU(5)12.

Number theory & characters Lean 4 Orders from S-matrices and prescribed moments

Mathematics

The ring of character values depends only on the segment: SU(n), Sp(2m) and GL(n) at a torsion element

Carles Marin Munoz

Show moreShow less

Let gq = exp(2πiρ/q) be the principal element attached to q in a compact simple group, and let A be the ring generated by all character values at gq, an order in the integers O of its field. A division lemma — multiplying a monic polynomial by a monic integer factor does not change the ring generated by its coefficients — gives three operations on the segment of exponents that leave A unchanged: adjoining an eigenvalue 1, which makes the ring of SU(2m+1) equal to that of Sp(2m); the complement n ↦ q−n, level-rank duality as an equality of orders; and the period n ↦ n+q. So A depends only on the segment. At p, the index of a stable segment is the sum of its layer defects, and the relative class number governs the first layer. A prime p divides [O:A] only if the prime-to-p part r of q divides n−1, n or n+1, and inside these families it does whenever p is an odd prime dividing q and φ(r) ≥ 4. For the non-real ring of GL(n), with n = Nr or Nr+1, 2 ≤ n < q, r ≥ 5 odd and p odd, the order is locally a free quadratic extension of the ring of the recentred segment.

Number theory & characters Lean 4 Characters at torsion elements

Mathematics

Zeros of weighted partial sums of completely multiplicative functions: Dirichlet characters, the Euler factor at 2 and Conrey's sine series

Carles Marin Munoz

Show moreShow less

A completely multiplicative function ε with values ±1 can make ∑n≤m n ε(n) vanish only when m ≡ 0, 3 (mod 4). We show that some ε does for every such m. The primes of (m/2, m] enter the sum only as themselves: a second moment fixes the other signs with a small remainder, and the signed sums of those primes cover it, by interval certificates up to 108 and by Sárközy's progressions in subset sums beyond. Every finite prefix of signs extends to a zero at all large admissible m, so the functions with infinitely many zeros form a dense Gδ of probability zero. Quadratic characters, extended completely multiplicatively, give explicit points of it: a digit recursion propagates their zeros in base q, for q ≡ 1 (mod 4), for q ≡ 7 (mod 8) — where the half sum of Jacobi and Dirichlet, with its Euler factor at 2, does the work — and along loops of the recursion, as for class number one. For odd characters, the digits that propagate zeros are the intervals on which Conrey's sine series of the Legendre symbol, proposed as a route to the Riemann hypothesis, vanishes identically. The same Euler factor decides which components of the moment matrix of the ring of character values vanish on its diagonal, which is where this note comes from.

Combinatorics & graphs Number theory & characters Lean 4 Isabelle/HOL

Mathematics

Schur polynomials twisted by roots of unity and reciprocal pairs: torsion filters, fusion quotients, and total unimodularity at odd order

Carles Marín

Write μₜ for the t-th roots of unity and z^(±1) for r free reciprocal pairs.

Show moreShow less

Write μₜ for the t-th roots of unity and z^(±1) for r free reciprocal pairs. We study Φ_(t,r)(β)=s_λ(μₜ,z^(±1)), β=λ+δ, and the question the companion paper left open after r=1: when does it vanish? We factor the evaluation into classical branching followed by a torsion filter, and the shape depends on the parity of t: the point lies in the orthogonal group with determinant (−1)^(t+1). For odd t it sits in the identity component: an ordinary restriction $SO_{2R'+1}\downarrow SO_{2m'+1}\times SO_{2r}$, the filter an odd orthogonal character at a principal element of order h+1. For even t in the other: a twining, a virtual expansion, and a torsion element regular but not principal; there we prove the filter, with its sign. One description covers both: the filter is nonzero exactly when the shifted point is regular semisimple. Both are minimal-level fusion projections: the even of type C, the odd's tensor sector of type B. Affine folding accounts for 0,±1; what it does not survives as conjectures. The highest surviving weight is the dominant vertex of the numerator's Newton polytope minus the denominator's — the latter proved, the former conditional on a single-orbit property — and the class there is conjecturally primitive, ± the generator of the rank-one quotient. For odd t and one Λ that numerator is a signed transversal count in {0,±1} by the equal-rank character formula, leaving one division. We invert it in closed form, along an arithmetic progression; the quotient is ±εₜdet M for an explicit 0/±1 matrix — an interval matrix up to signs, hence totally unimodular, which settles (L1). The fibre count is a permanent, odd only when 1, so at a dominant index a multi-hit fibre sums to zero. Two extremal statements remain. What is unproved is measured, in both parities.

Combinatorics & graphs

Mathematics

Schur polynomials twisted by roots of unity and reciprocal pairs: exactly three factors, and where they vanish

Carles Marín

Let μₜ be the full set of t-th roots of unity.

Show moreShow less

Let μₜ be the full set of t-th roots of unity. Adjoining r free reciprocal pairs gives a two-parameter family of alphabets; we settle three parts of it. At r=1, for every t≥2 and every λ with at most t+2 parts, s_λ(μₜ,z,z⁻¹) is a signed product of exactly three factors over a fixed denominator, or zero, the arguments read off core and quotient. What it sees of λ is a multiset of three integers and a sign, and exactly that: two partitions of any sizes share a nonzero value if and only if they agree on that datum. The proof is a Laplace expansion along the t frozen rows with one cancellation lemma, and delivers the sign, of which Littlewood's is one factor. At t=2 and every r, s_λ(1,−1,z₁^(±1),…,zᵣ^(±1)) vanishes exactly when the beta set has constant parity or λ is self-complementary of odd width; that direction is a corollary of complementation over an index family of Ayyer and Behrend, the converse an extremal argument in the degree filtration, modulo one rigidity theorem for Schur products. Equivalently: exactly those V_λ restrict to O(N,ℂ) det-stably. At odd t and every r it vanishes exactly when a residue class is absent, at no external cost. And for every t and r, a reflection of the beta set's excess part with one increment hitting its centre forces vanishing. Three consequences of the first. A vanishing criterion: an empty residue class, or two distinguished classes concentric as intervals, the second only for even t. An extension of Ayyer-Kumari's independence criterion: on the reciprocal locus it acquires one further family, classified by core and quotient. And at t=2 a (−1)-enumeration of plane partitions in a box refined by a parameter that stays free. The factorization is isolated: it fails under each of four deformations of the alphabet, for one reason.

Combinatorics & graphs Lean 4

Mathematics

The Set That Says No: Transversal Matroids in Lean 4, a Tight-Set Proof of Augmentation, and the Canonical Obstruction It Makes Possible

Carles Marín Muñoz

Mathlib has Hall's marriage theorem.

Show moreShow less

Mathlib has Hall's marriage theorem. Mathlib has matroids. In the revision this work was checked against (84fdd0bf, 2026-07-15) nothing joins the two: every matroid in Matroid/Constructions.lean is trivial, and none is built from combinatorial data. This paper closes that gap for the classical bridge between them, the Transversal Matroid Theorem of Edmonds–Fulkerson and, independently, Mirsky–Perfect: for a finite family of finite sets, the partial transversals are exactly the independent sets of a matroid.

The contribution is not that Lean accepts the proof; it is the shape of the proof. Rather than certify an augmenting-path algorithm, the development runs Hall's obstruction method and isolates one object in its own layer: a tight set R, one whose compatible slots are exactly saturated, |N(R)| = |R|. That factoring pays a dividend the classical statement does not advertise. Tight sets are closed under intersection as well as union, hence form a lattice, so every partial transversal carries a single largest tight subset maxTight A I, and one containment test against it decides every insertion. Put in Mathlib's own vocabulary, that same set computes the matroid's closure operator on independent sets.

645 lines of Lean, 34 theorems, no sorry, admit or native_decide; #print axioms on all six headline theorems reports only propext, Classical.choice, Quot.sound. English and Spanish editions, plus a reproduction bundle with the Lean sources, the generated axiom report, an exhaustive SageMath cross-check and the deterministic figure generator.

The target was drawn from Theorem of the Day's list of theorems by women mathematicians; Hazel Perfect, whose name puts it there, went on to introduce the gammoids — the class containing the transversal matroids — the year before her doctorate, Studies in Transversal Theory. Priority claims are dated, itemised and falsifiable in the paper's own priority section: they are audit statuses, not proofs of absence.

Combinatorics & graphs Lean 4 Graphs, walks and matchings, machine-checked

Mathematics

When Separation Fails, a Canon Appears: One counting identity behind separation, synchronization, and symmetry-breaking in permutation groups, formalized in Lean 4 (Part I)

Carles Marín Muñoz

Show moreShow less

A machine-checked formalization in Lean 4 / Mathlib of a cluster of results in finite permutation groups, organized around one counting identity: the average, over a finite group G acting on Omega, of how many points a translate gA shares with a set B is |A||B|/|Omega|. It proves P. M. Neumann's separation lemma, forces the uniformity theorems of P. J. Cameron's synchronization hierarchy, and at the boundary |A||B|=|Omega| yields a dichotomy whose extremal (non-separable) case is an exact factorization of the group and, over Z/n, a rhythmic tiling canon (Vuza, Coven-Meyerowitz) - bridging two literatures that do not cite each other. Also formalizes the distinguishing number of a group action and the Fano-plane value D(GL_3(F_2))=4 (Klavzar-Wong-Zhu). The mathematics is classical; new here are the orbit-local form of the dichotomy, the identification of its extremal case with rhythmic canons, and - to the author's knowledge - the first formalization of the separation lemma, the synchronization hierarchy, and distinguishing numbers in any proof assistant. All theorems are sorry-free, depending only on propext, Classical.choice, Quot.sound.

Combinatorics & graphs Algebra Lean 4 Graphs, walks and matchings, machine-checked

Mathematics

The per-voice Fourier signature: the bass is the spectrally purest voice

Carles Marín Muñoz

Show moreShow less

Note 4 of the Mathematics of Music series (companion to Notes 1–3: DOIs 10.5281/zenodo.20820962, 10.5281/zenodo.20826774, 10.5281/zenodo.20862822). English + Spanish.

For three centuries music theory has held that the bass is special — Rameau's basse fondamentale, the figured-bass tradition, Riemann's harmonic functions: the lowest voice carries the harmonic roots. That has always been a structural claim. The discrete Fourier transform of pitch-class distributions (Lewin, Quinn, Amiot, Yust) turns chord qualities into numbers — the magnitude |a_k| of the k-th coefficient measures a character (|a5| diatonicity, |a1| chromaticity, |a6| whole-toneness). That program reads a piece by time; it has never asked whether each voice carries a different spectral fingerprint. Here it does.

Over 334 four-part Bach chorales the naive guess — that the fifth-walking bass is the most diatonic voice — is false (the soprano is). But the data shows something sharper: the bass is the spectrally purest voice, lowest in chromaticity (alpha_1, paired t = -20) and whole-toneness (alpha_6, t = -15), despite using the widest pitch-class vocabulary. The cause is root realization through two channels: functional roots move by fifths/fourths (odd intervals), balancing even/odd pitch-class weight and driving alpha_6 to 0 (the parity channel), while the bass's wide tessitura disperses its weight around the chromatic circle, lowering alpha_1 (the dispersion channel). The effect is texture-bounded: strong in functional-bass homophony (Bach chorales; Palestrina), it fades in imitative (Monteverdi madrigals) and pre-functional (Trecento) textures — a diagnostic of functional-bass writing, whose boundary confirms the mechanism.

The parity channel's kernel — that a6 equals the even-minus-odd pitch-class parity — is machine-checked in Lean 4 (ParityA6.lean, sorry-free, axiom-clean, general even universe). Every ingredient is classical (Rameau/Riemann's functional bass; a6 = pc-parity, Amiot; the single-note-move rule, Hoffman); the contribution is the per-voice magnitude law — a measured, explained, certified, and honestly bounded empirical fact — not new mathematics. Prepared with the assistance of an AI system (Claude, Anthropic); the Lean 4 kernel, not the assistant, certifies the formalized part.

Mathematics of music Lean 4

Mathematics

One transform and one duality: a machine-checked core of music theory in Lean 4

Carles Marín Muñoz

Show moreShow less

A machine-checked library, in Lean 4 on top of Mathlib, of core results in the mathematics of music theory over the chromatic universe Z_12, organized so that one object and one phenomenon do most of the work. The object is the autocorrelation, or power spectrum |A-hat|^2, of a pitch-class set: the interval vector, Babbitt's hexachord theorem, homometry and the Z-relation read as the crystallographic phase problem, deep scales, rhythmic oddity, and the common-tone theorems are all functions of it, and maximal evenness reconnects to it in the scale theory. The phenomenon is duality: the neo-Riemannian PLR group is the centralizer of the regular T/I action on the 24 triads (Crans-Fiore-Satyendra, via the regular case of Wielandt's centralizer theorem, a lemma added over Mathlib), and the same shape recurs as a tritone-centered order-12 self-duality of the Petrushka set class 6-30 and as the val-comma lattice duality of regular temperament theory. The library is organized in three pillars (Fourier invariants of pitch-class sets; transformational duality; scales and tuning), ~275 theorems and lemmas across 9 Lean files, every theorem sorry-free with a clean axiom audit (propext, Classical.choice, Quot.sound; the finite maximal-evenness censuses additionally use native_decide). The mathematics is classical; the contributions are the formalization itself - the first comprehensive one in this area, since prior proof-assistant work covers only the T/I action - an autocorrelation/DFT organizing lens, and two results that appear not to have been noted in the literature: the 6-30 self-duality and a unified phase taxonomy of the |A-hat|^2 invariants. This corpus paper is the umbrella over three notes of the Mathematics of Music series (the 6-30 self-duality, the phase taxonomy, the Tonnetz spectrum), adding the connective tissue and the scale-and-tuning pillar. Not new mathematics - a unified, certified account. This record bundles the English and Spanish versions of the paper.

Mathematics of music Lean 4

Mathematics

The phase taxonomy of pitch-class set invariants

Carles Marín Muñoz

Show moreShow less

Working over the chromatic universe Z_12, represent a pitch-class set A by its 0/1 indicator and take its discrete Fourier transform  = F(ind A), with  = |Â| e^{iφ}. We record an exact organization: every classical pitch-class-set invariant we examine sorts cleanly by how much of the phase φ it retains. The interval vector, Babbitt's hexachord theorem, homometry / the Z-relation, deep scales, the rhythmic-oddity property, and common tones under transposition are all functions of the phase-blind power spectrum |Â|² alone — equivalently the autocorrelation, equivalently (in crystallography) the Patterson function. The sum / index vector — common tones under inversion — is a function of ², which retains only partial phase and, as an invariant of the set class, is weak. Then comes the twist: the third-order triple correlation (whose transform is the bispectrum ··conj(Â)) is also phase-blind, yet over Z_12 it resolves the Z-relation completely — separating homometric chords needs not more phase but higher order. The full  (magnitude and phase) is, last, a complete invariant determining the set exactly. The boundaries of this ladder of increasing resolving power are machine-checked in Lean 4 (Fourier.lean): the phase-blind collapse, the third-order resolution, and the complete-invariant capstone, in one file with a clean axiom audit. The crystallographic crossing is rigorous, not analogy: autocorrelation = Patterson function, |Â|² = X-ray diffraction intensity, the Z-relation = the phase problem. The contribution is the unified taxonomy as one organization with its boundaries machine-checked — a first formalization, not new mathematics. Note #2 of the music-math series; continues the 6-30 note. This record bundles the English and Spanish versions of the note.

Mathematics of music Lean 4

Mathematics

A tritone-centered self-duality: the set class 6-30 and its order-12 neo-Riemannian dual

Carles Marín Muñoz

First in a series of machine-checked notes in mathematical music theory.

Show moreShow less

First in a series of machine-checked notes in mathematical music theory. Stravinsky's Petrushka chord stacks two major triads a tritone apart; following that tritone into group theory, over Z/12 a pitch-class set class has a simply-transitive reduced dual group exactly when its T/I-stabilizer is normal — which among order-2 symmetries singles out the tritone center {T0,T6}. The unique such class is Forte 6-30 (the Petrushka set class): orbit 12, dual dihedral of order 12. The characterization is proved, the phenomenon enumerated (OEIS A032239, asymmetric bracelets), and both the Crans–Fiore–Satyendra duality engine and 6-30's order-12 regular dihedral dual are machine-checked in Lean 4 (sorry-free, axiom-clean), with Sage/GAP witnesses and MIDI/WAV sonifications. English + Spanish.

Code, reproducibility, and the growing series: github.com/karlesmarin/music-math.

Mathematics of music Lean 4

Mathematics

How a Falling Particle Counts Its Floors: the Airy function as a verified entire solution of y''=xy, its oscillation, and the quantum-bouncer spectrum, machine-checked in Lean 4

Carles Marín Muñoz

Show moreShow less

A sorry-free Lean 4 development of the Airy function from a three-line recurrence to the quantum-bouncer spectrum, depending only on the three standard axioms of classical Mathlib (propext, Classical.choice, Quot.sound). From c_{k+3}=c_k/((k+2)(k+3)), c_2=0: the generated power series is entire; its sum F satisfies the Airy ODE F''(x)=x F(x) as functions on all of R; on the negative axis F oscillates (infinitely many zeros, by a Sturm comparison built from Rolle and the intermediate value theorem, since Mathlib has no Sturm–Liouville theory); on the positive axis the dominant solutions escape and the recessive (decaying) solution is constructed by reduction of order, Ai_rec(x)=f(x) * integral_x^inf f(t)^-2 dt, with no DLMF asymptotics, then extended to an entire Airy function; and the quantum bouncer (a neutron above a mirror in gravity, GRANIT / qBounce) has its energy spectrum at the negatives of the Airy zeros, with infinitely many levels. The attached archive contains the self-contained Lean source (Airy.lean, AiryReal.lean) and a mpmath/SageMath cross-check. A large language model was used as a coding assistant; every statement was independently checked by the Lean kernel, and all mathematical decisions and claims are the author's.

Analysis & real roots Lean 4

Mathematics

What Order a Method Knows: certified Runge–Kutta order conditions over rooted trees, machine-checked in Lean 4

Carles Marín Muñoz

Show moreShow less

Machine-checked Butcher order conditions for Runge–Kutta methods in Lean 4, sorry-free and depending only on the three standard axioms of classical Mathlib (propext, Classical.choice, Quot.sound). A small computable engine (order, density gamma, the Butcher elementary weight Phi) plus a keystone reducing the infinite family of order conditions to a finite, decidable catalogue check, discharged for Euler (order 1), the explicit trapezoid (order 2), classical RK4 (order 4), Dormand–Prince DOPRI5 (order 5, the default in MATLAB ode45 / SciPy RK45), and the 3-stage Gauss–Legendre method, fully implicit with coefficients in Q(sqrt 15), certified to full order 6 via an integer Z[sqrt 15] reformulation closed by 'decide'. Negative certificates pin the order exactly. This is the applied payoff of the rooted-tree Hopf-algebra series: the elementary weight is a character of the Connes–Kreimer/Butcher Hopf algebra, and a method has order p iff that character agrees with the exact flow on trees of order at most p. The attached archive contains the self-contained Lean source (ButcherOrder.lean) and the independent Python/Sage cross-checks. A large language model was used as a coding assistant; every statement was independently checked by the Lean kernel, and all mathematical decisions and claims are the author's.

Combinatorics & graphs Algebra Analysis & real roots Lean 4 Certificates (exact, SAT/SMT) Rooted trees, Hopf algebras and Runge–Kutta

Mathematics

How a Tree Forgets Its Order: the Eulerian idempotent and the Adams spectrum on the commutative Connes–Kreimer–Butcher Hopf algebra of rooted trees, machine-checked in Lean 4

Carles Marín Muñoz

Show moreShow less

A companion to How a Tree Remembers Its Cuts (Zenodo 10.5281/zenodo.20762280), which built the planar (Foissy, noncommutative) Connes–Kreimer / Butcher Hopf algebra of rooted trees in Lean 4 / Mathlib and left the commutative quotient and the spectral theory of its operators open. This development closes both, sorry-free.

First, the commutative algebra Hab = H/(ab−ba) — the classical Butcher / Connes–Kreimer algebra — is built as a Mathlib HopfAlgebra instance (CK.instHabHopf) by descending the planar coproduct, counit and antipode through Mathlib's RingQuot. Second, the Adams ladder Ψn = id⋆n is run to its spectral payoff: the first Eulerian idempotent e(1) = log⋆(id) is proved idempotent, e(1)∘e(1) = e(1) (CK.eulerian1_idem_ab) — exactly the property that fails on the planar algebra (the cherry counterexample, also formalized), so commutativity is the operative hypothesis, not an incidental convenience.

The proof avoids the textbook Vandermonde inversion, routing through a small piece of formal logarithm calculus on power series (log(fg)=log f+log g, log(fn)=n·log f), proved by uniqueness of formal antiderivatives with no analysis (PowerSeries.logOf_mul, logOf_pow — currently absent from Mathlib, a candidate for upstream inclusion), transported into the convolution algebra by the eigen-relation Ψi∘e(1) = i·e(1) and a finite-difference collapse.

All headline results are sorry-free; #print axioms reports only [propext, Classical.choice, Quot.sound]. The mathematics is classical throughout (Adams; Solomon; Loday–Reutenauer–Patras; Aguiar–Lauve; Butcher; Connes–Kreimer; Foissy); the contribution is the certified instance and the formalized planar counterexample. Toolchain Lean v4.30.0-rc2, Mathlib rev 701fb6e9c3. The deposit includes the English and Spanish editions of the paper and the full Lean source.

Combinatorics & graphs Algebra Lean 4 Rooted trees, Hopf algebras and Runge–Kutta

Mathematics

How a Tree Remembers Its Cuts: the Connes--Kreimer--Foissy Hopf Algebra of Rooted Trees, Machine-Checked in Lean 4

Carles Marín Muñoz

Show moreShow less

A machine-checked formalization in Lean 4 / Mathlib of the Connes--Kreimer / Butcher / Foissy Hopf algebra of (planar) rooted trees — the combinatorial Hopf algebra behind perturbative renormalization and the order theory of Runge--Kutta methods. The admissible-cut coproduct, its coassociativity (proved up to List.Perm and lifted to an equality of Mathlib linear maps), the bialgebra compatibility, and a connected-graded antipode are assembled into a genuine Mathlib HopfAlgebra instance, all sorry-free; #print axioms reports only propext, Classical.choice, Quot.sound.

To the best of our knowledge — after a documented search of Lean/Mathlib, the Isabelle/HOL Archive of Formal Proofs, and Coq/Rocq — this is the first combinatorial renormalization Hopf algebra of rooted trees registered in any proof assistant. The mathematics is classical throughout; the contribution is the formalization and a reusable certified core. This is the planar (Foissy, noncommutative) version; the commutative quotient, B-series order conditions, the free pre-Lie algebra, and Birkhoff/BPHZ renormalization are deferred follow-on work.

A large language model was used as a coding assistant; every statement was independently checked by the Lean kernel, and all mathematics and claims are the author's. English and Spanish editions of the paper are included, with the Lean source.

Combinatorics & graphs Algebra Lean 4 Rooted trees, Hopf algebras and Runge–Kutta

Mathematics

One Engine, Three Counts: Descartes, Sturm and Budan-Fourier through one sign-variation engine in Lean 4

Carles Marín Muñoz

Show moreShow less

A synthesis note, companion to the Budan-Fourier formalization, showing in Lean 4 over Mathlib that Descartes' rule, Sturm's theorem and the Budan-Fourier theorem are three instances of one sign-variation engine and one local-drop law V(c-) = V(c+) + mu_c + 2e. It does three things, all sorry-free: (1) exhibits the shared engine (a sign-variation count, locally constant off critical points, telescoping over (a,b]) and runs all three counts through it — the first Lean formalizations of Sturm and of Budan-Fourier, plus the bridge fourierVar(p,0) = Polynomial.signVariations p tying the engine's V(0) to Mathlib's own Descartes count; (2) states their common local-drop law; (3) locates the exact axiom where the three diverge — Eisermann's Sturm-chain axiom forbids two consecutive members vanishing together, and the derivative tower violates it at every multiple root, so the tower is not a Sturm chain, its local law being the block collapse/alternation (Rseq/Lseq).

The unification is classical (Akritas; Basu-Pollack-Roy; the Cauchy index and Eisermann's abstract Sturm chains; the Cauchy-index route machine-checked in Isabelle/HOL by Li and Paulson). The contribution is the explicit shared Lean engine, the two first-in-Lean formalizations it carries, the Descartes bridge to Mathlib, and the precise axiomatic placement of the derivative tower. Headline results depend only on the three standard axioms (propext, Classical.choice, Quot.sound). English and Spanish versions included. Formalized with AI assistance (Claude, Anthropic); the mathematics and all claims are the author's responsibility.

Analysis & real roots Lean 4 Real roots, machine-checked

Mathematics

Roots That Are Always There: the Virtual Roots of a Real Polynomial, Machine-Checked in Lean 4

Carles Marín Muñoz

Show moreShow less

A machine-checked, sorry-free formalization, in Lean 4 over Mathlib, of the virtual roots of a real polynomial (Gonzalez-Vega, Lombardi and Mahe; Coste, Lajous, Lombardi and Roy). A real polynomial of degree d may have fewer than d real roots, but it always has exactly d virtual roots rho_{d,1} ≤ … ≤ rho_{d,d}: continuous semialgebraic substitutes that coincide with the real roots when these exist and otherwise sit where the polynomial comes closest to vanishing.

The development covers the structural theory — the recursive R_d construction (an |p|-minimiser on each cell where p' keeps a constant sign), the count (exactly d of them), sortedness and the bracketing interval, R_d capturing actual roots, and the Rolle interlacing rho_{d,r}(p) ≤ rho_{d-1,r}(p') ≤ rho_{d,r+1}(p) — and, built on it, the exact Budan-Fourier count: the number of virtual roots in (a,b] equals the sign-variation drop V(a) − V(b) of the derivative tower (card_vroots_Ioc_eq_fourierVar), turning the classical Budan-Fourier inequality into an equality — the surplus was never a defect of the count, only of which roots one was counting.

The contribution is the formalization: to the best of the author's knowledge, neither virtual roots nor this exact count through them had been formalized in any interactive theorem prover before (searches of Mathlib, Coq mathcomp-real-closed, the Isabelle AFP, and HOL Light). Headline theorems depend only on the three standard axioms (propext, Classical.choice, Quot.sound). Part of the godsil-gutman-lean series (real-root-counting strand: Newton, Sturm, Budan-Fourier, virtual roots). English and Spanish versions included. Formalized with AI assistance (Claude, Anthropic); the mathematics and all claims are the author's responsibility.

Analysis & real roots Lean 4 Real roots, machine-checked

Mathematics

Counting with the Derivative Tower: the Budan-Fourier Theorem, Machine-Checked in Lean 4

Carles Marín Muñoz

Show moreShow less

A machine-checked, sorry-free proof, in Lean 4 over Mathlib, of the Budan-Fourier theorem: for a nonzero real polynomial p and a < b with p(a), p(b) ≠ 0, the number of real roots of p in (a, b] counted with multiplicity is at most the drop V(a) − V(b) in the sign variations of the derivative tower p, p′, p″, …, and the difference V(a) − V(b) − #roots is even. The even surplus is the fingerprint of the complex roots the interval cannot see; the b → ∞ shadow is Descartes' rule of signs, which the same engine reaches through the identity fourierVar(p, 0) = Polynomial.signVariations p, Mathlib's own coefficient sign count.

The contribution is the formalization: to the best of the author's knowledge the first Budan-Fourier theorem in Lean (not first in any system — a prior Isabelle/HOL formalization is by W. Li). It runs on the same sign-variation engine as the companion Sturm formalization, but its local analysis must resolve a whole vanishing block of the derivative tower at once — the tower is not a coprime (Sturm) chain at a multiple root — handled by the Rseq/Lseq block law. The headline theorem depends only on the three standard axioms (propext, Classical.choice, Quot.sound).

This is the Budan-Fourier paper of the godsil-gutman-lean series (real-root-counting strand: Newton's inequalities, Sturm, Budan-Fourier). English and Spanish versions are included. Formalized with AI assistance (Claude, Anthropic); the mathematics and all claims are the author's responsibility.

Analysis & real roots Lean 4 Real roots, machine-checked

Mathematics

The Staircase of Signs: Sturm's Root-Counting Theorem, Machine-Checked in Lean 4

Carles Marín Muñoz

Show moreShow less

A machine-checked, sorry-free formalization, in Lean 4 over Mathlib, of Sturm's theorem (1829): for a squarefree real polynomial p and an interval (a,b] whose endpoints are not roots, the number of distinct real roots of p in (a,b] equals V(a) − V(b), where V(x) is the number of sign changes of the Sturm sequence p, p′, −(p mod p′), … evaluated at x (zeros discarded). No root is ever located; two integers are subtracted.

The mathematics is entirely classical and the result has been formalized before in other systems (Coq, by Cohen, within the construction of the real algebraic numbers; Isabelle/HOL, by Eberl, and in the Sturm–Tarski form by Li and Paulson; and HOL Light). To the best of the author's knowledge — based on searches of Loogle and Mathlib in June 2026 — this is the first proof of Sturm's theorem in Lean; it is a first-in-Lean and not a first-in-any-system. The contribution is therefore the formalization itself together with its reusable machinery: a small theory of sign variation, an inductive flank-reduction relation (FlankReduce) that decouples the chain's combinatorics from its algebra, and the local-to-global passage from a single root crossing to the interval count. A by-product is that Mathlib's existing count of coefficient sign variations (Descartes' rule, Polynomial.signVariations) and the count used here are, after unfolding, the same function — so the toolkit transfers verbatim to Descartes.

The headline theorem Sturm.sturm depends only on the three standard axioms propext, Classical.choice, Quot.sound; no native_decide and no custom axiom. The whole proof is a single file (Sturm.lean, about 1,220 lines, ~60 declarations) depending on Mathlib alone. Scope, stated plainly: the theorem is proved for squarefree p over the reals; the passage to p/gcd(p,p′) for arbitrary polynomials is not formalized here. English and Spanish editions are included.

Formalized with AI assistance (Claude, Anthropic); the mathematics and all claims are the author's responsibility, and the Lean kernel — not the assistant — certifies the proofs.

Analysis & real roots Lean 4 Real roots, machine-checked

Mathematics

The Inward Bow of a Real-Rooted Polynomial: Newton's Inequalities, Machine-Checked in Lean 4

Carles Marín Muñoz

Show moreShow less

A machine-checked, sorry-free proof, in Lean 4 over Mathlib, of Newton's inequalities (1707): if a real polynomial of degree n has all real roots, its elementary symmetric functions e_k obey e_k^2 C(n,k-1) C(n,k+1) ≥ e_{k-1} e_{k+1} C(n,k)^2 for 1 ≤ k ≤ n-1; equivalently, the normalized means p_k = e_k / C(n,k) are log-concave.

This is the classical bridge real-rooted ⇒ log-concave, the elementary base beneath the matching polynomial, the Heilmann–Lieb theorem, and the Hodge-theoretic proofs of matroid log-concavity. Mathlib already carried the elementary symmetric functions (Multiset.esymm) and the Vieta relations; it did not carry the inequality, and to the best of the author's knowledge no proof assistant did.

The proof is the classical reduction made fully rigorous: real-rootedness survives differentiation (Rolle) and reversal (x → 1/x), so differentiating i-1 times, reversing, and differentiating again collapses the k-th instance to a real-rooted quadratic, whose discriminant b^2-4ac ≥ 0 is the inequality once positive factorials are cleared. The symmetric-function form is machine-checked for monic polynomials (no loss, since the e_k depend only on the roots); the coefficient form is checked with no normalization. The headline theorems depend only on the three standard axioms (propext, Classical.choice, Quot.sound).

Lean source: Newton.lean in the repository. Toolchain v4.30.0-rc2, Mathlib pin 701fb6e9.

Includes the English and Spanish versions of the paper and the Lean source file.

Analysis & real roots Lean 4 Real roots, machine-checked

Mathematics

The Pentagon, Machine-Checked: Abel's five-term relation for the dilogarithm in Lean 4

Carles Marín Muñoz

Show moreShow less

A machine-checked, sorry-free proof, in Lean 4 over Mathlib, of Abel's five-term relation for the dilogarithm. With L the Rogers L-function, for x,y in (0,1):

L(x)+L(y) = L(xy) + L(x(1-y)/(1-xy)) + L(y(1-x)/(1-xy)).

This single identity is the whole weight-2 theory in one line: by theorems of Wojtkowiak and de Jeu, every functional equation of the dilogarithm with rational arguments is a consequence of it; it is the defining relation of the Bloch group and the pentagon of cluster algebras and of the quantum dilogarithm. It is the sequel to The Clock That Never Ticks (doi:10.5281/zenodo.20675271), which built a dilogarithm in Lean from scratch and climbed the golden-ratio ladder without this relation, leaving it explicitly open; this paper closes that thread.

The proof is the classical differentiation argument made fully rigorous (vanishing derivative → constant → boundary value). The mathematics is entirely classical (Spence, Abel, Rogers; Wojtkowiak's and de Jeu's universality); the contribution is the formalization — to the best of the author's knowledge the first machine-checked five-term relation, on the first machine-checked dilogarithm, in any proof assistant — together with three reusable building blocks. Every theorem depends only on the three standard axioms (propext, Classical.choice, Quot.sound).

This deposit contains the paper in English (five-term-lean.pdf) and Spanish (five-term-lean-es.pdf). Lean sources: github.com/karlesmarin/godsil-gutman-lean, Dilog/FiveTerm.lean.

Analysis & real roots Lean 4 The dilogarithm, machine-checked

Mathematics

The Walks That Remember the Cycles: a machine-checked sharp gap law between the matching polynomial and the non-backtracking spectrum in Lean 4 (Part VI)

Carles Marín Muñoz

Show moreShow less

A machine-checked, sorry-free proof, in Lean 4 over Mathlib, of the sharp trace-formula gap law for a finite simple graph of girth g: for every 1 ≤ k ≤ g+1, tr(Ak) − p_k = tr(Bk), where A is the adjacency matrix, B the Hashimoto non-backtracking operator, and p_k the power sums of the roots of the matching polynomial. Below the girth both sides vanish; at k ∈ {g, g+1} both count the rooted traversals of the k-cycles, 2k·c_k; and the window is sharp — the law fails at k = g+2 on every graph tested, including all 12064 connected cyclic graphs on 4 to 8 vertices.

The contribution is the formalization: to the best of the author's knowledge the first machine-checked bridge between the matching polynomial and the non-backtracking spectrum in any proof assistant. The headline theorem depends only on the three standard axioms (propext, Classical.choice, Quot.sound).

This is Part VI of the godsil-gutman-lean series. A companion applied paper applies the law, as a certified census of short cycles, to the LDPC codes of the IEEE 802.11n (WiFi) standard. Formalized with AI assistance (Claude, Anthropic); the mathematics and all claims are the author's responsibility.

Combinatorics & graphs Lean 4 Graphs, walks and matchings, machine-checked

Mathematics

Counting Trees Without Listing Them: A Machine-Checked Proof of Kirchhoff's Matrix-Tree Theorem in Lean 4 (Part V)

Carles Marín Muñoz

Part V of the godsil-gutman-lean series.

Show moreShow less

Part V of the godsil-gutman-lean series. A machine-checked, sorry-free proof in Lean 4 over Mathlib of Kirchhoff's matrix-tree theorem: over any integral domain, the determinant of the reduced Laplacian of a finite simple graph equals its number of spanning trees (SimpleGraph.det_reducedLapMatrix_eq_card_spanningTrees).

The proof is assembled from four formalized pieces, each of independent use: a self-contained Cauchy–Binet formula (Matrix.det_mul_cauchyBinet; not in Mathlib — an independent formalization exists in the Grinberg-textbook project and is discussed in the paper); the oriented incidence matrix and its Gram factorization N·Nᵀ = D − A (orientedIncMatrix_mul_transpose; Mathlib has only the unoriented incidence matrix); the reduced sum-of-squared-minors expansion; and a spanning-tree minor dichotomy proved by sorting (parent edges plus a distance key make the minor triangular) instead of the textbook leaf-deletion induction. To the best of the author's knowledge, this is the first machine-checked proof of the matrix-tree theorem in any proof assistant.

All headline theorems depend only on the three standard axioms (propext, Classical.choice, Quot.sound). Every design was validated numerically in exact arithmetic (SageMath) before formalization; the verification battery is reported in the paper. English and Spanish editions, plus the LaTeX sources.

Methodology note: formalized with AI assistance (Claude, Anthropic); the mathematics and all claims are the author's responsibility.

Combinatorics & graphs Lean 4 Graphs, walks and matchings, machine-checked

Mathematics

When Walks Become a Spectrum: A Machine-Checked Proof of Godsil's Moment Theorem in Lean 4 (Part IV)

Carles Marín Muñoz

v2 (correction): Fixed an imprecise claim in the introduction.

Show moreShow less

v2 (correction): Fixed an imprecise claim in the introduction. The matching polynomial is not the characteristic polynomial of the graph's adjacency matrix unless the graph is a forest — the earlier wording (“of no matrix” / “no symmetric matrix”) was false, since every monic polynomial is the char. poly. of its companion matrix and, being real-rooted, of a diagonal (symmetric) matrix. The Lean formalization and theorem are unchanged. Thanks to Scott Hotton for the correction.

Part IV of the godsil-gutman-lean series. A machine-checked, sorry-free proof in Lean 4 / Mathlib of Godsil's moment theorem: for a finite graph, the power sums of the roots of the matching polynomial equal the number of closed tree-like walks, p_k(G) = Σ_i θ_i^k = treeLikeWalkCount(G,k) (matchingPowerSum_eq_treeLikeWalkCount).

Part III built the combinatorial half and mapped the spectral half; this paper builds it and closes the theorem. Each path tree's root–root resolvent is folded through Part II's godsil_identity into reversed matching polynomials; both the walk-count and the root-power-sum generating functions are forced to the same reflected derivative reflect_n(X·μ'), and a unit is cancelled. The completion needs no univariate Newton recursion — a geometric-series / reversed-product cancellation replaces it. Along the way it contributes general, Mathlib-absent lemmas (a principal-minor determinant collapse for an arbitrary finite index, a reflection-of-a-sum identity, the reverse of a split product). With the Bass companion, both sides of the finite matching/Ihara trace formula now stand sorry-free in one library. The headline depends only on the three standard axioms (propext, Classical.choice, Quot.sound).

Includes English and Spanish manuscripts and the LaTeX sources. The formalization and manuscript were developed with AI assistance (Claude, Anthropic); the author set the research targets, judged the mathematics, and is responsible for all claims.

Combinatorics & graphs Lean 4 Graphs, walks and matchings, machine-checked

Mathematics

Walks that Forget the Cycles: A Machine-Checked Bijection between Tree-Like Walks and Godsil's Path Tree in Lean 4 (Part III)

Carles Marín Muñoz

Part III of the godsil-gutman-lean series.

Show moreShow less

Part III of the godsil-gutman-lean series. A machine-checked, sorry-free proof in Lean 4 / Mathlib of the combinatorial half of Godsil's moment theorem: the tree-like closed walks of a finite graph G at a vertex v are in length-preserving bijection with the closed walks at the root of Godsil's path tree T(G,v), via the down-projection π. The tree-like walk count is thus a sum of adjacency-matrix powers of the path trees, and (each path tree being a forest) its matching polynomial is the characteristic polynomial of its adjacency matrix. The spectral half completing p_k = Σ θ_i^k is mapped, not built. All cited theorems depend only on propext, Classical.choice and Quot.sound. Formalized with AI assistance (Claude, Anthropic); the mathematics and all claims are the author's responsibility. English and Spanish editions; source and figures at github.com/karlesmarin/godsil-gutman-lean.

Combinatorics & graphs Lean 4 Graphs, walks and matchings, machine-checked

Mathematics

What a Determinant's Derivative Knows: Jacobi's Formula and Newton's Identity for Matrix Traces in Lean 4

Carles Marín Muñoz

Show moreShow less

A machine-checked formalization, in Lean 4 / Mathlib, of Jacobi's formula (det M)′ = tr(adj M·M′) for a matrix of polynomials, and of Newton's identity for matrix traces — the logarithmic derivative of the reversed characteristic polynomial collects the trace power sums, (charpolyRev M)′ = −charpolyRev M·∑k tr(Mk+1)Xk. The engine is a resolvent series (I−XM)−1 = ∑k MkXk over formal power series. As an application these compose with the author's earlier formalization of Bass's determinant formula (doi:10.5281/zenodo.20573120) to read the Ihara non-backtracking counts Nk = tr(Bk) off the adjacency spectrum, and to prove combinatorially that tr(Bk) counts closed non-backtracking walks.

All headline results are sorry-free (axioms: propext, Classical.choice, Quot.sound). It formalizes classical mathematics and claims no new theorem; the novelty is the formalization — Jacobi's algebraic formula and the matrix-trace Newton identity, for which a search of Mathlib, the Isabelle/HOL Archive of Formal Proofs, Coq/Rocq, HOL Light and Mizar found no prior machine-checked proof. Honest boundary: tr(Bk) counts rooted closed walks, not geodesic classes, and the prime-geodesic Euler product is mapped, not built. English and Spanish editions are included.

Combinatorics & graphs Algebra Analysis & real roots Lean 4 Graphs, walks and matchings, machine-checked

Mathematics

Folding Edges into Vertices: A Machine-Checked Proof of Bass's Determinant Formula for the Ihara Zeta Function in Lean 4

Carles Marín Muñoz

Show moreShow less

A machine-checked proof, in Lean 4 / Mathlib, of Bass's determinant formula for the Ihara zeta function of a finite graph: (1-u^2)^|V| det(I-uB) = (1-u^2)^|E| det(I-uA+u^2(D-I)), where B is Hashimoto's non-backtracking operator on the 2|E| oriented edges. The headline theorem is sorry-free, depending only on propext, Classical.choice and Quot.sound, and is proved over a field. To the author's knowledge this is the first formalization of Bass's formula, of the non-backtracking operator, or of the Ihara-zeta reciprocal det(I-uB) in any proof assistant. It is the companion Ihara/cycle side to the author's matching-polynomial formalizations 'Random Signs into Matchings' (Godsil-Gutman) and 'Unfolding a Graph into a Tree' (Heilmann-Lieb). English and Spanish editions are included.

Combinatorics & graphs Lean 4 Graphs, walks and matchings, machine-checked

Mathematics

Unfolding a Graph into a Tree: A Machine-Checked Proof of the Heilmann-Lieb Theorem in Lean 4 (Part II)

Carles Marín Muñoz

Show moreShow less

A machine-checked formalization, in Lean 4 / Mathlib, of the Heilmann-Lieb theorem: the matching polynomial mu_G of every finite graph is real-rooted, and for maximum degree Delta >= 2 all its roots lie in the Ramanujan band [-2 sqrt(Delta-1), 2 sqrt(Delta-1)]. The proof follows Godsil's path tree: unfold G into the tree T(G,u) of its paths (where the matching polynomial equals a characteristic polynomial) and transport back along the divisibility mu_G | mu_{T(G,u)}; the root bound is proved from scratch by a weighted Gershgorin / Collatz-Wielandt argument reduced to two facts about distances in a tree. All headline theorems are sorry-free (axioms: propext, Classical.choice, Quot.sound). It formalizes classical mathematics and claims no new theorem; the novelty is the formalization, supported by a search of the Lean/Mathlib, Isabelle/AFP and Coq/mathcomp ecosystems.  Lean sources: github.com/karlesmarin/godsil-gutman-lean. English and Spanish editions are included, with the full Lean 4 sources.

Combinatorics & graphs Analysis & real roots Lean 4 Graphs, walks and matchings, machine-checked

Mathematics

Random Signs into Matchings: A Godsil-Gutman Identity, Formalized in Lean 4 (Part I)

Carles Marín Muñoz

Show moreShow less

A machine-checked formalization, in Lean 4 / Mathlib, of the Godsil–Gutman identity: the average characteristic polynomial of a uniformly random ±1 signing of a graph is its matching polynomial. The development also contributes the matching polynomial and its deletion recurrence, the ℤ/2 sign-averaging engine, and the Bilu–Linial 2-lift spectral decomposition. The headline theorems are sorry-free (axioms: propext, Classical.choice, Quot.sound). Heilmann–Lieb real-rootedness and interlacing families are mapped, not formalized — a path-tree route is proposed. The paper is included in English and Spanish editions, with figures and exact numerical cross-checks. Lean sources: github.com/karlesmarin/godsil-gutman-lean.

Combinatorics & graphs Lean 4 Graphs, walks and matchings, machine-checked

Physics 17

Physics

Robust qubit–memory transfer against quasi-static frequency noise costs time and exposure: exact bounds from Dubins curves

Carles Marín Muñoz

Show moreShow less

A quasi-static offset of the qubit or memory frequency, the slowest part of the noise in a superconducting quantum memory, is described by no Markovian rate. For the exchange of one excitation between a qubit and a memory mode at a coupling bounded by G, we characterise every complete transfer by the times A and B it spends in the qubit and in the memory and by its first-order leakage ζ. For a coupling of any phase and any detuning the duration obeys T ≥ T0 + arccos(|ζ|/z0)/G for |ζ| ≤ z0 and the exposures obey (|ζ| − z0)2 ≤ (A − A0)(B − A0), with T0 = π/(2G), A0 = π/(4G), z0 = 1/(2G); both are sharp, and for a coupling of fixed phase and no detuning they follow from known results on paths of bounded curvature. Cancelling the leakage with a pulse of fixed phase and no detuning costs exactly (γq + γm)/(2G)·arccos(|γq − γm|/(γq + γm)) of first-order population loss above that of the square pulse (a third of it in average infidelity), through the shortest Dubins U-turn; for any pulse, with relaxation only, cancelling it costs at least max(√(γqγm), (π/2) min(γq, γm))/G in the same units. At second order in the offsets every pulse has error [2E(ξq − ξm)2|ζ|2 + E(ξqA + ξmB)2]/6: with noise on the qubit no pulse goes below π2σ2/(96G2), against (8 + π2)σ2/(96G2) for the square pulse; with noise on both elements the square pulse is optimal for 0.137 ≤ σm2/σq2 ≤ 7.30 and explicit shaped pulses beat it outside (0.1264, 7.91), certified by interval arithmetic; for pulses of fixed phase and no detuning, a planar exposure bound derived from the reachable set of the Dubins car gives the exact threshold ratio 0.12645352248541…, the crossing of the bang–bang family. With memory loss the square pulse stops being optimal (for fixed phase and no detuning exactly at σ2 = 7.9078851606875… γmG), and for large σ2/(γmG) a pulse that waits in the memory attains the optimal error to leading order. Positively correlated offsets favour the square pulse, with an elementary sufficient condition that also covers relaxation of both elements, and the band of optimality of the square pulse can only widen as the correlation grows; for fixed phase and no detuning we certify the exact band with correlated offsets and the exact threshold with qubit relaxation at several parameter values, and prove, given the planar bound, that this threshold grows as 2√r + π/2 + 4/√3 + O(r-1/2) in the ratio r of qubit to memory relaxation.

English and Spanish versions, LaTeX sources and the scripts behind the certificates are included. The robustness inequalities, the minimisation of the cost, the unitarity step of the second-order expansion and the algebra of the bounds are machine-checked in Isabelle/HOL (https://github.com/karlesmarin/formalizations); the companion site https://karlesmarin.github.io/blueprints/robust-offset/ says, for each statement, where the formal statement ends and the written proof begins. We worked with an AI assistant.

Quantum control & speed limits Isabelle/HOL Labs in the browser Quantum hardware limits

Physics

Exact limits on writing a superconducting quantum memory: when can pulse shaping beat the resonant swap?

Carles Marín Muñoz

Show moreShow less

We study quantum-memory writing implemented by the exchange of one excitation between a short-lived superconducting qubit and a long-lived memory mode, at a coupling rate bounded by G, and ask how small pulse shaping can make the error of that exchange. With relaxation at unequal rates and Markovian dephasing, no pulse transfers more population than the plain resonant swap, and at a prescribed duration none beats a resonant pulse combined with a wait in the less lossy element; the proof is a Lyapunov function, with no condition on G. Without dephasing the maximum has a closed form. For the average infidelity of the write operation this gives a lower bound which the resonant pulse misses by less than 1.5·10-6 for a recent phonon-memory processor and attains for one of its modes: the limits are 1.00–1.14 % per access for its three modes against 1.71 % measured on average. Along a fixed small-rate direction the resonant pulse is exactly optimal whenever four times the smaller coherence decay rate exceeds the total pure dephasing rate, and otherwise the undecided width is of second order. Without relaxation and under strong dephasing the optimum is the trivial value 5/12: for equal rates at and above a unique threshold φ*, with 2.0941221534 < φ*/G < 2.0941221542, and, for fixed-phase, zero-detuning controls with 0 ≤ g ≤ G and |φq − φm| ≥ 2√5 G, exactly when the product of the rates is at least 3G2; between 2G and 2√5 G an explicit product of the rates still suffices. A write–wait–read cycle with a reset of the qubit composes exactly, which gives its floor; without the reset, for cycles that close in the absence of noise and to first order in the rates, the optimum reduces to a scalar minimisation: it never completes the swap when the memory decays or dephases, and accessing the memory pays only when the memory loses less than the qubit, and then only after an explicit waiting time. Five recent devices are evaluated within the model. Slow noise is not Markovian, and a counterexample shows that shaping can then help; for a quasi-static offset we give two bounds, and its first- and second-order theory is the subject of a companion paper.

English and Spanish versions, LaTeX sources and the scripts behind the numbers, interval enclosures and certificates are included. The bound without dephasing, the quasi-static square-pulse bound, the Lyapunov step of the population bound for continuous controls (given the derivative identities of the master equation) and the elementary steps of the other proofs are machine-checked in Isabelle/HOL (https://github.com/karlesmarin/formalizations); the companion site https://karlesmarin.github.io/blueprints/memory-floors/ says, for each statement, what is formalised, what is certified by computation and what is a written proof. We worked with an AI assistant.

Quantum control & speed limits Isabelle/HOL Labs in the browser Quantum hardware limits

Physics

Certified Speed-Limit Diagnostics for Deployed Superconducting Quantum Processors

Carles Marín Muñoz

How far are deployed quantum gates from the fastest evolution quantum mechanics allows?

Show moreShow less

How far are deployed quantum gates from the fastest evolution quantum mechanics allows? We answer for pre-Heron IBM processors, mainly Falcon and Eagle, using public, version-pinned calibration snapshots and inequalities whose proofs are machine-checked in Lean 4. Heron snapshots lack a Hamiltonian. For single-qubit gates, with the drive-strength convention fixed by IBM's calibrated π pulses, the X gate lasts a median 11.3 times the two-level speed limit at full drive amplitude (1646 qubits, 41 backends). Most of this gap is a design choice: IBM drives at about a tenth of the anharmonicity, and at that drive its pulses are about 2 times the square-pulse limit. Within each device's full amplitude, optimal control on IBM's model gives gates about 10 times faster than the median. For two-qubit gates (1758 coupled pairs, 43 backends), the known qubit-subspace minimal time of controlled-NOT-class gates under exchange coupling (literature) gives a median ratio 4.22; across the snapshots it rose, not monotonically, from 2.78 (2021) to 4.26 (2025) as gates got longer, coinciding with the change from Falcon to Eagle. With the second level and fast arbitrary local control, the minimal time of a controlled-Z gate with ideal local control lies between 0.295 and 0.331 of the qubit-only exchange time (a two-copy bound and a certified explicit protocol, version 3); bounded local control reaches 0.35. We also formalize an entangling-time bound in arbitrary local dimension, known for qubits and new only as a machine-checked assembly. Applied to IBM's chip-to-chip state transfer (version 2), the same diagnostic places the transfers at 5.8--7.9 times the single-mode minimal time, whose lower bound is machine-checked in Isabelle, and the coherence error of the fastest protocol four to six times below the measured errors. The contribution is a reproducible diagnostic built on the machine-checked inequalities, with explicit guarantees.

Companion site (blueprint): https://karlesmarin.github.io/blueprints/qsl-diagnostics/

Quantum control & speed limits Lean 4 Isabelle/HOL Certificates (exact, SAT/SMT) Labs in the browser Quantum hardware limits

Physics

Quantum state transfer through a lossy bus: fundamental error limits for every control pulse, with application to IBM's meter-scale interconnects

Carles Marín Muñoz

Show moreShow less

How small can pulse shaping make the error of quantum state transfer between two qubits, such as superconducting qubits in different modules, through a lossy bus (a resonator, a waveguide or a cable mode)? We give bounds that hold for every control pulse, every duration and any number of bus modes, knowing only the maximal coupling strength G, the qubit loss rate γ and the bus loss rate κ ≥ γ. The population delivered in time T obeys P(T) ≤ e^{−γT}/[1 + (κ−γ)/(G²T)]: going slowly costs qubit loss, going fast costs bus loss, and no pulse escapes both. The end qubits cannot be bypassed either: in the frame where the qubits are lossless, every transfer keeps the excitation in them for an integrated time bounded below by a quantity that tends to π/(2G). As γ/(κ−γ) → 0 and √(γ(κ−γ))/G → 0, the error cannot fall below 2√(2γ(κ−γ))/G (1 − o(1)); this constant was known as the optimum of perturbative and quasi-adiabatic pulse optimisation; here it bounds every control, and an explicit pulse attains it with explicit error terms. Markovian dephasing enters through the same equations with rates 2/T₂; with a different coherence time for each element the bounds give the floor of a real device, and a reciprocity relation makes the direction of transfer irrelevant. For the four links of IBM's meter-scale relay experiment (arXiv:2610.29986), no pulse can bring the error below 6.03–10.05 × 10⁻⁴ (certified with interval arithmetic) if dephasing is Markovian at the measured T₂*, and not below 1.5–1.8 × 10⁻⁴ for any dephasing noise; the measured errors are 11–16 times larger. Doubling the coupling halves the floor; the dephasing of the worse qubit is the next lever; a 26-ns trapezoidal pulse at 18 MHz brings all four links below 10⁻³ within the model. The floor, the occupation lemma, the frontier lemma and the window comparisons are machine-checked in Isabelle/HOL, and every number comes with the script that produces it. Part II of a study whose Part I is «Certified Speed-Limit Diagnostics for Deployed Superconducting Quantum Processors».

Companion site (blueprint, with the laboratory «Check your link»): https://karlesmarin.github.io/blueprints/relay-floors/. English and Spanish versions; sources and supplementary package (scripts, data, Isabelle theories, certificates).

Quantum control & speed limits Isabelle/HOL Labs in the browser Quantum hardware limits

Physics

The Clock That Never Ticks: a machine-checked path from the dilogarithm to quantum speed limits in Lean 4

Carles Marín Muñoz

Show moreShow less

Mathlib's source contains a comment referring to the dilogarithm Li₂, a function the library does not have. We fill that hole and follow the questions where they lead. The result is a sorry-free Lean 4 development containing the real dilogarithm with Euler's reflection identity, Landen's transformation, the duplication formula, and the golden-ratio ladder Li₂(1/φ²) = π²/15 − ln²φ, Li₂(1/φ) = π²/10 − ln²φ (derived from a 3×3 linear system, no five-term relation needed); the Rogers value L(1/φ²) = π²/15, equivalently the Lee–Yang effective central charge c_eff = 2/5; the Clausen function Cl₂ and Catalan's constant G = Cl₂(π/2); the Fejér–Jackson inequality Σ_{k≤M} sin(kθ)/k > 0 on (0, π); the positivity Cl₂(θ) ≥ sin(θ)/2 by an asymptotics-free Abel summation; and the Margolus–Levitin and (an L¹ form of the) Mandelstam–Tamm quantum speed limits. When version 1 appeared (June 2026) none of these was in Lean; Isabelle's Archive of Formal Proofs already had the polylogarithm of integer order with its duplication formula (Eberl, 2023), which our search had missed.

The pieces assemble into the ending the title promises: the quantum state with populations ∝ 1/n² on equally spaced levels has divergent first and second energy moments (both textbook speed limits give no bound) and yet never reaches a state orthogonal to itself (a "tick", in this paper, is exactly that). Version 2 is exact about why. Its lowest level carries 6/π² > 1/2 of the population, which alone forbids orthogonality (Uffink's cut-off inequality), and the fractional-moment speed limits of Zieliński and Zych reduce, as their order tends to zero, to exactly this criterion. The dilogarithm says more: the modulus of the autocorrelation never drops below 1/2, its value at half period. For the whole family p_n ∝ n^(−s), s > 1, we formalize the exact floor inf_θ |S(θ)| = 1 − 2^(1−s), from |Li_s(z)| ≥ η(s) on the unit circle for every real s > 0; it holds also for 1 < s < s* ≈ 1.7286, where no level dominates and none of the Margolus–Levitin, Mandelstam–Tamm or Zieliński–Zych bounds certifies that orthogonality never occurs. We also formalize the Zieliński–Zych bound for orders up to 1, including the inequality behind it, and exact examples showing that log-convex or three times monotone populations need not have their smallest autocorrelation modulus at half period.

We are exact about the boundary: every identity and inequality here is classical; the contribution is the machine-checked development, its assembly, and the place of the zeta-state theorem among the speed limits. Every named theorem depends only on the three standard axioms.

Version 2 (October 2026). Corrections: the polylogarithm of integer order with its duplication formula was in Isabelle's Archive of Formal Proofs before version 1 (Eberl, 2023), and version 1 said the dilogarithm was absent from every proof assistant; the never-orthogonal theorem follows in one line from the dominant lowest level, and the reason the clock never ticks is that level, not the heavy spectral tail; the floor |S| ≥ 1/2 follows from Fejér (1937), is stated for Li₂ by Boyer and Parry, and is now a Lean theorem; Remark 1 of version 1 is Hurwitz's 1913 theorem; two, not three, positivity proofs of the development share one shape; the golden values do not need Abel's relation, but that route is Landen's, not new; one bibliographic entry completed. Additions: the floor 1 − 2^(1−s) of every zeta state; the Zieliński–Zych limits and their limit of small order; exact counterexamples for three times monotone and log-convex populations. The full list is Appendix C of the paper.

Companion blueprint (every result with its dependencies and its Lean and Isabelle code): https://karlesmarin.github.io/blueprints/dilogarithm-clock/. English and Spanish editions.

Quantum control & speed limits Analysis & real roots Lean 4 Isabelle/HOL Labs in the browser The dilogarithm, machine-checked

Physics

An Affine Semigroup from Orbifold Boundary Conditions: cut, phylogenetic and hierarchical models in the unit-weight sector, and weighted configurations beyond them (Part IX-B)

Carles Marín Muñoz

Show moreShow less

The equivalence classes of orbifold boundary conditions are the fibres of a marginal map, and are indexed by the elements of an affine semigroup. This note identifies that semigroup.

When the alphabet carries no weights the object already has a name and a literature, and the note says so plainly: over Z2 it is the cut configuration of an explicit graph in the sense of Sturmfels and Sullivant — the four-cycle for T²/Z2 and the wheel W4 for S1/Z2 × S1/Z2, verified as an equality of point configurations; over Zm with equal cone orders it is a group-based phylogenetic model on a claw tree; and for the higher products it is the binary hierarchical model of the boundary complex of a cross-polytope. The ring of the product orbifold is a row of a 2008 table — codimension, degree, minimal generators, normality — every invariant of which this machinery reproduced without knowing that table existed.

What is established here: thirteen gluing trees, the unitary, orthogonal and symplectic realisations of every case; the group-based model on the tripod for every finite abelian group — a complete intersection exactly when |G| ≤ 3; that (S1/Z2)k is not a complete intersection for any k ≥ 3 and is not a cut ideal either, for a reason that is a count of edges; the exceptional case as a list of invariants rather than a negation — normal, Cohen–Macaulay, normalised volume 64, not a complete intersection, Cohen–Macaulay type 9; and that its minimal Markov basis is unique up to signs, sixteen indispensable binomials in exactly two orbits of eight under an automorphism group of order 128.

One distinction is drawn explicitly because the vocabulary collides: Casanellas, Fernández-Sánchez and Michałek prove these varieties are complete intersections in a Zariski open set; the question here is the global one, about the toric ideal itself, and the Z4 tripod separates the two.

Companion to Part IX-A: that note determines which generators exist, this one which relations hold among them. Paper in English and Spanish; every ancillary script and its receipt travel with the record.

Gauge–Higgs unification Certificates (exact, SAT/SMT) Lean 4 Labs in the browser

Physics

The Alphabet of Orbifold Boundary Conditions: a boundary condition is a representation, and the alphabet is forced by the fixed-point counts (Part IX-A)

Carles Marín Muñoz

Show moreShow less

Each count of orbifold boundary conditions has so far been a separate piece of work, because the boundary conditions were a list of matrices to be found per orbifold. They are not a list.

An orbifold boundary condition is an action on the gauge fields; in the inner, zero-flux sector it admits a linear lift, and after the lift it is a representation of the space group Λ ⋊ Zm. Its letters are the irreducibles induced from characters of Λ whose stabiliser fixes only finitely many characters — the rest are the Wilson lines; the weight of a letter is its dimension; and how many letters of each weight there are is a Möbius count over |det(I − Ak)|, the number of fixed points of the k-th power of the rotation.

From that one identification follow the twelve closed-form counts published for this programme, from a single argument with no free parameter, with the degree of each read off the cone signature; the class count of S1/Z2 × S1/Z2 — the orbifold of Parts VI to VIII — which is 2809 at rank 4, with the gauge transformation that closes it written down; and the symplectic column, which the programme had not reached because it is not another orbifold but another type of defining space: alphabets, counts, closed forms and all twenty-one labels built as matrices.

Theorem 1 states the alphabet for Zr ⋊A Zm in any rank, identifies the hypothesis as the condition that every eigenvalue of A have order exactly m, and gives the fixed-point counts in closed arithmetic form — so the alphabet depends on the order of the rotation and the rank of the lattice and on nothing else.

What is not claimed. The completeness of the local datum is proved here in the generality the counts need and no priority is claimed for it. The trace conservation laws, the local gauge groups, the classification of ZN embeddings and the identification of the surviving class with the ’t Hooft flux are inherited. And the whole of the arithmetic section except one line is inherited: Latimer–MacDuffee (1933), Diederichsen–Reiner, Charlap (1965), Montgomery–Uchida (1971) and Hiller (1985). A Ledger table says which is which, line by line.

Paper in English and Spanish; every ancillary script and its archived receipt travel with the record, and the script list is read off the paper itself.

Gauge–Higgs unification Combinatorics & graphs Certificates (exact, SAT/SMT) Lean 4

Physics

A Certified 2.68 TeV Gap in the Closed-Form Map of the Compactification Scale in SU(7) Grand Gauge-Higgs Unification, and the Invariant Its Two Observables Cannot See (Part VIII)

Carles Marín Muñoz

A ceiling answers “how high can it go”.

Show moreShow less

A ceiling answers “how high can it go”. Running the same map backwards answers “give me a content at this scale, or show me there is none” — and the second question has an answer the first cannot see.

Part VII converts the one-loop Wilson potential of the SU(7) model of Komori and Maru (arXiv:2503.04090) into an integer programme over the bulk-content lattice and certifies 1/R₅ ≤ 10.03 TeV with an exact rational dual. That is an extremal statement, and it has no use for a lower end. This paper runs the map the other way. Given a target box in the two observables the closed form predicts, 1/R₅ and mh, it either exhibits a bulk content or returns a certificate with a name that none exists — cone, congruence, an exact rational Farkas pair, a finite exhaustion, or a floor: the inverse map can ask for an A₄ below that of the empty content, which non-negative multiplicities forbid.

What comes out is not an interval. A content fixes its two observables outright, with no continuous parameter left, so the image of any finite part of the lattice is a finite set of points. On the published gauge seed they fall into one cluster per rung of the quantised curvature — 35 points spanning [8897.5, 9967] GeV at 8D = 1, 65 spanning [5258, 6215] at 8D = 3 — and between the top of one and the bottom of the other there is nothing at all over 2682 GeV, forty-five times the widest gap inside either cluster. That stretch is closed above by rational dual certificates and below by an enumeration, not observed by a search. At the measured Higgs mass what is left is a single point, 1/R₅ = 8967.5 GeV, on which 81 distinct contents coincide — a single one-loop potential built 81 ways, the smallest of 19 multiplets and the largest of 198.

And the map does not determine everything. Two bulk contents share both closed-form observables exactly and disagree about the vacuum, so W — the invariant whose sign can rule the electroweak point out — is not a function of the two numbers the model is fitted to. On the untruncated one-loop potential that pair parts by 3.8 MeV in mh, a factor of 29 under the quoted 1σ experimental uncertainty.

Scope, stated rather than implied. Every emptiness statement here, the hole included, is a statement about the closed form the two identities define, not yet about the untruncated model: turning it into one needs a uniform remainder bound carried through the certificate, which is open and is said to be open. Unless a number is labelled exact, every 1/R₅ and mh displayed is a closed-form value; the content at every cluster end and every delivered design is re-minimised on the exact potential, which throughout means the untruncated one-loop Li₅ potential and not an all-orders effective one. Where the enumerator runs out of its declared budget the verdict printed is undecided, not a no-go that has not been earned.

Both editions, English and Spanish, carry the same equations, numbers and labels. Every number regenerates from the ancillary scripts, whose stdout is archived beside them, and the stdout of each of the eight gates that were green is archived with them.

Gauge–Higgs unification Certificates (exact, SAT/SMT) Lean 4 Isabelle/HOL

Physics

An Upper Bound on the Compactification Scale of SU(7) Grand Gauge-Higgs Unification, and the Dijet Angular Distribution That Tests It (Part VII)

Carles Marín Muñoz

Show moreShow less

In gauge-Higgs unification the Higgs is the Wilson-line phase, so the electroweak hierarchy is a minimum of a potential rather than a ratio of scales. Part VI computed the curvature of that vacuum for the SU(7) model of Komori and Maru (arXiv:2503.04090) and reached a sign. This paper computes the vacuum itself — and then asks how large the compactification scale can be over arbitrary multiplicities of the representations they put in the bulk. The answer is finite, and a collider recast of CMS’s dijet angular distribution approaches the same scale from below, so the two calculations cross.

One ladder, three rungs. Expanding the one-loop effective potential about the symmetric point produces a single identity read at p = 5, 3, 1: the value, the curvature and the fourth moment are the same formula at three values of one index. At p = 1 the antiperiodic halves cancel their pole into a finite ln 2 while the periodic pole survives as the x4ln x branch point — which is why the answer cannot be a polynomial, where the finite-temperature theory at an even index has Gross–Pisarski–Yaffe’s exact quartic.

The hierarchy in closed form. Solving stationarity gives αmin in a Lambert-W form in three moments, x² = −d/W(−de−b) — not an algebraic root, since it carries ln x, but solved rather than iterated, with the two branches the minimum and the maximum and the fold at zero Higgs mass. Median error 0.13 % over 272 contents against numerical minimisation of the same potential. The logarithm and the third moment cancel identically at the stationary point, so both columns of their Table 1 become functions of two moments with no minimisation anywhere.

The arithmetic of the content. The moments are quantised: 8D ≡ 2A4 + 3 (mod 6), because c4 ≡ c² (mod 3). What holds whatever the gauge sector contributes is the matter half — every bulk multiplet moves 8D − 2A4 by a multiple of six — while the residue belongs to the gauge base point. Whether the same argument also makes 8D odd is a separate question, and it is the one open input of this paper.

The ceiling. Maximising the compactification scale is an integer program over a rational cone, closed by an exact two-variable dual whose vertices are enumerated in rational arithmetic: 1/R5 ≤ 10.03 TeV for arbitrary bulk content. Writing the third moment in the basis {1, ln 2, ln 3} lifts the content to a four-dimensional lattice, where the relaxation’s vertex turns out empty and the bound sharpens to 10.01 TeV attained. Put on the exact potential, however, that content is a false vacuum. Requiring the electroweak point to be the true minimum is the orbifold stability criterion of Cacciapaglia, Cossu and Deandrea, whose arithmetic is theirs; summed over a content it is a fourth linear functional, and what is new is only that a linear functional fits inside the integer program. With it imposed the bound is 9.22 TeV on the three-rung algebraic surface, and 9.09 TeV at the Higgs mass the world actually has.

Five coordinates, and they are complete. Two bulk contents have the same one-loop potential, as a function of the phase, if and only if they agree on five integer invariants. That is proved by two kernels meeting, computed by routes sharing no arithmetic, and it explains a gap the earlier work had left open between a certificate and an enumeration.

Which state a collider would bound. Read off their three parity matrices and nothing else: every colour-changing gauge boson is odd under the small-circle parity, so its tower starts at 1/R6 and its wavefunction vanishes at the fixed point where that same paper localises the quarks — which answers, for the gauge channel, the rapid proton decay their conclusions flag and leave to future work. What survives at the brane acts through a colour-octet operator in the dijet angular distribution, so published contact-interaction limits, stated for a colour-singlet operator, do not directly apply to it; the data behind them do constrain it, which is what the recast does. Carried through CMS’s unfolded distribution, 77×77 covariance and NNLO baseline gives a nominal sensitivity of 1/R5 > 10.86 TeV. It is deliberately not called an exclusion: a Gaussian χ² over unfolded data is not a detector-level CLs, and the paper measures that gap rather than waving at it — aimed at their own published limit the machinery returns 17.5 against 17 TeV and 29.5 against 37.

The one condition, and it is not hidden. The chain passes through one coefficient this paper does not derive from the product-orbifold geometry: the gauge weight of eq. (68) of arXiv:2503.04090. Theorem 1 carries its hypothesis in its own statement, and a red note on the front page says so. A parity-resolved covariant count of the same orbit, done here, gives a different split — shown to be independent of the gauge parameter, with the ghosts’ boundary conditions derived from the orbifold action on the gauge parameter rather than assumed. So the fork is not symmetric, and the paper says so: its own machinery points at the branch where that hypothesis is not met. Both branches are costed in a table, and no number is quoted without saying which branch it lives on. Between the two seeds considered, and on the three-rung surface, 9.22 TeV remains the conservative bound: the ambiguity does not open a route to larger scales, it closes one.

Reproducibility. Every displayed number regenerates from the ancillary scripts, whose standard output is archived beside them; the ledger cites the script for each entry rather than the number alone, so a reader who disagrees with a claim can re-run the thing that made it. Fifteen gates guard the two editions, and one of them executes every cited script and diffs it against its archive: 70 of 70 executable scripts reproduce byte for byte. Two claims the earlier drafts made are corrected in place and left visible rather than removed.

Gauge–Higgs unification Analysis & real roots Lean 4 Certificates (exact, SAT/SMT)

Physics

Proton Decay in SU(7) Grand Gauge-Higgs Unification: An Obstruction, Its Minimal Escapes, and the One Row of Their Table 1 That Can Pay for Them (Part VI)

Carles Marín Muñoz

Komori and Maru leave proton decay to future work in one sentence.

Show moreShow less

Komori and Maru leave proton decay to future work in one sentence. Taking that sentence as the question, their own anomaly conditions answer half of it: at one generation the extra U(1) their SU(7) model carries cannot forbid proton decay — and the reason is structural rather than an oversight, in a paper that sets the question aside explicitly and says so.

The obstruction. All six anomaly channels are evaluated on their published content with their own conjugate-pairing prescription. Three of them are linear in the brane-quark charge and share one root, XQ = −1/6 — which is exactly the point at which the four dimension-6 |ΔB| = 1 operators become neutral. There U(1)′ = T3L + Y − (B − L) identically, and every operator in that list has Y = B − L = 0: any U(1) in that span is blind to them, so the failure is structural rather than a coincidence of a fitted charge. Two further channels cannot cancel at all. On the charges their own representations supply, the pair of Diophantine conditions leaves the one-parameter family e = −1 − 4w, u = 5w, in which the net number of 28 singlets is never zero: a right-handed neutrino in a 28 is necessary and not merely sufficient, and only two rows of their Table 1 carry one at the right parity. That requirement is not stated in their paper; it is reported here as a consequence of their own content, not as a defect in it.

The escapes, classified inside their own group. The literature’s cure for exactly this disease — a family-dependent abelian charge — fits inside their SU(7) as a ladder extra(L) = (1 − k)/2 indexed by the number k of index-7 boxes, together with the identity [SU(2)L]²U(1)′ = ½∑jAj, which makes anomaly cancellation and proton protection the same equation at one generation and different equations at three. Of the fourteen assignments that cancel all six channels, exactly two fit inside their own tensors, and both need that same charge −1 singlet. The rung that hosts a third, inequivalent lepton generation sits in an 84(+,+) that every row of their Table 1 already contains. The 48 cannot host it, and the reason is a three-line proposition rather than a box count: under diagonal ±1 parities a real representation furnishes no chiral generation, the Z3 projection that cures this in the literature being unavailable here.

The bill, in eighths. By their own argument a lepton-hosting bulk multiplet is massive and leaves the Higgs potential, so the escape is charged against their table. Expanding their potential at the symmetric point gives V″(0) = −π²ζ(3)D with D an exact rational per multiplet — a 48(+,+) is worth exactly 0 and an 84(+,+) exactly 5/4. Donating one takes case (3) from 9/8 to −1/8 and electroweak symmetry breaking with it. Case (2) is the only one of the five published rows that satisfies both conditions at once — within the minimal extension, at one-loop curvature, and it is also the row with the lowest compactification scale. That is a benchmark selected, not a model delivered: the modified potential is not recomputed here.

The selection rule is a half-line, not a tuning. The one datum their paper leaves unstated — the charge of the scalar that breaks U(1)′ — turns out to be decidable in closed form: protection fails iff qφ = |Aj|/n, a countable set with a maximum. And qφ = 3/2, the charge of the 84’s pure index-7 component, forbids all four operators to all orders in ⟨φ⟩/M for every half-integer brane-quark charge, by a mod-3 argument — with its preconditions written in, including that any second condensing scalar destroys exactly this protection.

Over a third of the paper checks our own instrument rather than theirs. Their §3 is rebuilt from their own equations instead of assumed, and everything of theirs that was checked came out right: 13/13 structure constants, the omitted one exactly zero, the Kaluza-Klein spectrum, all four branchings, their eq. (67) proved rather than sampled, and their eq. (68) derived from the adjoint’s own charge-and-parity table with the coefficient 7 split as 4 + 3. Their eq. (81), imported from a different (five-dimensional) model, is shown to be a theorem of their own SU(7). Their Table 1 αmin column is not reproduced from their published formulas, and that is recorded as an open question rather than as a defect: the k ⋙ 1 truncation, the transcription (verified three independent ways), the gauge sector and every multiplicative or single-channel repair are excluded at one loop, each by a control that re-runs the whole search on scrambled data. One by-product is a test rather than a result: K = mhαmin/√F″(αmin) is independent of the row and of R₅, R₆ and their ratio, so any table of this kind must return one number on every line. Theirs does on three rows of five.

Why the open question does not reach the verdict. Treating the residual as the most general per-representation reweighting, D is exactly linear in the weights and D(48) vanishes identically — so w(48) = 5.59, the largest repair the αmin column asks for, is invisible to the conclusion. What is left is a wedge in two weights containing w = 1 and every repair ever fitted, a factor 1.77 wide. What the wedge does not absorb is loop order, and that exposure is reported at its true size and on the wrong side: with the published fermionic half included, the transplanted two-loop estimate sits at 1.033 times the margin at the nominal coupling, crossing the ceiling at g4 = 0.6205. An earlier draft answered this with the αmin column; that answer is withdrawn inside the paper rather than removed from it, because five row-by-row fits scattering over 20 % measure a discrepancy and not a weight, and a two-loop term is under no obligation to be a uniform rescaling of anything. So two-loop safety is left open rather than defused: the one-loop verdict is robust over every multiplicative deformation studied, its margin is quoted exactly, and the boundary of validity is located rather than argued away.

Included: the paper in English and Spanish (32 and 33 pp); every script that regenerates a quoted number, with its archived standard output; and the ten gates the artifact must pass before publication — among them one that checks every printed number against an archived run in both editions, one that compares the display formulas of the two editions body by body, one that checks the page map of the letter sent to the authors against the PDF they were actually sent, and one that re-runs every cited script and diffs it against the archive, because the others believe the archive. That last one earned its place on its first run: it caught two scripts that had stopped running at all, their archived numbers unchanged.

Honesty ledger. No defect in anyone’s paper is claimed anywhere in this work. Three transcription controls pass, so a residual we cannot place is more likely ours than theirs. What is reported about their 28 being Sym²(7̄) and about π₅ = π₇ are unstated data with computed consequences, not errors. The mechanisms are other people’s and a scope section says whose, one by one — including the one this paper proves and does not own: that matter in the adjoint is vector-like is stated as well known in Gogoladze–Mimura–Nandi (2004), and what is ours there is the specialisation to their parities and the counting. Not claimed: that case (2) works; any αmin, 1/R₅ or mh for modified content; any vacuum expectation value, scale or proton lifetime; and operators above dimension 6, whose charges were not enumerated.

With thanks. This work exists because Komori and Maru wrote their model out fully enough that a reader can rebuild its section 3 from its own equations, and because they said plainly what they had not done. Almost nothing here is a new mechanism: the ones used cost other people a great deal of time — Gogoladze–Mimura–Nandi for the vector-like adjoint and its Z3 cure, Lee–Ma for the family-dependent charge, Costa–Dobrescu–Fox for the general U(1) anomaly solution, Adachi–Maru for reading the curvature at the origin as a selection rule, Dumitru–Guo–Korthals Altes and Guo–Du for the two-loop halves, and Hosotani–Maru–Takenaga–Yamashita for the only two-loop Wilson-line potential in this framework. The paper says which piece is whose, one by one, and that table is the part we would most like a reader to check.

Gauge–Higgs unification Certificates (exact, SAT/SMT) Lean 4 Isabelle/HOL

Physics

What the Higgs Potential Cannot See: Bulk Matter That Cannot Help Select a Boundary Condition (Part V)

Carles Marín Muñoz

Show moreShow less

The one-loop Wilson-line potential of this model is one operator traced twice — a dimension and an index — and the discrete boundary-condition sign multiplies the index alone.

Winding parity is the O(4) component label. Part III's translation matrix U₆ = P₂P₀⁻¹ has det = −1, so one trip round the compact direction applies a reflection. The even-winding half of the potential is therefore a character on the identity component of O(4) and the odd-winding half a character on the reflection coset: Σλ = sλ(1,1,t,t⁻¹), a graded dimension whose coefficients are non-negative and can never cancel, and Dλ = sλ(1,−1,t,t⁻¹), the object of Part IV, an index that can.

Three published potentials, reproduced. Akamatsu, Hirose, Maru and Nago write their one-loop coefficients as {A + B(−1)^k₂}; that pair is exactly (Σ ± D)/2, and their twelve printed numbers come out with nothing fitted, the gauge sector after the antiperiodic twist they state themselves. Haba–Yamashita (a different group, a different orbifold, a different derivation) and Kawamura, Kodaira, Kojima and Yamashita follow from the same mode counts. The dictionary is the inverse Z₂ transform, and it needs no adjustment because there is nothing to adjust.

The theorem. Each matter multiplet carries a discrete boundary sign — in the notation Haba, Hosotani and Kawamura have used since 2004, the product η = η₀η₁ of the two orbifold-parity signs — and it multiplies the coset character and nothing else. Hence (λ,η) ~ (λ*, η(−1)^λ₁) is an observational identity, and η is unobservable exactly on Part IV's vanishing class Z: for those multiplets the boundary condition has no consequence any measurement of this Higgs sector can see. The blind class is counted in closed form — ⌈(k+1)²/2⌉ at λ₁ = 2k+1, and never for λ₁ even — and the count is machine-checked in Lean 4, chained to the certificate Part III already carried, so that it is a theorem about the bialternant determinant and not about a predicate chosen to be countable.

The other half of the dichotomy. Invisibility has a second, disjoint cause that has nothing to do with matter: a boundary condition may have no reflection coset at all. The block pair (#{P₀=+1}, #{P₁=&minus;1}) is a complete class invariant, so the classes of rank N are exactly the (N+1)² of Haba–Hosotani–Kawamura, recovered rather than assumed, and exactly ⌊(N+1)²/2⌋ of them admit a coset sector — machine-checked in Lean 4 for every N, not swept over a range.

One step past a single multiplet, and it is free. If every non-blind multiplet of a matter content carries the same effective sign ηᵢζᵢ, the content is blind if and only if every multiplet in it is: collective blindness requires sign frustration. That removes the structurally simple half of the degeneracy over contents and leaves the frustrated half, which is the next paper.

Included: the paper in English and Spanish; two sorry-free Lean 4 certificates (the blind count and the boundary-condition census), depending only on propext, Classical.choice and Quot.sound; every script that regenerates a quoted number, with its archived output; and the gates the artifact must pass before publication — among them one that opens the papers we cite and checks our quotations and their equation numbers against them.

Honesty ledger. Part IV states its closed form as verified and not proved, and every statement here that rests on it inherits exactly that standing; what does not depend on it is the criterion that identity computes, which is Part III's theorem, so the blind class, its count and its Lean certificate stand regardless. That the relation above generates all observational collisions is verified with 0 exceptions among 910 pairs and is not proved, and is stated as an Observation rather than as part of the theorem. That Σλ alone separates a multiplet up to conjugation is verified over 969 multiplets and not proved. A claim of an earlier draft — that the coset half is the only observable in the model that sees charge conjugation — is false, is contradicted in print, and is retracted inside the paper rather than removed from it.

Scope. Every statement is about a model: T²/Z₂ with U₅ = 1, at one loop, with boundary conditions that can be simultaneously diagonalised. The theorem is per multiplet. A closed form for the potential is not a closed form for the Higgs mass, which needs the true minimum; and everything that runs the machinery forwards — predicting a spectrum rather than excluding one — is deliberately held over.

Gauge–Higgs unification Lean 4 Certificates (exact, SAT/SMT)

Physics

Schur Functions at (1,-1,t,t^{-1}): A Closed Form on the Non-Identity Component of O(4) (Part IV)

Carles Marín Muñoz

Show moreShow less

For every partition with at most four rows, the Schur function sλ(1,−1,t,t⁻¹) is either zero or ± a product of exactly three SU(2) characters read off the 2-quotient of λ — with no hypothesis on the shape of λ.

Part III (concept DOI 10.5281/zenodo.21438226) classified which SU(4) representations have identically-vanishing character on the non-identity component of O(4), and exported the underlying question about symmetric functions. This Part IV answers it with a closed form, of which that vanishing classification is exactly the zero locus. The alphabet {1,−1,t,t⁻¹} is the generic semisimple element of the determinant-−1 component of O(4); it sits between the reciprocal-pair factorisation programme of Ciucu–Krattenthaler and Ayyer–Behrend and the root-of-unity line of Littlewood, Prasad, Ayyer–Kumari and Karmakar, and belongs to neither. The obstruction that kept it untreated is one unstated hypothesis: the block argument needs every inversion-fixed point of the alphabet to contribute a constant row of the bialternant, which +1 does and −1 does not. Replacing the two fixed-point rows by even/odd column indicators repairs the argument at rank one, and not at rank two, which is where we stop and say so.

The actual result is a reduction, not the identity. Conditionally on the closed form, every quantity that survives Part III's leading cancellation — the whole tower of even moments of the twist-imbalance distribution δ(m) — factors through three integers read off the 2-quotient: Φ = F ∘ Q. An arbitrarily large four-row partition is compressed to (p,q,r) with no loss of anything the physics can see, and weight enumeration is replaced by explicit polynomial formulae. The normalised moment tower lives in the invariant ring ℚ[Cₚ,Cₔ,C₟]^{S₃} of the three SU(2) Casimirs; in particular the variance is one third of the sum of the three Casimirs.

Status, stated exactly. The closed form is an Observation: verified exhaustively by two independent implementations on all 3060 partitions with four parts ≤14 and all 4845 with parts ≤16, with no mismatch, against the bialternant in exact integer arithmetic — and not proved. The zero-locus statement is a Proposition, proved independently in Part III. Everything else is graded in the paper as Proposition, Observation, Inherited, or Open, and the grades are not blurred.

Honesty ledger. Several ingredients are classical and we claim none of them: that log-concavity is preserved under convolution (Hoggar 1974) and gives a unimodal spectrum (Stanley 1989); that the coefficient sequence is a threefold discrete-uniform convolution whose moments are polynomial, because cumulants of a discrete uniform are polynomial in its width and add (Neuschel; Bradley–Gupta); and that the distribution has a piecewise-polynomial closed form by inclusion–exclusion (De Moivre; André 1876; Comtet; the object is a discrete box spline, Dahmen–Micchelli 1988). The involution character value reproduced along the way is Karmakar (arXiv:2412.17324); read in full for version 3, his Thm. 1A is the first branch of the zero locus and his Thm. 1B is the 2-quotient factorisation at t = 1, so only free t is ours there. The mechanism — characters of a disconnected group on a non-identity component, that is, twining characters — is Jantzen (1977) and Kumar–Lusztig–Prasad (2009), cited from version 3 onward; the surrounding programme is Nadimpalli–Pattanayak–Prasad (arXiv:2504.14684). Ours are: the closed form itself at free t, the fixed-point-pair repair, the second branch of the zero locus, the reduction Φ = F ∘ Q, and the Casimir reading of the moments. Rank two is open, and the shape of what is missing there is stated precisely enough to be attacked.

Version 4 (30 July 2026). One claim is withdrawn, one is proved, and one is new. Withdrawn: versions 1–3 offered the rank-two partition (3,2,2,1,1,0) as a third cause of vanishing, and it is not one — written with the six parts rank two requires it is self-complementary of odd width, which is the second cause exactly; and that cause is not confined to rank one, since the folklore argument uses only that the alphabet is inversion-stable with determinant −1. The dichotomy is therefore forced rather than provisional, and the reason is two lines that were available all along: two of the three factors can never vanish, so the size-three profile never does. New: the reduction Φ = F ∘ Q is invertible in closed form — three moments return the three integers, because M₀² = ∏(Cₖ+1) means M₀ is not a normalisation but carries the third symmetric function — and the sign ζ, which versions 1–3 could not interpret, is the sign of the parity index n₊ − n₋ of the orbifold involution on Vλ, whose magnitude is the volume of the box: (p+1)(q+1)(r+1) = |n₊ − n₋|. The vanishing criterion is thus the statement that the orbifold projection is exactly balanced. Corrections: the symbol ζ carried two meanings between sections 3 and 5, which differ on 700 of 3060 partitions; the counts 560 = 420 + 140 are by mechanism, while the two λ-shorthands split the same 560 as 420 and 240 with 100 in both; the zero-locus plate is redrawn over the range the text quotes; and one count printed since version 1 (“0 of 105 cases”) proved unreproducible and is restated with its range as 0 of 109.

Included: the paper in English and Spanish, each with its own four plates; the figure generators; and seven verification runs with their archived output, so that every number printed in the paper can be located in a saved run rather than taken on trust. The scripts check the closed form, the sign, the index identity, the inversion, and the four counts that had no archived run before this version, each against the bialternant in exact rational arithmetic and each with a control built to fail.

Gauge–Higgs unification Certificates (exact, SAT/SMT)

Physics

A closed-form ring identity for the SMEFT Higgs trilinear-quartic deviation [NOVELTY CLAIM WITHDRAWN: the identity is a corollary of geoSMEFT]

Carles Marín Muñoz

The novelty claim of this Letter is WITHDRAWN.

Show moreShow less

The novelty claim of this Letter is WITHDRAWN. Nothing in this record is offered as a new result. Version 4.0 changes no text and no conclusion: it brings the three documents of the story together into one version, in reading order, because until now each version held only its own fragment and the concept DOI resolved to the retraction alone.

Read in this order:

  1. 1_Letter_en.pdf / 1_Letter_es.pdf — the Letter (9 May 2026). The work itself, and the document that makes the claim now withdrawn. Unmodified.
  2. 2_Erratum_v2_en.pdf — the v2.0 erratum (11 May 2026) on scheme dependence. Superseded by the corrigendum below, and English only.
  3. 3_Corrigendum_v3_en.pdf / 3_Corrigendum_v3_es.pdf — the corrigendum (12 July 2026). This is the current status of the work.

What is withdrawn. The closed form reported in v1 and v2 is a corollary of Eq. (4.2) of A. Helset, A. Martin and M. Trott, The Geometric Standard Model Effective Field Theory, JHEP 03 (2020) 163 (arXiv:2001.01453). Their §4.1 already gives the three- and four-point functions of the scalar potential to all orders in v/Λ. At dimension six both are linear in a single Wilson coefficient, and eliminating it between them yields the trilinear–quartic relation in one line of algebra. Once the field-space metric is divided out, that relation is affine, with integer coefficients, and contains no α whatsoever: the rational function of α reported in v1/v2 was never in the physics, it came entirely from metric prefactors that had not been divided out. The basis dependence that the v2.0 erratum reported as a discovery is likewise stated in advance, in Appendix B of that same 2020 paper.

What stands. The algebra of the Letter and its Lean verification remain correct — they verify a corollary, not a discovery. Separately, the audit that produced the Letter also found a typesetting error in the paper it was auditing, and that finding is unaffected: line 310 of arXiv:2504.05974 prints δκ₄ = δκ₃/6 where the paper's own equations give δκ₄ = 6 δκ₃, a factor of 36. It was reported to the authors and is still in the published version.

Why the retraction is in the record rather than a deletion. The Letter was circulated, cited to its authors by name, and read. Removing it would leave the claim in circulation with nothing attached to it. It stays, with the withdrawal in front of it.

Particle phenomenology (SMEFT)

Physics

A Centre-Charge Selection Rule for the Wilson-Line Potential: The Fundamental Domain of Gauge-Higgs Unification Is Representation-Dependent (Part III)

Carles Marín Muñoz

The fundamental domain of gauge-Higgs unification is representation-dependent.

Show moreShow less

The fundamental domain of gauge-Higgs unification is representation-dependent.

Part II (DOI 10.5281/zenodo.21432627) identified its first gate — that a representation can display the Standard Model's fractional hypercharges only if its Z₄ centre charge a+2b+3c is odd — as the classical centre-charge congruence, and disclaimed it. This Part III shows that the disclaimed gate governs the Higgs sector, and for a reason that fits in one line: advancing the Wilson line by one period is, up to a Weyl reflection, multiplication by the central element −1 of Z(SU(4)) — and the centre charge is by definition how a representation responds to one.

Centre-parity selection. The Z₂ reduction of the centre charge determines which Fourier sector of the Wilson-line potential is allowed to be non-zero. A representation answers the central element with the scalar (−1)^(a+2b+3c), and the sector carrying the opposite sign is identically empty — not suppressed, absent. Matter admissibility, Kaluza–Klein twist pairing, the Fourier support of the potential and the geometry of its vacuum are four readings of that one bit. For fifty years the centre of the gauge group has been read as a restriction on matter; here it also restricts the potential.

The consequence. Akamatsu, Hirose, Maru and Nago halve the Wilson-line search region to α₂ ∈ [0,1/2] using a hypothesis they verify by inspecting their Table 1: equal multiplicities of (m,0) and (m,1) at odd m. That hypothesis is decided by the centre charge, and it inverts on exactly the class of representations able to host the Standard Model, since Part II forces their centre charge odd while the gauge adjoint is unavoidably even. Verified directly on the potential: the 35 is period-1 in α₂ exactly, while every admissible representation violates it by 2–30% of its own scale. The half-domain reduction does not transfer and the full torus must be scanned. This is not an erratum for AHMN, whose field content satisfies its own hypothesis; it is a warning for everything downstream, and the failure mode is silent.

An exact decoupling. The notch annihilates the fermion representation's entire contribution to the leading Kaluza–Klein order of the curvature at α₂=1/2, leaving a gauge-only constant identical across all eight admissible representations. The leading order is degenerate by theorem, so any naturalness ranking over this class is a statement about subleading terms whether or not it is presented as one.

Scope. The mechanism is neither an accident nor universal: the shift equals a central element only when the Wilson-line-neutral slots carry balanced twist signs, which for a single Wilson-line direction requires N even. A brute-force sweep gives no admissible alphabet for SU(3), SU(5), SU(7) and many for SU(4), SU(6), SU(8) — so SU(4) is the smallest group that can carry this selection rule.

Included: the paper in English and Spanish; a sorry-free Lean 4 certificate of the classification theorem; the numbers behind every table and figure as CSV; every script that regenerates a quoted number; and notch_preflight.py, a one-parity-bit check of whether a given representation's fundamental-domain reduction is legal.

Honesty ledger. The centre-charge congruence is classical and we claim none of it. The mechanism behind the vanishing theorem is classical too — {1,−1,t,1/t} has determinant −1, so it parametrizes the improper component of O(4), where an irreducible representation and its associate μ⊗det have opposite characters — and the determinant technique is described by Ayyer and Behrend as routine. Ours are: the principle and its four readings, the dichotomy, the explicit classification of the degenerate class with its Lean certificate, the inversion of the fundamental domain with direct verification, the decoupling corollary, the derivation of the (m,q) projection from the boundary conditions, and the SU(N) sweep. Two classical sources remain unread and are flagged as such in the paper; neither is load-bearing for the physics.

Gauge–Higgs unification Lean 4 Certificates (exact, SAT/SMT)

Physics

Three Gates to a Quark Generation: An Exact Criterion for Which SU(4) Representations Contain the Standard Model (Part II)

Carles Marín Muñoz

Show moreShow less

The companion paper (Part I, DOI 10.5281/zenodo.21432625) embedded a full Standard-Model quark generation in the dimension-60 representation (3,60) of SU(4) on T²/Z₂ and showed, by an exhaustive scan, that (3,60) is the smallest representation able to do so. This Part II turns that scanned fact into an exact law: which SU(4) representations can hold a quark generation, and why only those.

An irreducible representation with Dynkin labels (a,b,c) contains the Standard-Model quark cell {Q(2,1/6), u(1,2/3), d(1,−1/3)} in its T²/Z₂ chiral zero modes if and only if (a+2b+3c) is odd ∧ b≥1 ∧ a+b+c≥3 — an arithmetic condition (the Z₄ centre charge), a geometric one (the middle node of SU(4) excited), and a size one. We derive the criterion by deleting the middle node of the SU(4) Dynkin diagram, exposing a Levi subgroup SU(2)ₗ×SU(2)ₕ×U(1), and projecting the resulting Clebsch–Gordan tower onto the orbifold's chiral zero modes; the projection collapses the tower to a closed-form zero-mode count N = (b+1)(a+c+1)/2.

We are explicit about credit: the centre gate is classical, the branching is Littlewood–Richardson, and the midpoint property (the doublet's 1/6 is the mean of the singlets' 2/3 and −1/3) reflects the Pati–Salam hypercharge relation. What is new is the orbifold chiral projection that yields the closed count, the packaged three-gate criterion, and the reading of the ±1/2 cell as the invariant. A node-independence lemma (a simply-laced / Weyl-orbit fact) is included. Finally we place SU(4) in a family: the cell imposes three charge constraints on a hypercharge functional with rank(G)−1 free parameters, so it is a rigid obstruction exactly at rank 3 — SU(4) is the marginal case, and for higher rank a generic representation admits; the same counting explains why a pinned hypercharge in higher-rank models leaves quarks with integer charges and forces them onto a brane.

Every count is machine-checked in exact rational arithmetic (SageMath): the criterion is verified against the direct construction on all representations to dimension 900. English and Spanish versions are included, with the exact scripts. The computations were carried out and cross-checked with Claude (Anthropic) as an AI research assistant against a common machine-verifiable ground truth.

Gauge–Higgs unification Certificates (exact, SAT/SMT)

Physics

Anomaly- and Tadpole-Compatible Fermion Completion of Six-Dimensional SU(4) Gauge-Higgs Unification (Part I)

Carles Marín Muñoz

Show moreShow less

In gauge–Higgs unification the cancellation of gauge anomalies is necessary, but is it sufficient for a viable fermion sector? On an orbifold the answer involves genuinely local data — anomalies and tadpoles bound to the fixed points — that a bulk count misses. We make the question concrete for a colored quark block embedded in the dimension-60 representation (3,60) of SU(4) on T²/Z₂, built over the two-Higgs-doublet gauge sector of Akamatsu, Hirose, Maru and Nago (AHMN, arXiv:2603.05857); the fermion embedding is our own.

We fix the unique unbroken hypercharge that reproduces the Standard-Model quark charges (Y = (-7q₈+4q₁₅)/18), show by an exhaustive scan that (3,60) is the minimal SU(4) representation able to host a full quark generation, and organize every consistency requirement into a reproducible hierarchy of exact conditions: the irreducible six- and four-dimensional anomalies, the localized non-Abelian cubic residues (certified axiom-free in the Lean 4 proof assistant), the localized tadpole, the global SU(2) (Witten) constraint, and the boundary-mass matching of exotic zero modes.

We then exhibit — and independently verify in exact rational arithmetic — a 45-multiplet completion that cancels the eight anomaly coefficients and the localized tadpole together, with integral local cubic residues, so that here anomaly freedom and the tadpole condition are compatible.

This is not accidental: we prove an Existence theorem — on the fermion library the tadpole is linearly independent of the anomalies (the combined map has rank 10 = 8+2) and freely adjustable (its image on the anomaly-neutral non-negative cone is all of R²), so every anomaly-free completion of the block admits a tadpole-compatible one; the witness realizes a structural guarantee. The certificate is machine-checked in Lean 4 (depending only on propext). The same exact rank-and-cone test is released as a reusable tool, ghu_preflight.py, that decides for any orbifold fermion library whether a localized functional is an independent obstruction or is always absorbable. The decisive remaining test — whether the exotics can be given mass without lifting the Standard-Model quarks — is cast as an exact bipartite-matching gate and left open pending the full brane spectrum. Every step is a finite exact computation; the results reported are certificates, not estimates.

English and Spanish versions are included, together with two Lean 4 certificates, the reusable preflight tool, the exact SageMath verification scripts, and the full spectrum. The exact computations were carried out and cross-checked with Claude (Anthropic) as an AI research assistant against a common machine-verifiable ground truth.

Gauge–Higgs unification Lean 4 Certificates (exact, SAT/SMT)

Physics

Instability order and the selection mechanism of self-similar blowup in the Sabra shell model, and a family-type dichotomy of blowup universality

Carles Marín Muñoz

Show moreShow less

The inviscid Sabra shell model of turbulence blows up in finite time through a self-similar profile recently shown to be non-unique: an infinite family of N-bump profiles coexists with the attracting one-bump profile, leaving open (i) the linear stability of the family and (ii) the selection mechanism that makes the one-bump profile universal (Campolina-Simonnet-Thalabard, 2025). We compute the one-bump profile to machine precision, derive its renormalized-time stability operator, and show its spectrum is stable (instability order 0) up to the trivial t*-shift, translation, and a golden-ratio phase mode arising from the Sabra phase symmetry (a Fibonacci recurrence). Treating the N-bump profile as a weakly-coupled bound state of one-bump pulses, we show by a pulse-interaction computation that its instability order equals N-1: only the one-bump profile is a stable attractor, which explains the observed selection. We then test the recently proposed rate-instability-order universality law and find it does not transfer to Sabra: its exponents cluster (multi-pulse accumulation) rather than spread (reciprocal-affine). This motivates a family-type dichotomy of self-similar blowup - distinct-profile / intrinsic-instability families (rate spreads) versus multi-pulse / interaction families (rate clusters) - with a sharp discriminator: the internal phase freedom of the pulse.

English and Spanish versions are included. Developed with the assistance of an AI research assistant; all derivations and computations were verified by the author, who takes full responsibility for the content.

Turbulence & shell models

Computing · AI-LLM 8

Computing · AI-LLM

How Transformers Attend — Part I: Measured Profiles, Conditional Power-Law Models, and an Evidence Audit

Carles Marín Muñoz

Revised Part I of How Transformers Attend (19 November 2026).

Show moreShow less

Revised Part I of How Transformers Attend (19 November 2026). The 129-page English paper and 140-page Spanish translation distinguish measured attention profiles, conditional finite power-law calculations, configuration candidates and task outcomes. The Spanish edition uses Babel; its 2,272 mathematical spans, labels, references and numerical items were checked against the English source.

The paper integrates eight groups of conditional mathematical results. The accompanying Isabelle source verifies stated mathematical implications; Lean covers parts of four body results. These proofs do not establish a universal learned attention exponent, circuit causality or quality after KV compression. Historical interventions and instrument biases are reported with their limits.

This version deposits both full-paper PDFs, a separate Spanish theorem note, SHA-256 receipts and one source/data/program/proof archive (840 files, including 198 programs and 423 data files). A historical D3 result JSON is unavailable and is explicitly not reconstructed. The companion Blueprint maps the statements and four illustrative labs. The field guide gives measurement and application routes; TAF Agent calculates candidates or imports protocol-bound observations. The author remains responsible for the research and claims.

Transformers & LLM Lean 4 Isabelle/HOL Labs in the browser How Transformers Attend

Computing · AI-LLM

A Machine-Checked Backbone for the Thermodynamic Attention Framework: Lean/Mathlib Identities, Zero Sorries, and the Errata the Prover Caught

Carles Marín Muñoz

Show moreShow less

Companion formalization paper to the “Predicting How Transformers Attend” series (Marín 2026), Parts I–III. The Thermodynamic Attention Framework (TAF) rests on a dense web of closed-form algebraic identities — a Möbius transform relating the attention-decay exponent γ to the RoPE configuration, a renormalisation-group β-function, a Hagedorn heat-capacity CV, critical-exponent tautologies, and a Cayley fixed point. Dense formula tables are exactly where sign and factor errors hide.

We mechanise this backbone in Lean 4 / Mathlib: 52 theorems, zero sorrys, each statement pinned to the paper section it supports. Formalization is used here not as decoration but as an adversarial audit — and it earned its keep: it caught three factor/sign errors in the published formula tables (the V/β potential, off by a factor of 2; the CV coefficient at the Hagedorn point, ¼ → 1/12, a factor of 3; and the critical-exponent identity η = 2γ, residual non-zero throughout Phase A), and it distinguished a genuine prediction from a tautology by proving that the “information horizon” dhorizon = T is an identity of the Padé formula, not an empirical coincidence.

It also yields two positive results: the γ–Möbius collapse γ = (1−u)/(1+u) with u = T/(θ√2) (the √2 is load-bearing), and an arithmetic–geometric-mean bound γχ ≥ 2√2. All errata were incorporated into the corrected Parts I–II; this paper is the honest-revision ledger, machine-checked line by line.

Repository: github.com/karlesmarin/lean-taf (Lean toolchain leanprover/lean4:v4.30.0-rc2; Mathlib pinned; lake build re-verifies the whole library). English and Spanish editions included. Prepared with the assistance of an AI system (Claude, Anthropic); the mathematics and all claims are the author's responsibility.

Transformers & LLM Lean 4 How Transformers Attend

Computing · AI-LLM

Predicting How Transformers Attend, Part III: From Attention to Residual Computation — Separating Transport, Writing, and Commitment

Carles Marín Muñoz

Show moreShow less

Third paper in the “Predicting How Transformers Attend” series (Marín 2026), following Part I (Zenodo doi:10.5281/zenodo.19826343), which introduced the Thermodynamic Attention Framework and the closed-form predictor for the attention-decay exponent γ, and Part II (doi:10.5281/zenodo.19960573), the six-axis decomposition. Parts I and II characterised the distance axis of attention; this paper opens the orthogonal depth axis.

Its starting observation: the single interpretability question “is the answer here yet?” silently conflates four distinct statements about the residual stream — that information is present, linearly decodable, written, and used. The paper shows these are separate, independently measurable observables, and decomposes residual computation into three: transport (the mean input–output Jacobian; the Jacobian lens), net injection (direct logit attribution, DLA), and commitment (the depth at which the running decision locks). The DLA decomposition is exact: with the final normalisation frozen the output logit equals the sum of per-layer contributions (validated to 7.6×10−6, norm-aware for LayerNorm and RMSNorm).

Empirically the paper reports the only ladder-complete Jacobian-lens readability suite across a Pythia scale ladder (70M–2.8B) with cross-family anchors (Llama-2/3, Qwen2.5/3, GPT-2). The readability knee is a family property (Pythia 0.54–0.75 of depth, Llama 0.81–0.84) and the Jacobian-lens advantage band is strikingly heterogeneous (absent at d_head = 256; up to 68× at layer 1 of Qwen2.5-3B).

The paper's pivot is a structural theorem: the advantage band is not a “workspace” of stored content but a property of the transport operator itself (Jℓ = ∏k≥ℓ(I + w′k)), which forces a strong anticorrelation (Spearman −0.80 for net injection, pythia-410m; replicated on pythia-2.8b and Qwen3-1.7b) between Jacobian-lens advantage and net injection. A generic denoised mean operator saturates as an estimator at N ≈ 20 prompts and already beats the per-prompt oracle, so the lens advantage measures generic linear transport, not prompt-specific content. This sharpens — and does not contradict — the causal “global workspace” result of Lindsey et al. (Anthropic, 2026): a lens advantage is a hypothesis generator, not causal evidence. Across families the observables generalise but their chronology does not: a single number, Δprep = τwrite − τdecode, classifies families cleanly (Type A ≥ 0.5 vs Type B ≤ 0.3, no overlap).

Honest revisions, each by a pre-registered discriminant design and reported in the same register as surviving results: three hyperparameter predictors of the knee are refuted (the L_crit formula — discriminant pythia-1b, predicted 0.94, observed 0.688; a universal constant ≈0.69, killed by the full ladder; the RoPE fraction, inconclusive by a frozen control rule). L_crit is not discarded — it governs a distinct, causally-validated attention-regime transition, decoupled from the knee. τcommit is architectural, not a deep law. The relation of the chronology to the Part I exponent γ is left inconclusive (two γ-measurement protocols disagree and the direction of any co-ordination flips between them). All experiments are pre-registered with frozen decision rules; the load-bearing algebraic identities are machine-verified in Lean 4/Mathlib in a companion formalization paper (a separate release). English (14 pages) and Spanish (15 pages) editions are included. Prepared with the assistance of an AI system (Claude, Anthropic); the research and all claims are the author's responsibility.

Transformers & LLM Lean 4 How Transformers Attend

Computing · AI-LLM

Certified Short-Cycle Counts for the IEEE 802.11n (WiFi) LDPC Codes

Carles Marín Muñoz

Show moreShow less

Short cycles in the Tanner graph of a low-density parity-check (LDPC) code degrade belief-propagation decoding, and counting them is a standard task in code design. This paper does not count them faster. It counts them with a certificate: for each of the four LDPC codes of the IEEE 802.11n (WiFi) standard at block length n = 648, the number of shortest cycles is obtained from a machine-checked identity — the trace-formula gap law, proved sorry-free in Lean 4 in the companion paper (Part VI) — and cross-checked by three mutually independent computations that agree exactly: the non-backtracking trace tr(B^g)/2g, the gap law (tr(A^g) − p_g)/2g, and direct enumeration.

The census reads c_6 = 3942 (rate 1/2), c_6 = 8046 (rate 2/3), c_4 = 54 (rate 3/4, where the girth collapses to 4) and c_6 = 32346 (rate 5/6), and it tells a design story: the rate-3/4 code pays for its density with four-cycles, the most damaging kind, while the rate-5/6 code buys its girth back at the price of thirty-two thousand hexagons. The counting algorithms of the coding-theory literature are faster and reach further; the contribution here is the certification layer — an exact identity backed by a theorem with a checkable proof — which, to the best of the author's knowledge, no prior cycle-counting tool carries.

Applied companion to the godsil-gutman-lean series (Part VI). Census computed with AI assistance (Claude, Anthropic); the mathematics and all claims are the author's responsibility.

Coding theory Combinatorics & graphs Lean 4 Certificates (exact, SAT/SMT)

Computing · AI-LLM

Erratum: Predicting How Transformers Attend §5.2 Theorem 5.2 — Heat capacity coefficient at γ=1

Carles Marín Muñoz

Show moreShow less

SUPERSEDED (2026-05-20): The correction described in this erratum (C_V(gamma=1,N)=(log N)^2/12 in Thm. 7.1) has been incorporated directly into the corrected paper. See "Predicting How Transformers Attend", Version 3 (corrected), concept DOI 10.5281/zenodo.19826342. This standalone erratum is retained for the record but is no longer needed.

# Erratum — Predicting How Transformers Attend §5.2 Theorem 5.2   =========================================================
**Author**: Carles Marín — `[address removed]` **Date**: 2026-05-02 **Original paper**: [Marín 2026, Predicting How Transformers Attend (Zenodo 19826343)](https://doi.org/10.5281/zenodo.19826343) ==========================================================   ## TL;DR
§5.2 Theorem 5.2 of the paper states
> C_V(γ=1, N) = (log N)² / 4
and the correct asymptotic large-N coefficient is 1/12, not 1/4:
> C_V(γ=1, N) → (log N)² / 12 as N → ∞
The error is **a factor of three**. It originates in the truncation of the partition-function expansion at first order in (1−γ), missing a quadratic term that contributes the correction.
The qualitative conclusion of §5.2 (C_V finite at finite N, sharp in N → ∞) is **unaffected**. The TAF Agent diagnostic tool ([HF Space](https://huggingface.co/spaces/karlexmarin/taf-agent)) computes C_V via numerical derivative of U(γ), not via the analytic formula, and therefore returns the corrected value automatically.
## Where the proof goes wrong
The original proof retained only the linear term in (1−γ) of the Z expansion. Including the quadratic term:
Z(γ, N) ≈ log N [1 + ((1−γ)log N)/2 + ((1−γ)² (log N)²)/6]
gives, after taking log Z and differentiating:
U(γ) = (log N)/2 + (1−γ) ((log N)²)/12 + O((1−γ)²)
so that
C_V(γ=1, N) = −γ² dU/dγ|_(γ=1) = ((log N)²)/12.
## Independent confirmation
The same result follows immediately from the cumulant identity C_V(γ) = γ² Varₚ(log d) for p ∝ d^(−γ). At γ=1:
Var(log d) → ((log N)²)/3 − ((log N)²)/4 = ((log N)²)/12.
## Triple-system numerical verification
| System | Method | Result | |---|---|---| | Sócrates / NumPy | Direct discrete Varₚ(log d), N=10⁴ | C_V = 7.89 ; ratio to (log N)²/4 = 0.37 | | Sage docker | Exact rational arithmetic for N ∈ {10, 50, 100} | ratio/12 → 1 from above ; ratio/4 → 1/3 | | SymPy | Symbolic integration of cumulant identity | Var(log d) = (log N)²/12 exactly |
Three independent computer-algebra systems agree. The hand-derivation above produces the same coefficient.
## Impact
| Item | Affected? | |---|---| | §5.2 qualitative conclusion (crossover, not divergence) | No | | §5.2 numerical example N=2000 → 14.4 | Yes — corrected value ≈ 4.81 | | §5.3 Fisher–metric identity I = C_V/γ² | No | | §3.3 Padé formula for γ | No | | §4 MaxEnt power-law derivation | No | | §6 critical-layer formula | No | | §7 KV-compression theorems | No | | §8+ attention grammar / RLHF / fingerprinting | No | | TAF Agent (`heat_capacity_Cv`) | No (uses numerical derivative) |
The corrected value ∼ (log N)²/12 ≈ 4.81 at N=2000 is **closer to the empirical broad-peak measurement of 6.86** at γ ≈ 1.235 reported in the paper, removing the previously unexplained factor-3 discrepancy between theory and the paper's own measurement.
## How the error was caught
This erratum was generated by the **Sócrates Audit Framework**, a methodology for self-falsifying scientific claims, applied recursively to its own author's published work. The framework's three-stage algebraic / numerical / triangulation workflow flagged the §5.2 claim within minutes of being run on the paper. It is the framework's first published real-world impact.
The full audit log, the Sage script that triangulated the result, and the SymPy symbolic derivation are reproducible from the framework's repository.
------------------------------------------------------------------------------------------------------------
**Related fix**: TAF Agent v0.5.3 (KV-compression bug for Phase B models, simultaneous deploy) **Contact**: `[address removed]`

Transformers & LLM How Transformers Attend

Computing · AI-LLM

Predicting How Transformers Attend, Part II: A Six-Axis Decomposition with the Learned Imprint ν = -1/(2π), Sink-Dominated Precision Boundaries, Bimodal Phase Structure, and Honest Revisions

Carles Marín Muñoz

Show moreShow less

Companion paper to "Predicting How Transformers Attend" https://zenodo.org/records/20314038 Which introduced the Thermodynamic Attention Framework (TAF) and the closed-form predictor γ_Padé(θ, T) = (2θ - T√2)/(2θ + T√2) for the attention-decay exponent γ. This paper presents a phenomenological extension of TAF with five constructive contributions (ordered by empirical strength): (1) A precision-direction rule for 4-bit NF4 inference on full multi-head attention: the R² of the bf16 power-law fit predicts the sign of Δγ_{4-bit − bf16}. Sign-correct on 5/5 paired bf16/4-bit measurements (DeepSeek-7B-base, DeepSeek-7B-chat, Pythia-2.8B, Pythia-1B, Llama-3-8B, Qwen2.5-7B-Instruct) — a deployment heuristic for practitioners serving 4-bit inference. (2) A learned-imprint axis with slope ν ≈ -1/(2π), supported by three convergent arguments and a random-init falsifier (Pythia 70M/410M/1B at random init, p = 0.44). Honest caveats: bootstrap CI is wide ([-0.260, -0.008]) and a Pythia-70M trajectory across 9 checkpoints does not monotonically converge. (3) An algebraic decomposition of the Cardy-like entropy anomaly: ΔH_Padé(γ) = log(z/2) + 2·arctanh(γ), linearising empirically with slope ≈ 5 across the panel. (4) A bimodal phase structure of γ_text across the panel, with ~36% of measured LLMs sitting at γ ≥ 1 (Hagedorn zone), reframed as an industrial GQA-design correlate rather than a phase attractor. (5) Machine-verified algebraic backbone: all 15 algebraic identities of the framework verified by both Sage Groebner basis and Lean Mathlib4, including a previously-unstated quadratic identity D-SAGE-1: 2η² + η·γ_χ + 1 = 0. To our knowledge, this is the first transformer-attention paper with end-to-end dual-tool machine verification of its algebraic content. A separate correlation finding sits below the constructive contributions: the architectural concentration relation γ_text ≈ γ_Padé − 0.012·n_kv reproduces an in-sample R² = 0.30 (vs R² = 0.02 for Padé alone) but fails out-of-sample (median 70/30 hold-out R² ≈ -0.09 over 1000 random splits; family-leave-out aggregate R² = -0.027). The n_kv coefficient is statistically significant (bootstrap CI excludes zero) and the relative improvement over Padé alone is robust (+0.20 R² family-LOO), but absolute predictive power is essentially nil. We report it as a cross-panel correlation structure, not a predictive law — a down-grade documented internally rather than discovered by reviewers. A symmetric set of honest revisions accompanies the constructive material: seven claims from paper I or paper II drafts are withdrawn or demoted (R_c* ≈ 1.68 as a sharp boundary, γ = 1 - 1/φ as a code-tuning attractor, the Mittag-Leffler prefactor 1/Γ(1-γ), the universal soft-decay KV truncation rule, the "0.3% match" framing for ν, the d_horizon "law" which we show is algebraically ≡ T when γ matches Padé, and the κ·N_sem topological invariant). The framework emerges leaner and more honest. The accompanying public dataset (karlexmarin/taf-attention-decay on HuggingFace, 79 records across 33 models, CC-BY-4.0) and the diagnostic tool (karlexmarin/taf-agent on HuggingFace Spaces) provide reproducible measurements and operational recipes. This release includes both the English version (73 pages) and the Spanish version (76 pages) of the paper.

Transformers & LLM Lean 4 How Transformers Attend

Computing · AI-LLM

Universal Specialization-Coordination Structure in Language Model Training

Carles Marín Muñoz

Show moreShow less

  We report a universal organizational structure governing how transformer
  language models train: outer layers specialize while inner layers coordinate,
  and this reorganization follows a strict temporal order that precedes any
  measurable change in model performance.

  Across Pythia-70M, 160M, and 410M (6, 12, and 24 layers; 35 checkpoints
  each, up to step 143K), we show: (1) outer layer pairs develop increasingly
  distinct representations as capabilities emerge (inter-layer CKA falls
  monotonically, r = −0.93 to −0.96 with LAMBADA accuracy); (2) inner layer
  pairs converge to CKA ≈ 1.0, forming a permanent coordination zone whose
  fractional depth scales as 1−2/N (33% → 58% → 67% for N = 6, 12, 24);
  (3) an informational leading indicator Ob = I(X;Y)/H(Y), estimated via
  Gaussian MI with PCA reduction, peaks 500–1000 steps before the CKA
  transition, which precedes benchmark improvement — establishing the temporal
  chain Ob-peak → CKA reorganization → capability.

  This same chain was previously observed in 2-layer transformers during
  grokking on modular arithmetic [Marín, 2026]. Its replication in large
  language models suggests it is a fundamental property of transformer
  training, not an artifact of small-scale tasks.

  Practical implication: Ob provides a leading diagnostic for capability
  emergence that requires no benchmarks, no knowledge of the learned
  algorithm, and only forward passes through the model. A 72-configuration
  hyperparameter sweep (6 values of β2, 6 warmup fractions, 2 learning rates)
  confirms that the filter based on early Ob onset correctly identifies all 5
  non-grokking configurations (5/5, 100% precision) before 5% of the training
  budget is spent.

Transformers & LLM

Computing · AI-LLM

Inter-Layer Alignment Re-Rise Predicts Grokking in Transformers: A Pilot Study

Carles Marín Muñoz

Show moreShow less

We identify an internal signal that detects impending grokking ∼3,000 training steps
before the accuracy transition without any knowledge of the learned algorithm. The
signal is a non-monotonic re-rise of inter-layer CKA (Ob01, between layers 0 and 1 of
a small transformer): after an initial drop during memorization, Ob01 begins rising again at
step ≈750 exclusively in models that will grokk. This re-rise discriminates grokking from
non-grokking in 16/16 vs 0/5 seeds (Fisher exact p = 0.000049; one-sample t = 4.51,
p < 0.001), with onset consistently ∼3,297 ± 461 steps before the accuracy jump. The signal replicates across two primes (p = 97, p = 113) and across a structurally distinct modular
task: modular multiplication (6/6 seeds, onset step 750, lead 3,083±186 steps) identical onset to addition despite dierent underlying algorithms. A task-contrast experiment
with k-sparse parity reveals the boundary of the signal's scope: parity generalizes quickly
but Ob01 drops rather than rises the opposite dynamic. This demarcates a meaningful
distinction: the re-rise is a signature of tasks requiring distributed inter-layer coordination (Fourier-type algorithms), not of grokking or generalization in general. Practically,
the re-rise onset provides an early-termination criterion within the modular arithmetic family: runs showing no re-rise by step 1,000 do not grokk in any tested conguration, enabling
diagnosis thousands of steps before any test accuracy signal appears. We motivate Ob01 via
O(X, Y ) = I(X; Y )/H(Y ) and hierarchical predictive coding theory, while being explicit
that CKA is a linear proxy for O, not an estimator of it. Replacing CKA with MINE or
kNN MI estimators is the priority follow-up.

Transformers & LLM