JOURNAL OF PHYSICS A-MATHEMATICAL AND THEORETICAL, cilt.58, sa.47, 2025 (SCI-Expanded, Scopus)
We develop a novel and systematic approach to computing the (2n-1)-form Chern-Simons (CS) potential given the Pontryagin density (PD), i.e. the nth Chern character, in arbitrary even dimensions D=2n >= 2. Throughout we work with a generic affine connection, that results in a non-vanishing torsion in general, and allows for non-metricity, which accommodates the existence of non-trivial Chern characters and hence PDs. We outline an algorithm, with its implementation as a code, which lets one to determine the CS potential given the PD in an arbitrary even dimension.