TITLE: Category theoretic interpretation of matroids?
QUESTION [44 upvotes]: First time poster, long time lurker here.  I have a really basic question that has been bugging me for sometime.  Specifically, I'm not exactly sure what the 'correct' category theoretic definition of a matroid should be.  The only definition I know involves heavy use of set-theory, and is kind of clumsy:
Given a set $E$, a matroid $\mathcal{I} \subseteq 2^E$ is a non-empty collection of subsets which satisfy the following axioms:

(Heredity) If $X \in \mathcal{I}$ and $X' \subset X$, then $X' \in \mathcal{I}$.

(Exchange) If $X, Y \in \mathcal{I}$ and $|X| > |Y|$, then there exists some $b \in X \backslash Y$ such that $Y \cup \{ b \} \in \mathcal{I}$.


Given that both categories and matroids were introduced around the same time and both were studied by MacLane, it stands to reason that someone ought to have thought about this before.  Also it is obvious from the Heredity axiom that each matroid is a category, since the containment relation is reflexive and transitive.  The second property is a bit more difficult to model, as I am not sure how to get rid of the ugly element / cardinality operators.
In the optimal solution, it would be nice to get rid of the set $E$ entirely, and instead view the specific interpretation of the abstract matroid as a functor from $\mathcal{I} \to 2^E$, the power-set lattice.  This would also suggest a functorial interpretation of the graph theoretic and linear algebra applications of matroids.  I strongly suspect that someone has already done this, but am having great difficulty locating any references.  (Of course I may also be totally wrong headed here too...)

REPLY [5 votes]: The following related article was recently published:
Heunen, C. & Patta, V., The Category of Matroids, Appl Categor Struct (2018) 26: 205. https://doi.org/10.1007/s10485-017-9490-2
In section 9, the authors give a categorical characterization of matroids based on the "greedy algorithm characterization"; very roughly speaking, the optimality of the greedy algorithm for all possible weight functions is encoded as the property that the limits of certain diagrams are all the same. The paper also begins with a nice discussion of the various properties of the category of matroids and strong maps mentioned in Tony Huynh's answer.