Advanced maths

Primitive idempotent decomposition calculator for a finite commutative algebra

Decompose a finite commutative algebra over a small prime field by completely enumerating its idempotents.

Your numbers

Use the bounded integer specified in the limits.
One rational coordinate per basis element, in basis order.
One i,j,k,coefficient row per nonzero constant, zero-based basis indices. Omitted constants are zero. Lie brackets use i<j; associative products use ordered i,j.
Use the bounded integer specified in the limits.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Decompose a finite commutative algebra over a small prime field by completely enumerating its idempotents. Return primitive orthogonal idempotents, indecomposable factor dimensions and exact sum-to-unit certificates.

THE FORMULAe²=e; primitive e has no nonzero proper idempotent f with ef=f; A≅∏ e_i A

A worked example

For F3[e]/(e²−e), primitive idempotents are e=(0,1) and1−e=(1,2). Their product is zero, their sum is1, and both factors have dimension1.

Good to know

Commutative associative unital algebra, dimension1–4, prime p≤13, p^n≤4096. Integer structure constants reduced modulo p. Complete enumeration only; factors are indecomposable algebras and need not be fields. No rational-field decomposition, extension-field factoring or noncommutative primitive-idempotent search.

Split an algebra using idempotents

An idempotent satisfies e squared equals e. In a commutative unital algebra, an idempotent and its complement1−e multiply to zero and split the algebra into two direct factors. Repeating this process until neither factor splits gives primitive idempotents and a decomposition into indecomposable finite commutative algebras.

The word primitive refers to inability to split further into nonzero orthogonal idempotents. It does not mean a generator of a finite field's multiplicative group. These two uses of primitive belong to different questions, so the output deliberately describes algebra factors and their dimensions rather than claiming primitive field elements.

Orthogonal idempotents split the unit1eA(1−e)Ae(1−e)=0dim eA + dim(1−e)A = 1 + 1 = 2
Scroll across to see the full diagram.
The split quadratic algebra separates into eA and(1−e)A with zero cross-product.

Compare this with the Finite algebra Jacobson radical calculator from multiplication constants. Split the algebra into connected product factors using primitive orthogonal idempotents;computing only the nilradical/quotient does not give this decomposition.

Choose the prime field explicitly

Supply a prime modulus and a basis dimension, together with integer multiplication constants and a unit vector. Every coefficient is reduced modulo the selected prime. Negative entries are valid representatives, so minus one and p minus one specify the same field element without changing the resulting multiplication or the decomposition.

The program checks the unit, associativity and commutativity over that prime field. Rational denominators are excluded in this input mode. A multiplication table that works over the rationals can change substantially after reduction, and a nonprime modulus would define a ring with zero divisors rather than the required coefficient field.

Enumerate before claiming completeness

There are exactly p to the power n coordinate vectors in an n-dimensional algebra over the field with p elements. The calculator multiplies each vector by itself and keeps precisely those equal to their squares. Because every element is checked, the resulting idempotent list is complete within the stated enumeration cap.

For two idempotents f and e, the equation ef=f means that f lies below e in the idempotent splitting order. A nonzero e is primitive precisely when no distinct nonzero idempotent lies below it. Testing this against the complete list avoids a heuristic search that might overlook a further factor.

Read the split quadratic example

The default multiplication is generated by an element e satisfying e squared equals e over the field with three elements. Besides zero and one, the idempotents are e and1−e. In the ordered basis1,e, those coordinate vectors are(0,1) and(1,2), since minus one is represented by two.

Multiplying e by1−e gives e−e squared, which is zero. Their sum gives the supplied unit(1,0). Multiplication by either primitive idempotent has one-dimensional image, so the algebra splits into two one-dimensional factors. The returned primitive order follows enumeration order and carries no preference between the two factors.

Calculate factor dimensions exactly

The factor eA is the image of multiplication by e. Its dimension is therefore the rank of that linear map over the selected prime field. The calculator constructs each multiplication matrix and performs modular row reduction, rather than counting the nonzero coordinates of the idempotent or assuming its support equals its factor dimension.

The primitive factors must be mutually orthogonal, must sum to the supplied unit, and must have dimensions adding to n. All three conditions are checked separately. These certificates provide a useful way to detect an implementation or input-convention error even when the primitive idempotent list itself looks plausible from a short example.

Distinguish local factors from fields

An indecomposable finite commutative algebra over a field can still contain nilpotent elements. For example, the dual numbers have only zero and one as idempotents, so the unit is primitive and the entire two-dimensional algebra remains one factor. The square-zero generator does not create a second direct-product component.

Consequently, a factor dimension greater than one does not prove that the factor is a field extension. This tool does not compute maximal ideals, residue fields or nilradicals of the factors. Its specific task is the direct-product splitting detected by central idempotents, which in a commutative algebra are simply all idempotents.

Keep finite enumeration manageable

The dimension limit and total-element cap both apply. A small dimension with a larger prime can still exceed the allowed element count, while a four-dimensional algebra over a tiny field may fit comfortably. Rejecting an oversized input says nothing about whether that algebra splits or how many factors it has.

Record the coefficient prime alongside every returned coordinate vector. The same displayed integers can represent different products and different idempotents in different characteristics. When comparing examples, change one ingredient at a time and check the full multiplication law rather than assuming the idempotent structure is preserved under reduction modulo another prime.

A few questions, answered

Are the returned factors always fields?

No. They are indecomposable commutative algebras and can contain nilpotent elements.

Why is the search complete?

Every one of the p^n algebra elements is checked for the idempotent equation.

Can I use modulus four?

No. The coefficient modulus must be prime.

What determines a factor dimension?

It is the rank over Fp of multiplication by the corresponding primitive idempotent.

Find your calculator

Start typing to explore the library.