Galois groups of polynomials and neurosymbolic networks