Here are simple model implementations. This enables the kernel to check simple formulas and provides some kind of heuristic to check the formulas for typing errors.