When Verification Is Not Agreement: Cross-Agent LLM-to-Dafny Formalization
Organizations: Georgia Institute of Technology, Atlanta, GA 30332
Abstract
A verified Dafny postcondition certifies that a formula holds, but it does not guarantee that the result was reached through genuine independent reasoning. We introduce a cross-agent formalization protocol where a Specifier model translates clinical trial criteria into a Dafny predicate, and an Implementer model writes an operational method checked against it. A same-model control establishes that even with no capability gap, independent re-extraction from identical text agrees only 59.3% of the time. Evaluating four model configurations on 96 clinical trial documents, we find that agreement is highly sensitive to how model capability is allocated across the two roles: the GPT-4.1-nano/GPT-4.1-mini configuration achieves 53.0% agreement when the stronger model is the Implementer, but only 14.3% when the roles are reversed. The strongest tested configuration, GPT-5.6-luna/GPT-5.4-mini, improves agreement to 34.4% but remains below the same-model baseline and is dominated by direct contradiction (42.7%). We also detect a critical verification artifact in which a weaker Implementer satisfies the postcondition by invoking the Specifier's predicate directly; after structural auditing, corrected agreement falls from 14.3% to 13.2%. Our results show that verification success alone is insufficient evidence of independent cross-agent agreement, and that model capability does not guarantee agreement when formalizing the same source independently.
Figures & tables
| Specifier / Implementer | Agreement | Coverage-gap | Contradiction | Corrected | |
|---|---|---|---|---|---|
| GPT-4.1-mini / GPT-4.1-mini (control) | 91 | 59.3% | 14.3% | 26.4% | 59.3% |
| GPT-4.1-nano / GPT-4.1-mini (weak spec) | 83 | 53.0% | 27.7% | 19.3% | 53.0% |
| GPT-4.1-mini / GPT-4.1-nano (weak impl) | 91 | 14.3% | 61.5% | 24.2% | 13.2% |
| GPT-5.6-luna / GPT-5.4-mini | 96 | 34.4% | 22.9% | 42.7% | 34.4% |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Requests | Prompt tokens | Completion tokens | Total tokens |
|---|---|---|---|---|
| GPT-4.1-nano | 1,030 | 1.51M | 0.110M | 1.62M |
| GPT-4.1-mini | 2,080 | 2.94M | 0.252M | 3.19M |
| GPT-5.4-mini | 192 | 0.287M | 0.018M | 0.305M |
| GPT-5.6-luna | 192 | 0.272M | 0.048M | 0.320M |
| Total | 3,494 | 5.01M | 0.428M | 5.44M |
| Specifier / Implementer | Agreement | Corrected | Coverage | Contradiction |
|---|---|---|---|---|
| GPT-4.1-mini / GPT-4.1-mini | ||||
| GPT-4.1-nano / GPT-4.1-mini | ||||
| GPT-4.1-mini / GPT-4.1-nano | ||||
| GPT-5.6-luna / GPT-5.4-mini |