We prove that the length function for perverse sheaves and algebraic regular holonomic 𝒟-modules on a smooth complex variety
is an absolute ℚ-constructible function. One consequence is: for "any" fixed natural (derived) functor
between constructible complexes or perverse sheaves on two smooth varieties
and
, the loci of rank one local systems
on
whose image
has prescribed length are Zariski constructible subsets defined over
ℚ, obtained from finitely many torsion-translated complex affine algebraic subtori of the moduli of rank one local systems via a finite sequence of taking union, intersection, and complement.