Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Aether Catalog definitions — MachineLearning_WhiteExchange_Basic

Definition
MachineLearning_WhiteExchange_Basic

by raver1975 · Sep 12, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogmachinelearning

Definition bundle for the Aether Catalog module MachineLearning.WhiteExchange.Basic, transplanted by skeleton subtraction; supplies the types and constants the catalog's theorems import.

Definition code
-- Def bundle generated from MachineLearning/WhiteExchange/Basic.lean by skeleton subtraction
import Mathlib
/-
Copyright (c) 2026 Harmonic. All rights reserved.
Released under Apache 2.0 license.
-/

/-!
# White's quadratic exchange relation on multisets of bases

Let `M` be a matroid on a ground set `α`.  White's third (and weakest, still
open) conjecture concerns the *basis exchange ring*: it predicts that the toric
ideal of the matroid is generated by **quadratic** binomials.  In elementary
combinatorial terms this says:

> whenever two multisets of bases `B` and `B'` have the same **multiset union**
> of elements, one can transform `B` into `B'` by repeatedly replacing two of
> the bases by two other bases having the same combined multiset of elements.

This file builds the abstract combinatorial engine for that statement.  A
*configuration* is a `Multiset (Finset α)` (a multiset of bases), the invariant
of interest is its total multiset union `unionMS`, and a single quadratic move
`QMove` replaces two bases `B₁, B₂` by two bases `C₁, C₂` with
`B₁.val + B₂.val = C₁.val + C₂.val`.  `Reachable` is the equivalence closure of
`QMove`.

## Main results

* `qmove_symm` — a quadratic move is symmetric.
* `qmove_preserves_union` / `reachable_preserves_union` — the total multiset
  union is invariant under quadratic moves (the *necessary* direction of
  White's conjecture; the converse is the open part).
* `reachable_preserves_count` — every element keeps its total multiplicity,
  i.e. the toric grading is preserved.
* `qmove_preserves_card` / `reachable_preserves_card` — the number of bases is
  invariant.
* `reachable_equivalence` — reachability is an equivalence relation.
* `cons_swap_add`, `symmExchange_qmove` — the *symmetric exchange* of matroid
  theory (swap `x ∈ B₁` with `y ∈ B₂`) is a quadratic move; the underlying
  multiset identity is `cons_swap_add`.
* `WhitePart3Holds`, `whitePart3_necessary` — the conjecture packaged as a
  predicate, together with the proof that its exchange invariant is genuinely
  necessary.

The converse of `reachable_preserves_union` is precisely White's open
conjecture and is deliberately **not** proved; see `Uniform.lean` for verified
instances on uniform matroids and `FUTURE_DIRECTIONS.md` for the roadmap.

## Lab Notes

`-- !-- Lab Notes -- !--`

* **Hypothesis (Hypothesizer).**  The equality of multiset unions is the *only*
  obstruction to connectivity under quadratic moves.  The forward implication
  ("connected ⇒ equal union") should be an easy telescoping invariant; the
  backward implication is White's conjecture and is hard.

* **Experiment (Experimenter).**  Model configurations as `Multiset (Finset α)`.
  A quadratic move peels off two bases with `Multiset.cons` and rewrites their
  combined element multiset.  Invariance of `unionMS` then reduces, after
  `Multiset.map_cons`/`sum_cons`, to the hypothesis `B₁.val+B₂.val=C₁.val+C₂.val`
  via a single associativity rearrangement.  Invariance along `Reachable`
  follows by induction on `Relation.EqvGen`.

* **Analysis (Analyst).**  The symmetric-exchange move of matroid theory is a
  special quadratic move: swapping `x∈B₁` for `y∈B₂` fixes every element's total
  multiplicity, so `cons_swap_add` closes it.  This isolates *why* the invariant
  is necessary — quadratic moves are precisely the moves that permute which
  basis owns each element without changing the global element census.

* **Critique (Critic).**  `unionMS`-invariance alone is not sufficient
  (otherwise White's conjecture would be trivial); the missing content is that
  intermediate configurations must stay inside the basis family, encoded by
  `RQMove`/`RReachable`.  We therefore state `WhitePart3Holds` with a basis
  predicate and only claim the necessary direction here.

* **Synthesis (PI).**  A clean invariant theory of quadratic exchanges, with the
  matroid symmetric-exchange move exhibited as an instance, ready for
  case-by-case verification of White's conjecture (see `Uniform.lean`).
-/

open Finset

namespace WhiteExchange

variable {α : Type*}

/-! ## Configurations and their total multiset union -/

/-- The **total multiset union** of a configuration (multiset of bases):
the sum, with multiplicity, of the elements of every basis. -/
def unionMS (C : Multiset (Finset α)) : Multiset α := (C.map Finset.val).sum



/-! ## The quadratic exchange move -/

/-- A single **quadratic exchange move**: replace two bases `B₁, B₂` in a
configuration by two bases `C₁, C₂` whose combined multiset of elements agrees,
`B₁.val + B₂.val = C₁.val + C₂.val`. -/
def QMove (C D : Multiset (Finset α)) : Prop :=
  ∃ (rest : Multiset (Finset α)) (B₁ B₂ C₁ C₂ : Finset α),
    C = B₁ ::ₘ B₂ ::ₘ rest ∧ D = C₁ ::ₘ C₂ ::ₘ rest ∧
    B₁.val + B₂.val = C₁.val + C₂.val

/-- Reachability: the equivalence closure of the quadratic move relation. -/
def Reachable : Multiset (Finset α) → Multiset (Finset α) → Prop :=
  Relation.EqvGen QMove












/-! ## The matroid symmetric-exchange move is quadratic -/




/-! ## White's Part 3 conjecture, packaged -/


/-- A quadratic move that stays inside a basis family `𝓑` (the two new bases are
again members of `𝓑`). -/
def RQMove (𝓑 : Finset α → Prop) (C D : Multiset (Finset α)) : Prop :=
  ∃ (rest : Multiset (Finset α)) (B₁ B₂ C₁ C₂ : Finset α),
    C = B₁ ::ₘ B₂ ::ₘ rest ∧ D = C₁ ::ₘ C₂ ::ₘ rest ∧
    B₁.val + B₂.val = C₁.val + C₂.val ∧ 𝓑 C₁ ∧ 𝓑 C₂


/-- Basis-restricted reachability: the equivalence closure of `RQMove 𝓑`. -/
def RReachable (𝓑 : Finset α → Prop) : Multiset (Finset α) → Multiset (Finset α) → Prop :=
  Relation.EqvGen (RQMove 𝓑)







/-! ## Examples (PEGB: concrete instantiation) -/

section Examples

end Examples

/-!
## Generalizations and boundaries

**Generalization.**  Nothing in this file uses a matroid structure on `α`; the
invariants (`reachable_preserves_union`, `reachable_preserves_count`,
`reachable_preserves_card`) hold for *any* family of finite sets.  The broader
extension is to *discrete polymatroids* and to arbitrary graded toric ideals,
where `unionMS` becomes the degree map of the toric grading and quadratic moves
become the degree-2 syzygies.

**Boundary / limit case.**  The converse of `reachable_preserves_union` — that
equal multiset union *implies* reachability — is exactly White's open
conjecture and is intentionally left unproved.  A boundary phenomenon worth
noting is that the *stronger* symmetric-exchange variant (White's Part 2, that
one may always use symmetric exchanges) is **false** in general, while the
weaker Part 3 above remains open; `symmExchange_qmove` shows every symmetric
exchange *is* a legal quadratic move, but not every quadratic move factors
through symmetric exchanges.
-/

end WhiteExchange

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me