iterative tie-breaking, first steps in Sandbox/a.thy