top-level theory documentation