Tag mathematics of artificial neural networks