Three-dimensional relativistic plasma equations rarely admit exact nonlinear solutions. Code verification therefore relies on global energy and mass conservation. Here we turn machine-checked lemmas from a Lean 4 Vlasov-Maxwell library into initial-data oracles that audit production plasma codes. Outside a compact plasma, finite propagation speed fixes exterior fields and box-energy flux, and a discrete Yee-grid identity forbids spurious axial magnetic fields from divergence-free initial data. In WarpX and Smilei, these checks caught domain-truncation and grid-initialization errors missed by energy conservation and uncovered an upstream bug. Inside a collisionless plasma, Liouville's theorem bounds phase-space mass concentration, flagging unphysical clumping from energy-conserving particle merging and compressive remapping. Arbitrary-precision enclosures evaluate these references in strongly absorbing pulse-driven and pulse-free plasma regimes. Together, AI coding agents and Lean 4 turn classical theorems into practical verification tools, letting physicists audit minimal statements and assumptions rather than full proofs.
翻译:暂无翻译