Main algorithm: incremental validity checker.
Main algorithm: stratify function.
Main algorithm: fixpoint check.