matroid_base_ball
def
For a matroid M, a basis B, and a radius r, the ball Ball_M(B, r) is the set of bases A of M such that |B \ A| ≤ r.
Statement
def matroid_base_ball {α : Type*} (M : Matroid α) (B : Set α) (r : ℕ) : Set (Set α)
- Defined in
- arXiv:2611.27934, Section 4.2.1
- Verified
- 23 Nov 2026
- Axioms
- none listed
- Used by 3
- exists_base_ball_imageLet M be a finite matroid, and let A, B be bases of M. For every base X in Ball_M(A, r), there exists a base Y in Ball_M(B, 2r) such that…
- mem_matroid_base_ball_selfFor any matroid M, any basis B of M, and any natural number r, B is contained in Ball_M(B, r).
- metric_ball_volume_comparison_matroid_basesFor every finite matroid M on a type α, any two bases A, B of M (satisfying M.IsBase A and M.IsBase B), and every natural number r, the…
Read back from the Lean
The definition matroid_base_ball takes a type α, a matroid M on α, a subset B of α, and a natural number r. It defines the set of all subsets A of α such that A is a base of M (M.IsBase A) and the natural-number cardinality (ncard) of the set difference B \ A is at most r.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The metric ball of radius r around a basis B in a matroid M. -/ def matroid_base_ball {α : Type*} (M : Matroid α) (B : Set α) (r : ℕ) : Set (Set α) := {A | M.IsBase A ∧ (B \ A).ncard ≤ r}