arXiv AI

A machine-checked proof of the Dong-Yang classification of optimal (n,4) binary codes for BSCs

The article reports a machine‑checked Lean 4 formalization of Dong and Yang’s classification of optimal finite‑length $(n,4)$ binary block codes for binary symmetric channels. The authors used an AI tool to feed the paper’s proofs into Lean, verified the main theorem statements and accepted axioms, and documented corrections, simplifications, and discrepancies found during the formalization. The Lean code is publicly available on GitHub.

arXiv AI
Oct 28

count-catcher: Lean Theorems from Model Counting Certificates

count-catcher is a tool that transforms a CPOG certificate produced by the exact model counter d4 into a Lean theorem asserting that a CNF formula defined in Lean has exactly N models over V variables. It verifies the equivalence between the formula and a Boolean circuit via forward and reverse checks, using Lean’s LRAT checker and formally verified computations. The resulting theorems are combined with Mathlib results, such as Burnside’s lemma, to count combinatorial objects—for example, proving the number of Latin squares of order 8 as a weighted sum of certified counts from terabytes of certificates.

By Johannes K. Fichte, Stefan Szeider
arXiv AI
Jul 28

Formalizing Flag Algebras in Lean

arXiv:2607. 23500v1 Announce Type: cross Abstract: Razborov's flag algebra method is a powerful tool for proving asymptotic inequalities in extremal graph theory, often reducing the task to finding a finite certificate by semidefinite programming.

By Gyeongwon Jeong, Seonghun Park, Jihoon Hyun, Sang-il Oum, Hongseok Yang
arXiv AI
Sep 18

Long-horizon autoformalization of a core theorem underlying MIP* = RE

FormalFlow is a system that coordinates AI proving agents under human supervision to tackle long‑horizon formalizations, using a shared blueprint for nested planning, proving, and review loops. The team used it to produce a machine‑checked Lean 4 proof of the quantum soundness of the classical low‑individual‑degree test, a core theorem underlying MIP* = RE, in 63 days. The resulting library contains 126,367 lines of Lean code, all generated by agents, and corrects side conditions while preserving the published error bound under corrected assumptions.

By Sirui Lu, Ruixuan Deng, Yanqiao Zhu, Zhengfeng Ji
arXiv Machine Learning
Oct 7

Lost in the bf16 Cast: Exporting Ternary Language Models Can Revert Most Low-Learning-Rate Code Changes

The paper investigates how exporting ternary language models (BitNet, Falcon‑E, BitCPM) through a bf16 cast step can introduce significant discrepancies between the fine‑tuned latent weights and the deployed ternary codes. In three lab pipelines, the authors find that fp32 quantization of shipped latents disagrees with the deployed codes on up to 1.77% of codes, and that the export step can drastically reduce strict accuracy on GSM8K (e.g., from 58.79% to 0.78% for Falcon‑E‑1B‑Base). They propose two compatibility remedies—directly writing the training quantizer’s codes or adjusting bf16 inputs—to meet a 4‑point strict‑accuracy non‑inferiority criterion across all models.

By Avichal Sahai (Ofbusiness), Nishant Raj (Ofbusiness), Animesh Srivastava (Ofbusiness)
arXiv AI
Jul 10

Multi-agent Autoformalization of Tensor Network Theory

arXiv:2607. 07857v1 Announce Type: cross Abstract: We build a team of specialized large language-model agents and present an agent-driven workflow for research-level formalization in theoretical physics, with the autoformalization of the fundamental theorem of matrix-product states as a demonstration.

By Sirui Lu, Erickson Tjoa, J. Ignacio Cirac