My idea is simple.
Take any number of functions then as a rule let a machine learning algorithm select which numbers from which input functions to use at what time or x value.
Simple as that. The machine learning algorithm selects among the input functions. Which function values makes the best choice.
So now I wonder if you need to classify mathematics into dumb rules and smart rules. Maybe.