Skip to content

bryangingechen/lean-matroids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lean-matroids

A formalization of matroids in Lean, so far following the (beginning of the) first chapter of Matroid Theory, by James Oxley. These files depend on and are inspired by the Lean mathlib, and maybe someday some of this will make it in there as well.

Currently matroid.lean contains:

  • structures implementing the following formulations of matroids:
    • independent sets
    • circuits
    • bases
    • rank functions (only partially done)
  • proofs that the circuit / basis formulations are equivalent to the independent set formulation, via explicit conversion functions
  • proofs that the conversion functions are mutually inverse

Another file matroidexamples.lean contains:

  • the independent set definitions of:
    • the loopy matroid (all subsets dependent)
    • the free matroid (all subsets independent)
    • the uniform matroid
  • various explicit example computations involving the basis and circuit lemmas and functions defined in matroid.lean.

Acknowledgements

Thanks to the denizens of the Lean Zulip chat for patiently answering questions and providing proofs, several of which have been copied into this repository.