Split up contexts and formulas.
Introduce type for solved formulas (not implemented yet).