December 4, 2026 · 001B operator-reported VPS replay PASS · 001C developer report received · Independent acceptance pending

Formal verification in science: computational energy measurement

Can published computational energy comparisons be independently reproduced and their mathematical, software and measurement assumptions verified?

What did we formally verify?

Raphael Fischer's Ground-Truthing AI Energy Consumption compares CodeCarbon estimates with external energy measurements. In the updated analysis code, historical meter-minus-CodeCarbon offsets are transferred to newer smart-socket runs by position. Does the order of this pairing change the plotted result?

Let \(c_i\) be newer CodeCarbon power, \(e_i>0\) newer socket power, \(d_j\) historical meter-minus-CodeCarbon power, all in watts, and \(\sigma\) a bijection between equally sized run groups. The plotted mean relative error, in percent, is

\[P(\sigma)=\frac{100}{n}\sum_{i=1}^{n}\left(\frac{c_i+d_{\sigma(i)}}{e_i}-1\right).\]

1. Pairing invariance versus pairing sensitivity

The mean transferred power is invariant:

\[\sum_i(c_i+d_{\sigma(i)})=\sum_i c_i+\sum_j d_j.\]

But the plotted percentage contains the weighted sum \(\sum_i d_{\sigma(i)}/e_i\). By the rearrangement inequality, pairing the sorted offsets with sorted reciprocal socket powers in the same order gives the maximum; opposite order gives the minimum. Both bounds are attained.

\[P(\sigma_{\min})\le P(\sigma)\le P(\sigma_{\max}).\]

Lean results: meanCam_pairing_invariant, plotted_decomp, plotted_exact_extrema, plottedAssign_broadcast. The single-historical-run broadcast has exactly zero pairing ambiguity. 001B's separate VPS replay checked 27 general and 297 generated theorems for 50 models; exact numerical CSV and rational JSON matched byte for byte.

2. Physical measurement resolution

If a meter truncates cumulative energy \(E_k\) to display step \(\delta_k\), its displayed reading is \(R_k=\delta_k\lfloor E_k/\delta_k\rfloor\). Lean verifies the mixed-step bound:

\[\left|(R_2-R_1)-(E_2-E_1)\right|<\max(\delta_1,\delta_2).\]

001C identified a change from 0.001 kWh below 10 kWh to 0.01 kWh at and above 10 kWh in the observed range. The earlier uniform-step application understated uncertainty in 11 plotted Language models. The general proof remains valid; the physical assumption needed correction.

Maximum (percentage points)VisionLanguage
Pairing range (proved)0.4210.068
Resolution bound (conditional)13.644.57

These bounds are not measured errors. Socket accuracy, calibration, and cross-era physical comparability remain open. 001C's 32 library and 297 certificate audits are developer-reported; separate replay is pending.

Source code and next experiments

Our fork — verification specification and next steps → · Pinned upstream · Paper

  1. Replay 001C independently and review socket uncertainty bounds and theorem inventory.
  2. Obtain the meter model, socket firmware and calibration settings; reconcile the preprint energy total.
  3. Verify the timestamps and readings of all 956 historical frames by run identity.
  4. Specify a simultaneous meter, socket and reference analyser experiment on the same loads over two- and fifteen-minute windows.
  5. Discuss identity-keyed joins and stale stored differences with the author before upstream changes.

Expert direction remains open. The fork now contains our research roadmap; the full replay packages have not yet been published there.

001A — Source and evidence assessment

Developer: Claude (Anthropic), directed by D. Hawkley. Pinned upstream revision e9bb6bc; preprint arXiv:2509.22092v1. The journal text was unavailable for assessment.

QuestionDeveloper-reported finding
Measurement identity478 camera-era runs match by run ID; positional association agrees on the published records. Three cardinality-preserving adversarial cases pass upstream checks but alter the plotted camera series by up to 6.5, 32.9 and 33.9 percentage points (pp).
Cross-era pairingPosition-dependent pairing of unrelated runs; one historical run is broadcast onto three new runs.
Stored energy consistencyThree stale differences relative to recorded readings, checked against photographs; plotted groups unaffected, printed total changes from 16.534 to 16.615 kWh.
Reproduction480 socket-era per-run error calculations agree; four committed figures regenerate (visual comparison, not byte identity).
Physical interpretationCamera-era offsets exceed socket-era offsets in 155/160 configurations, median excess 18.6 W; cause unestablished.

CodeCarbon version is unrecorded. The preprint's 20.04 kWh total remains unreconciled. Photographic inspection was limited to three stale runs and neighboring readings; no new physical experiment was conducted.

001B — Formal verification of measurement pairing

Developer-reported Lean v4.36.0 / Mathlib fc4f59e: 27 general theorems and 297 generated data-specific theorems checked. The 27 library theorems and 247 headline certificate theorems have reported axiom audits limited to propext, Classical.choice and Quot.sound; full certificate axiom inventory remains an independent review task.

The arithmetic mean and ratio of means are pairing-invariant. The mean of relative errors depends on a weighted sum of historical offsets; the rearrangement inequality establishes attained extrema. Exact rational enumeration agrees for all 50 plotted models, and the identity-basis extrema have Lean certificates. The separate implementation agrees with 001A to approximately 7 × 10−13 pp. The developer reports byte-identical 001A replay and clean 001B package replay.

ModelsMaximum pairing rangeConditional resolution bound
Vision (30)0.421 pp6.61–13.64 pp
Language (20)0.068 pp0.79–1.67 pp
deepseek-r1:8b (one historical run)Exactly zero0.87 pp

Conditional worst-case resolution bounds exceed nonzero pairing ranges by at least 13.6 times. This does not establish that realized measurement errors are larger. The original 001B bounds assumed a 0.001 kWh display step (corrected for affected Language models in 001C), correctly timed photographs and recorded CodeCarbon energies and durations treated as exact. Calibration, timing, transcription and physical comparability remain open. The Lean model is not a proof of Python semantics; spread sensitivity remains empirical.

001B — Independent VPS reproduction

December 4, 2026: operator-reported VPS replay on Python 3.10.12, Git 2.34.1 and Lean v4.36.0. Package integrity 18/18; 2,686 build jobs; 27 general and 297 generated theorems checked; exact enumeration for 50 models; exit 0. Numerical CSV and exact rational JSON are byte-identical to developer outputs. Summary differs only in the omitted optional 001A comparison. Scoped reproduction PASS; raw VPS files have not been inspected independently.

Operator-reported SHA-256 identities

001C — Verification closure and scientific interpretation

Developer report: Claude (Anthropic), directed by D. Hawkley. Package integrity checked by ChatGPT: 29/29 hashes and matching standalone report. Developer reports 32 library and all 297 generated theorems audited, six modules accepted by leanchecker, one valid certificate accepted and four adversarial certificates rejected. Differential comparison against unmodified upstream analysis agrees within 6.8 × 10−13 pp for 50 models. Independent 001C replay pending.

Correction to 001B: the display step changes from 0.001 kWh below 10 kWh to 0.01 kWh at and above 10 kWh in the observed range. The report identifies 43 readings, affecting 22 historical runs and 11 plotted Language models. The general theorems remain valid; the uniform-step application understated some bounds. A new mixed-step theorem covers crossing the threshold.

Reported maximum (pp)VisionLanguage
Pairing range0.4210.068
Conditional resolution bound13.644.57
Conditional meter resolution plus assumed accuracy14.865.65
Illustrative socket common-gain sensitivity (midpoint)0.550.53

The historical meter model EM0003 is inferred, not confirmed; the reported datasheet ±1% deviation is assumed applicable to run energy under unspecified operating conditions. No device-level accuracy or calibration record was identified for the Nous A1T socket. Chip-level accuracy is illustrative only. These are conditional sensitivities, not observed errors or a validated total uncertainty budget.

Review notes: socket common-gain sensitivity uses the pairing midpoint rather than the worst endpoint; the reporting-step calculation checks only two permutations rather than optimizing its own weights. These socket terms require review before being described as worst-case bounds. Library audit checks matching counts; exact name-set reconciliation remains to be checked. Certificate audit compares name sets.

Expert direction — open

What additional evidence would establish comparability across instruments and experimental periods? Is the intended statistic a group-level ratio of means? What display model and accuracy class apply to the meter? Expert observations can guide the next verification steps; none are presumed.

Next milestone: independent 001C review

Replay 001C with adversarial dependencies enabled; review uncertainty calculations and audit inventory. Seek meter model and socket calibration records, timing correspondence and co-located reference measurements. Expert direction remains open. No upstream patch, author acceptance or physical validation is established. Upstream has no identified license grant; upstream code and image evidence are not republished here.

Research discovery

AI-assisted investigation of Jay Lewis's professional research background led to the EES2 roadmap, then to a literature search for accessible scientific investigations with code and experimental records. The selected investigation is Raphael Fischer's Ground-Truthing AI Energy Consumption: Validating CodeCarbon Against External Measurements and its research repository. This discovery path records motivation, not authorship or endorsement of the pilot by Lewis.

Specified audience

Initial audience: Jay Lewis, Convergent Research. Research and verification proceed independently of audience reception. Additional audiences may be specified; communication outcomes are recorded separately from scientific evidence. No audience response to this pilot is recorded.

Research log

2026-12-04 — Initial candidate registered; 001A/B reports received; scoped 001B VPS reproduction PASS; 001C report received with corrected resolution application. Independent acceptance pending. Audience entry point.