Author: Joseph Messina

  • A Century-Old Theorem, Now Checked by a Machine: Simple Eigenvalues in Lean 4

    I finally brought my repository up to date: sturm-liouville-comparator-run. It holds a formal, computer-checked proof of a classical result from Sturm–Liouville theory, written in the Lean 4 proof assistant. Here’s what that means, why I care about it after desk rejections and a Mathlib suspension, and what it does and doesn’t claim.

    The problem

    Take the one-dimensional Schrödinger equation, −u″ + V u = λ u, where V is a potential that is continuous and grows without bound as you go out to infinity in either direction. Physicists call this a confining potential. The harmonic oscillator is the textbook example.

    The theorem says that for any energy λ, if you find two nonzero, square-integrable solutions, they must be multiples of each other. In plain terms, each energy level in a confining 1D potential has exactly one state, up to scaling. Mathematicians say the eigenvalues are simple, and physicists say there’s no degeneracy in 1D bound states.

    Why it matters

    This isn’t new mathematics. It’s about a century old, the limit-point case of Weyl’s theory, and it’s in standard textbooks like Coddington–Levinson and Teschl. But a lot of physics and spectral theory rests on it, and “everyone knows it” isn’t the same as “a machine has checked every step.”

    I’ve worked on this since March, and when I searched as of November 3, 2026, I couldn’t find a completed Lean proof of this result. Mathlib had no Sturm–Liouville, Schrödinger, or function-Wronskian material that I could find, and the closest projects I saw either worked on a compact interval or left the proof as a placeholder. If someone has done it, I’d love to hear about it. Open an issue on the repo.

    How the proof works

    It follows the classical argument in four steps:

    • The Wronskian of two solutions at the same λ is constant.
    • A square-integrable solution of a confining equation goes to zero at infinity, and so does its derivative.
    • So that constant Wronskian has to be zero.
    • A zero Wronskian forces the two solutions to be linearly dependent, by uniqueness of solutions to the initial-value problem.

    The proof file has 3 definitions and 14 lemmas and theorems, with no sorry (Lean’s placeholder for “trust me”).

    What the run shows

    The same file was checked three ways:

    • Axiom audit. The theorem depends only on Lean’s three standard axioms (propext, Classical.choice, Quot.sound). It uses no custom axioms and no shortcuts.
    • Comparator, Nov 3, 2026. Comparator is the Lean FRO’s proof judge. It confirms that the proved statements match the challenge statements exactly, including every definition they rely on, then replays the proofs through the kernel. It returned “Your solution is okay!” with Lean’s kernel. A second run with NanoDa, an independent kernel, accepted it too. The full log is in the repo.
    • Comparator, cold and sandboxed, Oct 29, 2026. The same four theorems were judged in a larger sandboxed run with every input hashed. The verdict was ACCEPTED, and the receipt is in my companion receipts repo.

    Everything is pinned to Lean v4.34.1 and a fixed Mathlib commit, so anyone on Linux can rerun the build, the audit, and Comparator using the steps in the README.

    How it was built

    I did this with AI the whole way, under my direction. An AI proof-search tool produced the original proof in three variants back in March. In October I consolidated them into one clean file, keeping only the lemmas the variants share and dropping the dead ends. Then, with an AI coding assistant, I ported it to the current Lean and Mathlib versions. That took fourteen mechanical changes inside proofs, and no definitions or statements changed. The repo’s provenance section has the full details and credits.

    Limitations, honestly

    • The math is classical. What’s new is the formal, machine-checked version, not the theorem.
    • The statement covers classical square-integrable solutions on the real line. It doesn’t build a self-adjoint operator or its domain.
    • The Nov 3 Comparator run happened on my laptop with a prebuilt library, outside the stricter sandbox. The Oct 29 run is the cold, sandboxed one.
    • “No Lean proof known” just means I searched and didn’t find one. It isn’t a priority claim.

    This theorem also feeds into a larger Lean library I’m building, where it serves as the Schrödinger-side input. More on that when it’s ready.

    Repo (Apache-2.0): github.com/Joeyxyxyz/sturm-liouville-comparator-run

  • What the Approximation Throws Away: My Duke Quantum Hackathon, 24th of 199

    What the Approximation Throws Away: My Duke Quantum Hackathon, 24th of 199

    This fall I entered the Duke Quantum Hackathon 2026, the “Quantum Echoes” challenge run by BlueQubit with DuQuantum. I finished 24th out of 199 with a score of 1,919 out of 3,000. I want to tell you what the problems actually were and what I learned, because the most valuable part wasn’t the ranking. It was learning where the real limit sits when you simulate quantum circuits.

    What’s an echo circuit?

    Every problem was an OTOC echo circuit. OTOC stands for “out-of-time-order correlator,” and the idea is easier than the name. You run a quantum system forward, give one qubit a small nudge (a “butterfly”), then run the system backward. If the nudge stayed local, the system comes back almost where it started. If it spread through the system and scrambled, the echo fades. For each qubit we had to report one number, the expected Z readout ⟨Z⟩: near 1 means the echo came back cleanly, and near 0 means the information scrambled away.

    There were seven problem sets that got bigger and harder:

    • S1, S2, S3 (4, 16 and 30 qubits): open samples, worth 100 points each.
    • G1 (30 qubits): 300 points.
    • G2 (36 qubits): 600 points.
    • G3 (36 qubits): 800 points.
    • G4 (38 qubits): 1,000 points, the hardest one.

    Up to 30 qubits, a regular computer can still simulate the circuit exactly, so S1, S2, S3 and G1 got exact simulation and full marks. Above that, exact simulation stops being possible and you have to use approximations. That’s where the real contest started.

    G2 submitted Z values by qubit, showing the echo shape
    G2, 36 qubits: the echo comes back near 1 at the edges and scrambles toward 0 in the middle.

    The real floor was truncation, not compute

    To be clear, everything in this hackathon ran on classical simulators. There was no quantum hardware and no hardware noise. What I ran into is that on the hard circuits, the limit on my results wasn’t how much computing power I had. It was truncation error: the information each approximation method quietly throws away to stay affordable.

    On G2 I used matrix-product-state (MPS) simulation, which compresses the quantum state and caps how much entanglement it keeps (the “bond dimension”). Raising the bond dimension step by step from 32 to 256 took my score from 342 to 549 out of 600. But the ladder never fully converged, so I studied how it failed instead of only pushing it higher. The truncation pushed values upward in a predictable way. I added a fixed correction for that bias plus a half-step extrapolation along the last rung, both set in advance using circuits where I knew the exact answers, and G2 went to 591 out of 600.

    Score progression across submission versions for G2 and G4
    G2: gains from raising the bond dimension (v3–v7), then the bias correction and half-step extrapolation (v9). G4: later versions were partly guided by returned scores, as disclosed in my notes. Only scored versions are shown.

    G4 humbled me. I switched to a Pauli-path simulator, which tracks the most important pieces of the evolving operator and drops anything below a threshold. On this circuit, even the finest threshold the platform allowed cut away almost everything. Sixteen qubits came back as exact zeros at every threshold, which meant every path that would have carried the echo was cut. Twenty more came back with tiny leftover values, below what the simulator could really resolve. Only two qubits gave clean, repeatable signals.

    So most of my G4 work was figuring out which leftovers still carried information. When I zeroed the tiny values, my score went down, which told me they weren’t pure noise. Their signs held up even though their sizes didn’t. I ended up keeping the sign the simulator reported and estimating the size from how far the operator had spread. My early G4 rules were fixed before any scores. For the later versions, I used the returned scores to choose between approaches I had already written down and to decide which direction to push the estimate, and I disclosed that in each note. G4 went from 17 to 298 out of 1,000. That’s not a lot of points, but most of them came from learning to read what the approximation left behind.

    Rules first, scores second

    The part I’m proudest of is the discipline. On a leaderboard it’s tempting to tweak numbers until the score goes up. I tried hard not to. For every submission I wrote a method note. Wherever I could, corrections were fixed ahead of time from test sets with known answers, and no individual value was ever set by hand. When I did use a returned score to choose between methods I had already written down, as I did in later G3 and G4 versions, I said so in that file’s note. I also noted which runs used purchased compute credit, with the organizers’ go-ahead.

    I had AI assistance for tooling, analysis and planning, and I say so in every note. The thinking, the choices and the calls about what counts as honest were mine.

    Final best score per problem compared with maximum
    Best score per problem: S1–S3 100 each, G1 300, G2 591, G3 430, G4 298. Total 1,919 of 3,000.

    Why this matters to me

    Every approximation has a blind spot. Getting good at this kind of work means finding that blind spot, measuring it, and correcting for it honestly, without pretending it isn’t there. That’s the kind of independent science I want to keep doing, and the habit I’m bringing to what comes next.

    If you want to back that work, my fundraiser is here: https://gofund.me/1b608e7a4

    — Joseph Messina

  • Sometime…

    A while ago I started this site. Actually back this all started because a February dream in 2025, & utilizing AI & Quantum computers. While the field has barley just begun to scratch the surface of AI use in math & physics, I was already doing it a year before they claimed capability was there. So, expect sometime soon, to start to see work uploaded. Expanding on existing pages, & lots more that has developed alongside the project. If you’ve been waiting around. I appreciate you, keep your eyes on the look out. 🙏 🛸

  • Hello World!

    Welcome to WordPress! This is your first post. Edit or delete it to take the first step in your blogging journey.