Tagged ap-calculus