How this calculation works
Enumerate all subspaces invariant under supplied finite-field linear operators, with exact inclusion covers and invariance checks.
W is invariant iff Tj(W)⊆W for every supplied operator Tj.A worked example
For the identity operator on F2², every subspace is invariant: the zero space, three lines spanned by (1,0),(0,1),(1,1), and the full plane. The submodule lattice therefore has five elements.
Good to know
Prime fields p≤7, dimension at most four and one to three square operators of equal size, with a total-subspace enumeration cap. Exact modular RREF, invariance and inclusion tests. Column-vector action convention. No extension fields, infinite-field enumeration or irreducibility claim from an incomplete search.
Reference: Primary method or official documentation (opens in a new tab) ↗
Subspaces stable under all operators
An invariant subspace W stays inside itself when any supplied linear operator is applied. With several operators, W must satisfy the condition for every operator simultaneously. These common invariant subspaces are the submodules for the algebra generated by those operators, and inclusion orders them into a finite lattice.
This differs from listing spans or flats of a vector matroid. A matroid tracks dependence among selected labeled vectors; invariance compares a whole subspace with its images under specified transformations. The zero space and full ambient space are always invariant, but the intermediate subspaces depend strongly on the actual operators.
Compare this with the Linear matroid circuits and flats calculator from a matrix. Find subspaces stable under all supplied operators and their inclusion lattice, rather than flats of a vector dependence matroid.
Declare the finite field and action
Choose a prime p and enter one to three square matrices of the same dimension. Entries are interpreted modulo p, and matrices act on column vectors on the left. The initial page supports prime fields only: arithmetic modulo a composite number is not field arithmetic, and an extension field needs a separate representation.
A displayed subspace basis may be stored as rows for canonical RREF enumeration, while the action still means T times each basis column. Keeping those conventions explicit avoids an accidental transpose that changes which subspaces are invariant. The page should state both the storage format and the action convention wherever it displays a basis.
Enumerate each subspace once
Every finite-field subspace has a unique reduced row-echelon basis once coordinate order is fixed. Enumerating pivot positions and allowed nonpivot entries therefore produces every subspace without repeatedly counting different spanning lists. This is crucial even in a small dimension, where many basis choices describe the same line or plane.
The number of subspaces grows rapidly with dimension and field size, so the enumeration has an explicit cap in addition to the dimension bound. Exceeding it must stop with unresolved status. Sampling a few candidate bases cannot justify a complete lattice or a claim that the representation has no proper invariant subspace.
Test invariance by exact membership
For each candidate W, apply every operator to every vector in a basis of W. If all those images lie in W, linearity ensures that every vector of W maps back into W. Membership can be tested by modular row reduction, using exact finite-field arithmetic and no floating tolerance.
A useful certificate records coordinates of each transformed basis vector in the chosen basis of W, or verifies the corresponding rank equality. Invariance under each generator automatically gives invariance under their sums and products. It does not require explicitly enumerating every element of the generated operator algebra.
Read the identity-operator example
Over F2² there are three nonzero vectors, and each spans a distinct line because the only nonzero scalar is one. Together with the zero space and full plane, these give five subspaces. The identity operator fixes every vector, so all five pass the invariance test.
The inclusion diagram has the zero space at the bottom, the three incomparable lines in the middle and the plane at the top. Every line covers zero and is covered by the plane. A scalar multiple of identity gives the same invariant lattice, which provides a simple family check across several prime characteristics.
Covers and quotient interpretation
An inclusion W⊂U is a cover when there is no returned invariant subspace strictly between them. These cover relations define the lattice diagram more economically than drawing every inclusion. Dimension increases along a cover, but a cover need not have dimension difference one if no intermediate invariant space exists.
An inclusion W⊂U also defines an abstract quotient U/W on which the operators descend. Its dimension is dim U−dim W, but constructing quotient operator matrices requires an additional basis choice. This page returns invariant bases and inclusion covers; it does not construct those quotient-action matrices or identify quotient isomorphism classes.
What irreducibility means here
If a complete enumeration returns only zero and the full space, the supplied operator family has no proper nonzero common invariant subspace over the declared field. This is irreducibility for that finite-field module. It is not a conclusion over every extension field or a statement about diagonalizability of each operator individually.
A search interrupted by a cap cannot establish irreducibility. Likewise, a single invariant line found for one matrix may fail for a second matrix, so inspect the simultaneous checks. Use the exact field, operator orientation and basis order when comparing another algebra system; changing any of them can legitimately change the displayed lattice.
A few questions, answered
Can I use a composite modulus?
No. This page requires a prime field; composite-modulus modules have different arithmetic and submodule structure.
Are matrices acting on rows or columns?
Operators act on column vectors. Canonical subspace bases may be displayed as rows, with that storage convention stated separately.
Does a cover always increase dimension by one?
No. There may be no intermediate invariant subspace even when the dimension jump is larger.
Does only zero and full space prove irreducibility?
Only after complete enumeration over the declared field; not after a capped or partial search.