From a parameter to evidence, a Lean proof, and a diagnostic.
Transcript
A question for the atlas
These graphs have four vertices. How many roots of their matching polynomials lie above seven fifths, counting multiplicities? We will design an atlas to answer that question. Each component must contribute to the count, coverage, or diagnosis. First try the method on a cubic. Its Lean proof is small, and it shows how to turn input conditions into a uniform guarantee.
Set the output before searching
For this cubic, p_c(t), the input is a real number c. The output we want is a proof of at least three distinct real roots. Look at the obligations that card opens. Supply a nonzero polynomial, four strictly increasing points, and a negative product for each pair of neighboring evaluations.
From exploration to exact evidence
Our four witnesses are minus two, minus one, one and two. Move c and the curve changes, while those four sample locations stay put. Evaluate exactly. The first value is c minus two, the second is c plus two, and those same two values repeat in that order. To get minus, plus, minus, plus, require c minus two to be negative and c plus two positive. This is equivalent to minus two less than c less than two.
Read the checked proof
Here is the checked theorem. It keeps a real parameter and takes the two strict bounds. Its conclusion asserts at least three distinct roots. Apply the alternating-sign theorem to the nonzero polynomial and the witness vector. Two holes remain, one for the ordering and another for the signs. The card turns those facts into three disjoint intervals containing roots. Lean checks a single declaration for every c satisfying its assumptions. We tried a Newton branch. It checks, but substituting the coefficients reduces it to zero at least minus twenty-seven. We leave that branch out of the machine.
A diagnostic that guides repair
The polynomial and its goal stay the same, but one evaluation becomes zero. The diagnostic can identify the first product that is no longer negative. Now set c to two with the original witnesses. The product fails for a different reason. We have reached the boundary of the uniform proof. At the boundary we have a different proof. The factorization into t minus one squared times t plus two exhibits a double root. Lean checks the identity by expansion.
Transfer the method to the atlas
Return to the atlas. The input is a graph and a rational threshold. We want disjoint intervals, multiplicities, and the number of roots strictly above the threshold. Work backwards: obtain the coefficients from the graph, bound the search, justify the counts, and prove coverage. This actual Excovery query, from a polynomial to a root count, proposes the Budan Fourier bound among other candidates. A bound can rule out intervals. But our answer also requires an exact count with multiplicities. Select a rule by that guarantee. If the bridge from graph to coefficients remains open, a proof about that polynomial does not yet answer the graph question.
The atlas components
The matching polynomial uses counts of disjoint edge sets of each size as coefficients, with alternating signs. The four-vertex path has three edges and one two-edge matching. Its polynomial is t to the fourth minus three t squared plus one. Two disjoint edges give another polynomial, t to the fourth minus two t squared plus one. Heilmann and Lieb's results in cards sixty-nine and seventy give real roots and a degree-based bound. With maximum degree at most two, start from minus two to two. Sturm certifies exact counts for square-free factors. If an endpoint is itself a root, check that zero and record it separately. The factors, raised to their multiplicities, must recover the polynomial. With real splitting established, the weighted counts must sum to its degree. Each piece has a concrete job: establish the input data, decide where to search, or prove that the atlas is complete.
Certify the interval count
Let's check the count for the four-vertex path. We want roots strictly above seven fifths. The global bound is two and the polynomial at two is five, so we can use two as the upper endpoint. Sturm works on a finite interval. Card thirteen needs a square-free factor, ordered endpoints, and neither endpoint can be a root of that factor. Start the sequence with the polynomial and its derivative. Each step appends the negative remainder of the preceding division. These are the five polynomials for the path. Evaluate the sequence. At seven fifths, a minus sign is followed by four plus signs. At two every sign is positive. The variation difference is one minus zero. That is why the interval contains one root. Since the factor occurs once, the weighted count is also one. For two disjoint edges, the factor t squared minus one occurs twice. At a threshold of one, the endpoint is a root, so the Sturm hypothesis needs attention. Record one as an exact point of multiplicity two, exclude it from the strict query, and remove its linear factor before counting the remaining roots. The remaining factor no longer vanishes at the endpoint. The prototype computes the coefficients two ways and uses exact arithmetic for the count. This panel shows how a Lean machine would reproduce and check that count.
A query with an exact answer
Return to seven fifths. Compare the path and the two disjoint edges at the same threshold. For the path, the largest positive root lies between eight fifths and thirteen eighths. The other lies between three fifths and five eighths. The negative intervals are reflections. All four roots are simple, and only the largest interval lies above seven fifths. In the other graph, the polynomial is t squared minus one, squared. The roots minus one and one each have multiplicity two. At seven fifths the count is zero. If the threshold is one, the double root at the threshold is excluded by strict comparison. At three quarters, the double root contributes two. The same atlas can answer the new question without approximating the roots again. These worked examples have exact calculations. For general inputs, those calculations still need to be wired to Lean checks of origin, factors, and counts.
What completes the machine
Each piece must close an obligation that affects the answer, coverage, or diagnosis. Otherwise leave it out. Card sixty-eight transfers the matching polynomial to the adjacency characteristic polynomial for forests. Connect it only if the query needs that spectrum. The cubic prototype already has a Lean check. The atlas has exact worked examples and formal adapters still to build. Test the design by accepting the same counts on a suite of graphs and rejecting an altered coefficient, an omitted root, and a false multiplicity. Try a threshold in the simulation and download the Lean proof for the family. A reproducible result and a diagnostic turn the pieces into a machine.