How this calculation works
Compute rational Lie algebra cohomology with trivial one-dimensional coefficients in every degree. Validate antisymmetry and Jacobi, construct the Chevalley–Eilenberg complex and return Betti numbers with exact differential matrices.
(df)(x0,…,xk)=Σ(i<j)(−1)^(i+j) f([xi,xj],x0,…,omit xi,xj,…,xk)A worked example
For the three-dimensional Heisenberg bracket [e0,e1]=e2, the Betti numbers are1,2,2,1. The only nonzero differential sends e2* to −e0*∧e1*.
Good to know
Rational Lie dimension1–6; unique rows i,j,k,c with0≤i<j<n. Omitted brackets zero, antisymmetry added. Trivial Q coefficients only; no nontrivial modules, cohomology products, integral torsion or Lie-group lattice assumptions.
Reference: Chevalley and Eilenberg: Cohomology theory of Lie groups and Lie algebras (opens in a new tab) ↗
What the coefficient convention means
Lie algebra cohomology depends on both a Lie bracket and a coefficient module. Here the coefficients form one copy of the rational field, with every Lie algebra element acting as zero. This trivial action removes the module-action terms from the differential and leaves the terms determined by the bracket.
The calculation concerns an algebra supplied by rational structure constants. It does not automatically give integral cohomology, the cohomology of every corresponding Lie group, or the topology of a quotient by a lattice. Such identifications require additional hypotheses that are not encoded by the bracket table alone.
Compare this with the Lie algebra Killing form and solvable radical calculator. Compute low-degree Chevalley–Eilenberg cohomology rather than the center,Killing form or solvable radical.
Enter independent bracket coefficients
A row i,j,k,c specifies coefficient c of ek in [ei,ej], using zero-based indices and i less than j. Antisymmetry supplies the reverse bracket with a minus sign, while every diagonal bracket is zero. Omit zero constants and avoid repeating the same triple in multiple rows.
Before forming any cochain matrices, the program evaluates the Jacobi expression on all ordered basis triples. Exact rational zero is required in every coordinate. Antisymmetry alone does not guarantee Jacobi, and a table that fails Jacobi cannot define the Chevalley–Eilenberg complex used for the reported answer.
Choose an exterior cochain basis
Degree-k cochains are alternating k-linear forms, so a natural basis is indexed by increasing k-subsets of the basis labels. Its dimension is the binomial coefficient n choose k. In degree zero the basis consists of the empty tuple, representing constant scalar cochains rather than an omitted computation.
The differential inserts a bracket of two inputs and applies an alternating sign. The implementation tracks both that insertion sign and the permutation needed to sort the resulting exterior tuple. Repeated indices produce zero, as required for an alternating form. The displayed exterior bases make those orientation conventions explicit.
Follow the Heisenberg example
With [e0,e1]=e2 and all other independent brackets zero, the one-forms dual to e0 and e1 are closed. The dual to e2 has differential minus the wedge of those two closed forms. Consequently, the map from degree one to degree two has rank one, while adjacent differentials vanish.
The cochain dimensions are1,3,3,1. Removing the outgoing rank from degree one leaves two classes; removing the incoming rank from degree two also leaves two. Constants and the top exterior form each contribute one class. This yields the default sequence1,2,2,1 and explains where both middle-dimensional reductions arise.
Read the rank certificates
In each degree, the Betti number equals the cochain dimension minus the outgoing differential rank minus the incoming rank. Every consecutive differential product is checked exactly, establishing that incoming coboundaries are indeed closed. A negative computed dimension or a nonzero composition would indicate a failed internal certificate rather than a meaningful result.
The matrices use target-cochain rows and source-cochain columns. Their coefficients remain formatted rational numbers. For an abelian algebra every bracket vanishes, all differential matrices are zero, and the Betti numbers equal the binomial coefficients. This provides a useful independent family of sanity checks across the allowed dimensions.
Distinguish dimensions from algebra structure
Two Lie algebras can share the same Betti sequence while having different brackets or cohomology multiplication. The reported dimensions summarize vector spaces in each degree. They do not classify Lie algebras, construct equivalences, identify deformation families, or describe products among cohomology classes without further computations on representative cochains.
The first Betti number has a direct interpretation as the dimension of the dual of the abelianization. In the Heisenberg example, the commutator subalgebra is the line spanned by e2, leaving a two-dimensional abelianization. Comparing this independent bracket calculation with H¹ can help identify indexing mistakes in a custom example.
Use the bounds to keep results inspectable
The dimension-six limit keeps exterior cochain spaces at twenty coordinates or fewer in their largest degree. Exact rational arithmetic makes ranks independent of numerical thresholds, although large fractions can still exhaust the shared arithmetic growth guard. Such a guard stops the calculation instead of silently replacing exact identities with approximate ones.
Use none for an abelian bracket list, and retain all basis labels consistently when changing the dimension. If a Jacobi error appears, verify omitted reverse-sign conventions and the intended coefficient of every bracket. The calculator never adjusts inconsistent structure constants or interprets their values as uncertain experimental measurements of a Lie bracket.
A few questions, answered
What does trivial coefficients mean?
Every Lie algebra element acts as zero on the one-dimensional rational coefficient space.
What happens for an abelian Lie algebra?
All differentials vanish and the Betti numbers are n choose k.
Are these Lie-group Betti numbers?
Not automatically; identifying group or quotient cohomology requires additional hypotheses.
Why are only i<j brackets entered?
Antisymmetry determines the reverse brackets and forces every diagonal bracket to vanish.