Skip to content

feat: algebraic numbers, polynomials, enhanced floats, AST vectors, and quantifier elimination#500

Merged
toolCHAINZ merged 25 commits intomasterfrom
api-extensions
Feb 24, 2026
Merged

feat: algebraic numbers, polynomials, enhanced floats, AST vectors, and quantifier elimination#500
toolCHAINZ merged 25 commits intomasterfrom
api-extensions

Conversation

@toolCHAINZ
Copy link
Member

API extensions contributed by @NikolajBjorner using copilot.

@toolCHAINZ
Copy link
Member Author

As a reminder to myself, this PR makes actual high-level bindings around Z3_ast_vector. Previously we did not have these and there's lots of finnicky low-level construction of ast_vectors in the high-level bindings. An actual high-level binding for that type itself would probably allow for simplifying the implementation of many different APIs.

- Rename quantifier_elimination_simple to quantifier_elimination with
  improved API
- Simplify and consolidate quantifier elimination methods
- Remove deprecated variants and redundant code
- Update exports and add new test module
- Update methods to use FuncDecl where appropriate
- Return SatResult enum instead of raw lbool
- Add relation registration method
- Implement Display and Debug for Fixedpoint
- Fix handling of symbols and CString usage
- Add test for Horn clause solving with Fixedpoint
@toolCHAINZ
Copy link
Member Author

I am now fairly happy with these changes. The ubuntu CI failure I'm guessing is a very old upstream Z3 bug as it doesn't manifest in any other run and that one is using Z3 4.8.

@toolCHAINZ toolCHAINZ changed the title feat: various api extensions feat: algebraic numbers, polynomials, enhanced floats, AST vectors, and quantifier elimination Feb 24, 2026
@toolCHAINZ toolCHAINZ merged commit 3d11d74 into master Feb 24, 2026
10 checks passed
@toolCHAINZ toolCHAINZ deleted the api-extensions branch February 24, 2026 09:28
@toolCHAINZ toolCHAINZ mentioned this pull request Feb 24, 2026
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.

2 participants