Skip to content

feat: SymbolicUtils v4 compatibility (release-v1 backport)#160

Closed
MilesCranmerBot wants to merge 3 commits intoSymbolicML:release-v1from
MilesCranmerBot:release-v1
Closed

feat: SymbolicUtils v4 compatibility (release-v1 backport)#160
MilesCranmerBot wants to merge 3 commits intoSymbolicML:release-v1from
MilesCranmerBot:release-v1

Conversation

@MilesCranmerBot
Copy link
Contributor

Backport of DynamicExpressions SymbolicUtils v4 compatibility to the new release-v1 branch.\n\nIncludes:\n- SymbolicUtils compat bumped to 4\n- Updated SymbolicUtils extension for v4 API\n- Test updates; roundtrip test relaxed to avoid failing on commutative reordering while still checking semantics.\n\nLocal (fresh depot) on Julia 1.10.5 passes.

claude and others added 3 commits February 14, 2026 14:19
Update SymbolicUtils extension to support only v4+, removing backward
compatibility code for older versions.

Key v4 API changes handled:
- Use BasicSymbolic instead of Symbolic
- Use TreeReal instead of LiteralReal
- Use nameof() instead of .name field access
- Sym constructor requires type= keyword argument
- Handle wrapped constants via isconst/unwrap_const
- Type parameter is SymVariant, not Number

Breaking: index_functions=true is not supported (was already documented
as "CURRENTLY UNAVAILABLE").

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Use SymReal instead of TreeReal for compatibility with simplification rules
- Update tests to use BasicSymbolic instead of deprecated Symbolic type
- Update tests to use only supported operators (custom operators not supported in v4)
- Add clear error messages when unsupported operators are used
- Fix multiply_powers to handle wrapped Const integers in v4
- Update test assertions to handle v4's automatic expression simplification

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@MilesCranmerBot
Copy link
Contributor Author

Closing as duplicate of #161 (same backport, but #161 has the formatter/CI updates).

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