The rank-deficiency of a set, as a term in ℕ∞. Cannot be defined with subtraction.
For the ℕ version, the simpler expression X.ncard - M.r X is preferable.
To reduce the number of X ⊆ M.E assumptions needed for lemmas,
this is defined so that junk elements in X \ M.E contribute to the nullity of X in M,
so M.nullity X = M.nullity (X ∩ M.E) + (X \ M.E).encard.
(see Matroid.nullity_eq_nullity_inter_ground_add_encard_diff )