immunesystem.now
Formal verification in science · RLT-EES-001

Computational energy measurement

Exact mathematical bounds for energy-estimation comparisons.

How much can the arbitrary pairing of historical and newer measurements change a scientific result?

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.

Research progress · December 4, 2026

From scientific literature to formal verification

001A · Source assessment

Measurement correspondence

The developer reports that 478 historical run associations match by identity and 480 newer energy-error calculations reproduce. Adversarial reorderings reveal a weakness in the cardinality-only check; three stored energy differences disagree with recorded readings.

001B · Mathematical verification

27 general theorems · 297 data-specific theorems

Developer-reported Lean verification establishes exact pairing bounds for 50 plotted models. The widest interval is 0.421 percentage points. Conditional meter-resolution bounds reach 13.64 percentage points for vision models.

Independent VPS reproduction · 001B

Scoped replay PASS

Operator-reported replay on a separate VPS checked 27 general and 297 generated Lean theorems. Exact numerical CSV and rational JSON match byte for byte; the summary differs only in an omitted optional comparison.

001C · Scientific interpretation

Verification changed our own assumption

The developer identified a change in the historical meter's display step at 10 kWh. The corrected conditional Language resolution bound reaches 4.57 percentage points rather than 1.67. The general theorems remain valid. The new package reports 32 library and 297 certificate axiom audits.

001C independent replay and review pending. Resolution bounds are conditional worst cases, not observed errors. Socket calibration and physical comparability remain open. No upstream acceptance is asserted.

Read findings, assumptions and limitations →

Expert direction — open

What additional evidence would establish physical comparability across instruments and experimental periods? Relevant scientific expertise may identify a better question, challenge an assumption or guide the next verification step. We can investigate that direction through dialogue with AI and, where appropriate, Lean and RLT. No expert participation or endorsement is presumed.

Research discovery

Investigation of Jay Lewis's professional research background led to the EES2 roadmap and then to a search for scientific papers with accessible code and experimental records.

Selected research candidate

Ground-Truthing AI Energy Consumption

Raphael Fischer's investigation of CodeCarbon against external energy measurements provides a starting point for independent assessment.

Specified audience

Jay Lewis, Convergent Research. Research proceeds independently of audience response; no endorsement or collaboration is presumed.

How we work

AI-assisted literature research identifies a candidate. We inspect its source, trace scientific claims to computations and physical records, attempt independent reproduction, and select mathematical or software verification tools according to the problem. We publish results and limitations, including negative findings.

The live research register is the authoritative record of progress. Audience interest, endorsement and collaboration are separate from scientific verification. This page implies none of them.