Research portal

Mathematical note

Proof-discovery and verification contract

math/proof-discovery-verification-contract.md

Edition
Site v0.3.0 · continuous main snapshot
Source revision
ec2865b0eac15148675c629981a545632b3571c5
Extent
1,774 words
Public route
https://www.cordana.dev/math/proof-discovery-verification-contract/
Mapped records9 mapped records

Direct repository links only; no document-level evidence status is implied.

This note defines the measurement boundary for Fixture F-004. It operationalizes the versioned propose–challenge–decompose–prove–check–publish–invalidate lifecycle derived from the mathematical-practice audit. It is a shared benchmark contract for Candidates 004, 009, 010, 011, 014, 017, and 019.

Immutable identity envelope

Every episode starts with a sealed identity envelope

Ie=(hp,hd,h,ha,hL,hC,hK,hs),I_e=(h_p,h_d,h_\ell,h_a,h_L,h_C,h_K,h_s),

where ee identifies the episode; hph_p is the cryptographic hash of the exact problem statement; hdh_d hashes its definitions and encodings; hh_\ell hashes the declared logic and semantics; hah_a hashes the admitted axioms; hLh_L hashes the complete accessible library version; hCh_C hashes the accessible corpus, retrieval index, and cutoff; hKh_K hashes the checker, certificate calculus, and preprocessing reconstruction; and hsh_s hashes the task-family generator and paired random seed. Every hh value is an immutable byte string. Hash equality establishes identity of registered bytes, not adequacy of the formalization or soundness of the implementation.

The accessible information record is

Λe=(Aetrain,Aeprompt,Aeretrieve,Aeproof,Aeeval,Aehuman),\Lambda_e=(A_e^{\mathrm{train}},A_e^{\mathrm{prompt}}, A_e^{\mathrm{retrieve}},A_e^{\mathrm{proof}},A_e^{\mathrm{eval}}, A_e^{\mathrm{human}}),

where each AexA_e^x is a set of immutable artifact identifiers available through channel xx. The channels respectively cover training, prompt/context, retrieval, proof or tactic traces, evaluation feedback, and human hints or formalization. Availability is recorded independently of whether an artifact is retrieved or used.

Versioned lifecycle state

At event time tt in seconds from episode start, define

St=(Gt,Qt,Lt,Xt,Dt,Ct,Rt,σt),S_t=(G_t,Q_t,L_t,X_t,D_t,C_t,R_t,\sigma_t),

where GtG_t is the set of open typed goals, QtQ_t is the queue of proposed operations, LtL_t is the accessible immutable library view, XtX_t is the set of examples and counterexamples, DtD_t is the proof-and-dependency directed acyclic graph (DAG), CtC_t is the set of proof, refutation, model, or test certificates, RtR_t is the append-only event record, and σt\sigma_t is the typed publication state. The finite state space is

Σ={proposed,tested,proved,refuted,unknown,disputed,retracted}.\Sigma=\{\mathrm{proposed},\mathrm{tested},\mathrm{proved}, \mathrm{refuted},\mathrm{unknown},\mathrm{disputed}, \mathrm{retracted}\}.

An event ata_t may transform the state only when its typed preconditions hold:

St+1=T(St,at),atA(St),S_{t+1}=T(S_t,a_t),\qquad a_t\in\mathcal A(S_t),

where TT is the versioned transition function and A(St)\mathcal A(S_t) is the set of admissible events in state StS_t. Tested records finite support only; proved records acceptance of a derivation relative to IeI_e; refuted requires an admissible counterexample or checked refutation; unknown preserves timeouts, unsupported theories, and incomplete searches; disputed records an unresolved challenge to formalization, assumptions, checking, or significance; and retracted records invalidation or supersession without deleting history.

A published version is

vi=(hi,Pi,oi,ui,ti,σi,Ei,Bi),v_i=(h_i,P_i,o_i,u_i,t_i,\sigma_i,E_i,B_i),

where hih_i is the version hash, PiP_i is the set of parent-version hashes, oio_i is the typed transformation, uiu_i is the actor or process identifier, tit_i is the event time in seconds, σiΣ\sigma_i\in\Sigma is the state, EiE_i is the evidence-and-certificate set, and BiB_i is the measured cost record. A new version never overwrites its parents.

Proposals, tests, and counterexamples

Let pip_i be candidate proposition ii, θi\theta_i its explicit definitions and parameters, OiO_i its set of proof obligations, HiH_i its declared source and transformation ancestry, and qiq_i its proposal method. The proposal record is

zi=(pi,θi,Oi,Hi,qi,Ie).z_i=(p_i,\theta_i,O_i,H_i,q_i,I_e).

For a universally quantified candidate pixXi:Pi(x)p_i\equiv\forall x\in\mathcal X_i:P_i(x), an exact counterexample is an element xXix^*\in\mathcal X_i such that

Pi(x)=false.P_i(x^*)=\mathrm{false}.

Xi\mathcal X_i is the declared admissible domain and PiP_i is the encoded Boolean predicate. The counterexample record must prove or independently check both domain membership and predicate failure. Its size s(x)R0s(x^*)\in\mathbb R_{\ge0} is measured under a preregistered task-native order; smallest-counterexample claims compare s(x)s(x^*), not discovery time alone.

For a finite test multiset Ui={x1,,xn}U_i=\{x_1,\ldots,x_n\}, empirical support is

q^i=1nj=1n1[Pi(xj)=true],\widehat q_i= \frac{1}{n}\sum_{j=1}^{n}\mathbf 1[P_i(x_j)=\mathrm{true}],

where nn is the test count, 1[]\mathbf 1[\cdot] is an indicator, and q^i\widehat q_i is dimensionless. The record also names the generator, distribution or enumeration boundary, random seed, arithmetic precision in bits, and error interval in the predicate's native unit. Even q^i=1\widehat q_i=1 leaves the state tested unless a checked exhaustive reduction or proof closes the universal obligation.

Abstraction obligations

Let X\mathcal X be a concrete domain, A\mathcal A an abstract domain, α:XA\alpha:\mathcal X\rightarrow\mathcal A an abstraction map, and γ:A2X\gamma:\mathcal A\rightarrow2^{\mathcal X} a concretization map. For a concrete property P:X{true,false}P:\mathcal X\rightarrow\{\mathrm{true},\mathrm{false}\} and abstract property P:A{true,false}P^{\sharp}:\mathcal A\rightarrow\{\mathrm{true},\mathrm{false}\}, using the abstraction to prove PP requires the soundness obligation

aA:P(a)xγ(a):P(x).\forall a\in\mathcal A:\quad P^{\sharp}(a)\Rightarrow \forall x\in\gamma(a):P(x).

When a claimed transfer also requires preservation of operation f:XXf:\mathcal X\rightarrow\mathcal X, declare an abstract operation f:AAf^{\sharp}:\mathcal A\rightarrow\mathcal A and check

α(f(x))=f(α(x))\alpha(f(x))=f^{\sharp}(\alpha(x))

for the stated subset of xXx\in\mathcal X. The equality is an exact semantic claim unless a typed approximation relation and tolerance are registered. Excluded cases, failed concretizations, reconstruction loss, and the human time used to choose α\alpha are part of the result.

Decomposition and proof-DAG reconstruction

For target goal g0g_0, let the proof DAG be

Dπ=(Vπ,Eπ,r,κ),D_{\pi}=(V_{\pi},E_{\pi},r,\kappa),

where VπV_{\pi} is a set of goal, lemma, definition, axiom, or certificate nodes; EπVπ×VπE_{\pi}\subseteq V_{\pi}\times V_{\pi} contains directed dependency edges from a conclusion to each required premise; rVπr\in V_{\pi} is the root node encoding g0g_0; and κv\kappa_v is the typed local reconstruction function stored for node vv. For each non-leaf node vv with dependency set dep(v)\operatorname{dep}(v), reconstruction requires

κv({πu:udep(v)})=πv,\kappa_v\left(\{\pi_u:u\in\operatorname{dep}(v)\}\right)=\pi_v,

where πu\pi_u is a checked artifact proving node uu and πv\pi_v is the constructed artifact for node vv. Leaves must resolve to hashed axioms, definitions, admitted theorems, exact decision procedures, or independently checked certificates in IeI_e.

Let topo(Dπ)\operatorname{topo}(D_{\pi}) be a topological ordering from leaves to root. Full-DAG reconstruction succeeds when every κv\kappa_v executes in that order and the independent checker accepts the resulting root artifact against hph_p and hLh_L. A list of plausible lemmas, a cyclic graph, or individually checked children without a parent reconstruction function does not close g0g_0.

Proof-dependency economy is reported, not assumed. If NallN_{\mathrm{all}} is the number of accessible library nodes and NclN_{\mathrm{cl}} is the number in the root's transitive dependency closure, then

ρdep=NclNall\rho_{\mathrm{dep}}= \frac{N_{\mathrm{cl}}}{N_{\mathrm{all}}}

is a dimensionless dependency ratio. Smaller is useful only if reconstruction, robustness, and transfer remain non-inferior.

Generator, certificate, and checker separation

For instance bytes FF, generator GG, claimed verdict yy, certificate cc, preprocessing trace rFr_F, and independent checker KK, acceptance is

Accept(F,y,c)=1[h(F)=hp]1[K(h(F),y,c,rF,hL,hK)=accept],\operatorname{Accept}(F,y,c)= \mathbf 1[h(F)=h_p]\, \mathbf 1[K(h(F),y,c,r_F,h_L,h_K)=\mathrm{accept}],

where h()h(\cdot) is the registered hash function and both indicator factors are dimensionless. Generator GG cannot set the checker's verdict. The identities, code lineage, parsers, libraries, axioms, hardware, and people shared by GG and KK are published as a shared-trust-root set WGKW_{GK}; process separation is not described as independent when WGKW_{GK} contains the relevant possible fault.

For accepted artifact ii, record certificate size bicertb_i^{\mathrm{cert}} in bytes, generation time tigent_i^{\mathrm{gen}} in seconds, checking time ticheckt_i^{\mathrm{check}} in seconds, checker peak memory micheckm_i^{\mathrm{check}} in bytes, and certificate lifecycle energy EicertE_i^{\mathrm{cert}} in joules. An unsupported solver exit code or a certificate that does not bind the exact instance and preprocessing trace cannot produce proved or refuted.

Leakage-safe task partitions

Let U\mathcal U be the universe of theorem, proof, definition, example, counterexample, generated sibling, and source artifacts. Define a symmetric ancestor-related relation A\sim_A over U\mathcal U that groups exact duplicates, renamings, restatements, specializations, isomorphic generated siblings, proof ancestors, and source-equivalent formalizations under the frozen detection protocol. Let [u]A[u]_A denote the group containing artifact uu.

For training artifacts TU\mathcal T\subset\mathcal U and confirmatory artifacts HU\mathcal H\subset\mathcal U, the dependency-safe split condition is

{[u]A:uT}{[u]A:uH}=.\{[u]_A:u\in\mathcal T\} \cap \{[u]_A:u\in\mathcal H\}=\varnothing.

Additionally, if clD(u)\operatorname{cl}_D(u) is the transitive proof and library dependency closure of uu, require

(uHclD(u))T=\left(\bigcup_{u\in\mathcal H}\operatorname{cl}_D(u)\right) \cap \mathcal T=\varnothing

unless the overlapping artifacts are explicitly declared as common premises available to every arm. Public benchmark queries, human corrections, and model updates after the split freeze are added to Λe\Lambda_e and disqualify the affected hidden family from confirmatory use.

Publication and reverse-dependency invalidation

Let the release dependency graph be Dv=(Nv,Ev)D_v=(N_v,E_v), with edge (a,b)Ev(a,b)\in E_v meaning artifact aa depends on artifact bb. If changed or invalid artifact set JNvJ\subseteq N_v is detected, its reverse-dependency invalidation set is

Inv(J)=J{aNv:bJ with a path ab}.\operatorname{Inv}(J)= J\cup\{a\in N_v:\exists b\in J\text{ with a path }a\leadsto b\}.

Every artifact in Inv(J)\operatorname{Inv}(J) is quarantined from proved release status until its exact version is rechecked or rebuilt against a replacement. The prior record remains addressable and becomes retracted when its published acceptance claim no longer holds; a challenge to formalization or significance may instead enter disputed while the checked derivation remains recorded.

For planted invalidation set JJ^* and submitted set J^\widehat J, invalidation precision and recall are

Pinv=J^JJ^,Rinv=J^JJ.P_{\mathrm{inv}}= \frac{|\widehat J\cap J^*|}{|\widehat J|}, \qquad R_{\mathrm{inv}}= \frac{|\widehat J\cap J^*|}{|J^*|}.

Both are dimensionless; an empty submitted set receives zero precision and recall. Also report time to quarantine in seconds, stale artifact-hours before quarantine, rebuild time in seconds, repair human-hours, and recurrent bad acceptances after release.

Equal lifecycle budget

For method mm, the binding resource vector is

Bm=(Ntrain,Nret,Nprop,Ntest,Nsolve,Ncheck,Nnode,Bstate,Bcert,twall,tcpu,hhuman,Elife,Mpeak).\mathbf B_m=(N_{\mathrm{train}},N_{\mathrm{ret}},N_{\mathrm{prop}}, N_{\mathrm{test}},N_{\mathrm{solve}},N_{\mathrm{check}}, N_{\mathrm{node}},B_{\mathrm{state}},B_{\mathrm{cert}}, t_{\mathrm{wall}},t_{\mathrm{cpu}},h_{\mathrm{human}}, E_{\mathrm{life}},M_{\mathrm{peak}}).

The first seven terms count training items, retrieval calls, proposals, tested instances, solver calls, checker calls, and search nodes. BstateB_{\mathrm{state}} and BcertB_{\mathrm{cert}} are retained-state and certificate bytes; twallt_{\mathrm{wall}} and tcput_{\mathrm{cpu}} are seconds; hhumanh_{\mathrm{human}} is person-hours; ElifeE_{\mathrm{life}} is joules at the declared measurement boundary; and MpeakM_{\mathrm{peak}} is peak working memory in bytes.

Lifecycle energy is

Elife=Etrain+Eindex+Eretrieve+Epropose+Echallenge+Eprove+Echeck+Epublish+Eretain+Einvalidate+Erepair,E_{\mathrm{life}}= E_{\mathrm{train}}+E_{\mathrm{index}}+E_{\mathrm{retrieve}}+ E_{\mathrm{propose}}+E_{\mathrm{challenge}}+E_{\mathrm{prove}}+ E_{\mathrm{check}}+E_{\mathrm{publish}}+E_{\mathrm{retain}}+ E_{\mathrm{invalidate}}+E_{\mathrm{repair}},

with every term measured in joules across one declared hardware and facility boundary. Human formalization, steering, review, and repair remain person-hours and are not silently converted to joules. A method that exceeds any binding ceiling is infeasible for that paired instance; otherwise report a preregistered Pareto frontier rather than post-hoc cost normalization.

Outcome vector and component effects

For method mm, report

Ym=(Nproved,Nrefuted,Ntested,Nunknown,Nbadaccept,Rrecon,Pinv,Rinv,tfirst,bmedian,hhuman,Elife),\mathbf Y_m=(N_{\mathrm{proved}},N_{\mathrm{refuted}}, N_{\mathrm{tested}},N_{\mathrm{unknown}},N_{\mathrm{bad\,accept}}, R_{\mathrm{recon}},P_{\mathrm{inv}},R_{\mathrm{inv}}, t_{\mathrm{first}},b_{\mathrm{median}},h_{\mathrm{human}}, E_{\mathrm{life}}),

where the first five terms are artifact counts; RreconR_{\mathrm{recon}} is the dimensionless proportion of published proof DAGs reconstructed and rechecked from their retained dependencies; PinvP_{\mathrm{inv}} and RinvR_{\mathrm{inv}} are defined above; tfirstt_{\mathrm{first}} is seconds to the first checked result; bmedianb_{\mathrm{median}} is median certificate size in bytes; hhumanh_{\mathrm{human}} is person-hours; and ElifeE_{\mathrm{life}} is joules. Results are stratified by task family, state, and hidden regime rather than collapsed into a universal reasoning score.

Checked-result energy efficiency may be reported as

ηE=Nproved+NrefutedElife[checked result/J],\eta_E= \frac{N_{\mathrm{proved}}+N_{\mathrm{refuted}}}{E_{\mathrm{life}}} \quad[\mathrm{checked\ result}/\mathrm{J}],

but only beside the full outcome vector, because a system can inflate ηE\eta_E with trivial tasks or low coverage. For component cc and outcome YjY_j, the paired ablation effect is

Δc,j=Yj(mfull)Yj(mc),\Delta_{c,j}=Y_j(m_{\mathrm{full}})-Y_j(m_{-c}),

where mcm_{-c} removes component cc without reallocating its unused budget. Report paired 95% uncertainty intervals over frozen problem-family and random- seed strata.

Contract retirement

The composed residual is retired when the strongest complete ordinary stack matches its checked closure, bad-acceptance rate, hidden-family transfer, proof-DAG reconstruction, invalidation quality, and lifecycle resource vector; when any gain disappears under ancestor- and dependency-safe splits; when counterexamples, abstraction obligations, certificates, or reverse-dependency events cannot be reconstructed independently; or when omitted formalization, review, checking, storage, repair, human-hour, or joule costs explain the gain.

Editable lifecycle diagram: versioned-proof-discovery-lifecycle.mmd.