MINDRAQResearch & insights

When Agreeing Solvers Share the Same Mistake

Assess solver independence through shared assumptions, input transformations, and adversarial tests before treating matching answers as evidence of correctness.

Two correct calculations can answer the wrong question

Suppose a problem asks for the positive solution of an equation, and a parser drops the word positive. Two independent algorithms solve the resulting equation perfectly. They return the same set of roots. Their agreement confirms something about the transformed equation, but it does not establish that the original request was satisfied.

This is the central difficulty in using independent routes as evidence: independence must be evaluated across the entire chain. Different algorithms can share a faulty parser, a mistaken domain assumption, a conversion routine, or a comparison rule. Diversity at the final calculation stage does not eliminate dependence upstream.

The practical question is therefore specific: which classes of error can one route expose in the other? A second route is valuable when it changes the system's failure surface, not merely when its source code lives in a different module. Design reviews should name those error classes before counting routes.

Draw the dependency graph before assigning confidence

Consider a fictional arithmetic service with a text reader, a normalized expression, two solvers, and a canonicalizer. Solver A uses symbolic manipulation. Solver B uses an independently implemented exact arithmetic routine. Both consume the same normalized expression and both pass results through the same canonicalizer.

This arrangement can reveal some solver defects. It cannot reliably reveal a normalization error that changes subtraction into addition. It may also hide a disagreement if the canonicalizer rounds two distinct values into the same decimal string. The shared components form a common failure path around the apparent independence.

Mark each component as shared, separately implemented, or separately specified. Those categories are not equivalent. Two implementations built from the same mistaken specification can agree consistently. Conversely, two algorithms with shared utility code may still provide strong protection against a particular algebraic error if the utility code is outside that error's causal path.

Use the graph to define bounded claims. “The routes independently evaluate this normalized expression” is narrower and more defensible than “the answer has independent verification.” The latter sounds as though interpretation, computation, and presentation have all been checked separately.

Quantify the common failure floor

A simple scenario shows why route count alone can mislead. Let a shared interpretation failure occur on 1% of inputs and force both routes to agree on a wrong answer. On the remaining inputs, assume each route independently fails with probability 2%. Under the additional conservative assumption that simultaneous route failures produce the same wrong answer, the overall wrong-agreement probability is 0.01 plus 0.99 times 0.02 squared, or 1.0396%.

Without the shared failure, the independent term would be 0.04%. Most of the risk in this example comes from the common interpretation path. Adding another similar solver can reduce the independent term while barely changing the total. Improving the shared reader may have much greater value.

Figure 1 — Values follow c + (1 − c) × 0.02², assuming every modeled common failure and paired route failure produces wrong agreement. Illustrative model — not measured data.

These assumptions deliberately simplify reality. Route errors need not be independent, and wrong answers need not match. The calculation is not an estimate of any deployed system. It demonstrates which measurements would be necessary before translating agreement into a numerical reliability claim.

Test independence with mutations

Build a mutation suite around failure mechanisms. Change the interpretation of a sign, omit a constraint, alter a unit, swap an inequality boundary, or round an intermediate value. Each mutation should have a known expected response. The question is whether the second route, fidelity check, or final verifier detects the change.

For a domain-constrained equation, remove the domain restriction from only one route and verify that the discrepancy remains visible. Then remove it from the shared reader and observe whether any downstream check notices. The difference between those outcomes reveals the protection supplied by route diversity versus input fidelity.

Include comparison mutations. If exact values are required, compare one third with a nearby decimal approximation. A display formatter may reasonably show both as 0.333, but an acceptance checker should not infer exact equality from that display. Separate presentation formatting from mathematical equivalence.

Maintain a table of mutations and detection locations. A mutation caught by an upstream check does not prove that a downstream verifier works. Temporarily isolate stages in a test environment so each claimed protection can be exercised on its own. Otherwise a strong early check can conceal a broken later one for years.

Figure 2 — One fictional design detects different mutations at different stages; 1 means detected and 0 means not detected. This is a test-planning example, not a benchmark. Illustrative model — not measured data.

A concrete mutation makes the shared-reader problem testable. Start with the request to return the positive root of x squared equals nine. The expected result is three. A mutated shared reader omits the positivity constraint, so both routes return minus three and three. Route comparison passes because the outputs agree. An exact verifier consuming only the transformed equation also accepts both roots. Only a fidelity check against the original request rejects the result. This is the dropped-constraint row of Figure 2, where the reader audit detects the mutation but the other stages do not.

The matrix also assumes a solver sign error is detected by route comparison and the exact verifier, while shared rounded output is detected only by the exact verifier. Preserve the transformed input and verification scope with each test result. A verifier advertised as exact can be exact about the wrong proposition; its strength does not extend automatically to constraints that never reached it.

Prefer disagreements that teach you something

A disagreement should carry enough information to locate its origin. Preserve the parsed problem, domain constraints, intermediate exact values, and each route's result before canonicalization. A final “mismatch” flag without those artifacts creates expensive manual reconstruction.

Classify disagreements by stage. Input interpretation, unsupported domain, arithmetic failure, numerical tolerance, and output representation require different remedies. Combining them into one failure rate encourages broad changes that may increase coverage while weakening the precise check that caught a real defect.

Do not resolve disagreements by majority vote unless the product explicitly promises only consensus. Three routes can share a bad assumption while one exposes it. The minority result may be wrong too, but its existence is evidence that the certification conditions have not been established. Escalation or abstention preserves that distinction.

When a disagreement is resolved, add the smallest regression example that preserves the mechanism. A large original problem can obscure why the fix works. Keep the original example for realism and a reduced example for diagnosis. Together they make future failures easier to interpret.

Report the scope of agreement

A useful result record states which interpretation was checked, which assumptions were active, which routes ran, and what equivalence relation compared their outputs. It should distinguish exact equality, interval containment, and tolerance-based numerical agreement. Those are different evidence claims.

It should also identify shared dependencies relevant to the claim. Readers do not need an exhaustive software inventory beside every answer, but maintainers need a way to trace a newly discovered shared defect to affected results. Versioned interpretation and comparison components make that review possible.

Review maintenance changes against the dependency graph. A refactor that consolidates two parsing routines may reduce code duplication while increasing common failure exposure. That can still be a sensible trade, but it changes the independence claim and should trigger the relevant mutation tests. Conversely, duplicating a routine without changing its specification or test inputs may increase maintenance cost without adding useful corroboration.

Keep evidence about independence alongside ordinary performance results. A faster solver pair is not automatically a better verification pair. Report the mutation classes each route can expose, the shared components that remain, and the unresolved assumptions. This gives maintainers a concrete basis for choosing between another solver and a stronger input check.

The engineering objective is not maximal disagreement or maximal agreement. It is meaningful corroboration: routes that can fail differently, checks that preserve those differences, and a decision process that refuses to convert an unresolved mismatch into certainty. Agreement becomes useful evidence when its limits are visible.