perfect digital invariant