Zulip Chat Archive

Stream: Is there code for X?

Topic: Number of k-dim subspaces


Alena Gusakov (Feb 16 2023 at 17:16):

Hi, is there anything in mathlib that counts the number of k-dimensional subspaces of a vector space over a finite field? I didn't see anything like it but in the past week I've accidentally wasted time reproving things that already existed twice, and I want to make sure it hasn't been proven yet before I get burned again. Thanks!

Jireh Loreaux (Feb 16 2023 at 17:42):

To be clear you want to compute something like this (the cardinality of the Grassmannian)?

lemma card_submodule_of_dim (F V : Type*) [field F] [fintype F] [add_comm_group V] [module F V]
  [finite_dimensional F V] (k : ) :
  nat.card { S : submodule F V // finite_dimensional.fin_rank K S = k } = something :=
sorry

Jireh Loreaux (Feb 16 2023 at 17:45):

If so, I can't find anything like that.

Alena Gusakov (Feb 16 2023 at 17:47):

Yeah, exactly that!

Eric Wieser (Feb 16 2023 at 17:48):

Presumably given a basis for V you could explicitly enumerate them?

Alena Gusakov (Feb 16 2023 at 17:52):

I was thinking of doing that, but my current approach was more along the lines of showing that the nonzero elements of V are partitioned by the 1-dimensional subspaces (I'm proving it for 1-dim subspaces first to make it easier) and then counting the cardinalities

Alena Gusakov (Feb 16 2023 at 18:00):

But yeah the proof for general dimension k is usually counting linear combinations, i.e. enumerating using a basis

Alena Gusakov (Feb 16 2023 at 18:06):

The problem is when you have scalar multiples of a vector they all map to the same subspace, so you have to divide to account for that

Richard Copley (Feb 16 2023 at 18:52):

These are the q-deformed binomial coefficients, https://math.ucr.edu/home/baez/week184.html (and week 188). Not sure that helps you but it's fun.

Martin Dvořák (Feb 16 2023 at 19:20):

(deleted)


Last updated: Dec 20 2023 at 11:08 UTC