declare-sort, define-sort working but not thoroughly tested; define-fun half working...