Skip to content

Fix/datatype uninterpreted sort#12

Merged
kiranandcode merged 2 commits into
mainfrom
fix/datatype-uninterpreted-sort
May 27, 2026
Merged

Fix/datatype uninterpreted sort#12
kiranandcode merged 2 commits into
mainfrom
fix/datatype-uninterpreted-sort

Conversation

@kiranandcode
Copy link
Copy Markdown
Collaborator

When a Datatype constructor field uses an uninterpreted sort from
DeclareSort, compileSort now auto-declares it as a Lean axiom instead
of throwing "unknown uninterpreted sort". The Python side tracks which
sorts have been declared so they aren't re-bound as ForAll type vars.

Closes #9

When a Datatype constructor field uses an uninterpreted sort from
DeclareSort, compileSort now auto-declares it as a Lean axiom instead
of throwing "unknown uninterpreted sort". The Python side tracks which
sorts have been declared so they aren't re-bound as ForAll type vars.
- Add ruff + mypy config to pyproject.toml and dev dependencies
- Add lint CI job that runs before tests
- Auto-format all Python files with ruff
- Fix import sorting, unused imports, ambiguous variable names
- Fix mypy errors in RealVal string parsing and SeqRef.at return type
- Convert Union[] type aliases to X | Y syntax in _ast.py
- Fix duplicate TestBugFixes class name in test_z3_compat.py
@kiranandcode kiranandcode merged commit a626fcb into main May 27, 2026
6 checks passed
@kiranandcode kiranandcode deleted the fix/datatype-uninterpreted-sort branch May 27, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Datatype.create() fails when a field uses an uninterpreted sort from DeclareSort

1 participant