De Morgan: the negation of a formula is a formula of the same size
ProvedShallowSym.prelim_de_morganboolean-functionscircuit-complexityconstant-depth-circuitsp2o-gran-per-chapterp2o-plan-paperp2o-v1symmetric-functions
For every depth and every depth- formula :
- there is a formula with computing , where is read as a formula;
- there is a formula with computing , where is read as a formula.
Since the negation of a symmetric function is symmetric, this reduces Theorem 1 to formulas.
Formalization Note Formulas are strictly layered alternating AND/OR trees over literals (ShallowSym.Layer): every literal sits at depth exactly , a gate at level reads only nodes of level , gates of arbitrary (also empty) fan-in, size = number of gates.
Differences from the source:
- reading: Σd and Πd circuits (DAGs) → Σd and Πd formulas (trees, ShallowSym.Layer); reason: the mission's circuit model is the formula model of Theorem 1, in which the whole proof runs; the De Morgan transformation maps formulas to formulas
Preamble
import Mathlib import Definitions.Def_ShallowSym_Layer
Formal statement
namespace ShallowSym
/-- §2 "Circuits", p.5. V. Lecomte, P. Ramakrishnan, *Optimal Shallow Circuits for Majority*, arXiv:2609.34029
(version of 2026-11-01, sha256 6f46ce49…).
"By De Morgan’s laws, the negation of a Σd circuit is a Πd circuit of the same size, and vice
versa."
For every depth `d` and every depth-`d` formula `φ`: there is a Π_d formula of the same size
computing the negation of the Σ_d formula `φ`, and there is a Σ_d formula of the same size
computing the negation of the Π_d formula `φ`.
**Formalization Note.** Stated for formulas (`Layer`); at `d = 0` a formula is a literal and the
claim is the negation of a literal. -/
theorem prelim_de_morgan (n d : ℕ) (φ : Layer n d) :
(∃ ψ : Layer n d, size d ψ = size d φ ∧ ∀ x, evalPi d ψ x = !evalSigma d φ x) ∧
(∃ ψ : Layer n d, size d ψ = size d φ ∧ ∀ x, evalSigma d ψ x = !evalPi d φ x) := by sorry
end ShallowSym
Source
Lecomte, Ramakrishnan, Optimal Shallow Circuits for Majority, arXiv:2609.34029 (version of 2026-11-01, sha256 6f46ce49…), §2 'Circuits', p.5
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.