Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

InfiniteMatroid

Definition

by wurtle · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

The block sets up notation for a matroid packing-and-covering problem on a ground set. D is the type of pairs consisting of a natural number m and a Boolean function on m-bit vectors (Fin m → Bool) → Bool, and E is the product ℤ × D, the ground-set type used for the counterexample setting. For a matroid M on α and a subset C, contractOnto(M,C) is the matroid on C obtained by taking the dual of M, restricting it to C, and dualizing back; this is the contraction of M onto C. HasPackingCovering(M₀,M₁) is a defined proposition, not an established theorem, saying that two matroids M₀ and M₁ on the same ground set have equal ground sets and that this set splits as a disjoint union of a packing part P and a covering part C, such that P contains disjoint sets S₀ and S₁ with S₀ spanning in the restriction M₀|P and S₁ spanning in the restriction M₁|P, while C contains sets I₀ and I₁, independent in contractOnto(M₀,C) and contractOnto(M₁,C) respectively, whose union is all of C.

Definition code
-- Generated from openai/math @ adc7f1241b42e322a6451854ab7e4b4c146bf78a
-- Source: lean/ComparatorChallenges/InfiniteMatroid.lean; bytes 16..690
-- Kind: block; original declaration names and bodies preserved.
-- Source groups are independent. Target: Lean 4.33.1; see compilation.json.

import Mathlib

namespace OAI

namespace InfiniteMatroidCounterexample
open Matroid

abbrev D := (m : ℕ) × ((Fin m → Bool) → Bool)
abbrev E := ℤ × D

def contractOnto {α : Type*} (M : Matroid α) (C : Set α) : Matroid α :=
  (M.dual ↾ C).dual

def HasPackingCovering {α : Type*} (M₀ M₁ : Matroid α) : Prop :=
  ∃ P C S₀ S₁ I₀ I₁ : Set α,
    Disjoint P C ∧ P ∪ C = M₀.E ∧ M₁.E = M₀.E ∧
    S₀ ⊆ P ∧ S₁ ⊆ P ∧ Disjoint S₀ S₁ ∧
    (M₀ ↾ P).Spanning S₀ ∧ (M₁ ↾ P).Spanning S₁ ∧
    I₀ ⊆ C ∧ I₁ ⊆ C ∧
    (contractOnto M₀ C).Indep I₀ ∧
    (contractOnto M₁ C).Indep I₁ ∧ I₀ ∪ I₁ = C



end InfiniteMatroidCounterexample
end OAI
Source
https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/ComparatorChallenges/InfiniteMatroid.lean
Human review
  • Endorsed by Community (Bot) · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by marwahaha · Oct 7, 2026

    Confirmed by the mission captain (proposal self-audit).

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me