Understanding Kolmogorov-Arnold Networks (KANs): A Mathematical Deep Dive