Add composed operations to Function - #1158
Draft
termoshtt wants to merge 6 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Functionbeyond compact polynomials with absolute value, signum, pointwise minimum and maximum, division, and parameterized signed 32-bit integer powers.ommx.v1.Functionwith an additive flat-expression payload reused by v2 roots. Parsing rejects stack underflow, leftover values, unknown operators, and malformedPowiparameters.abs(f),signum(),minimum(),maximum(), division,f.powi(n), and integer-onlyf ** n.FunctionParameters: the defaultArbitrarystrategy samples every operation kind with shrinkable composed expressions, whilepolynomial_onlymakes coefficient-map preconditions explicit. Constraint, named-function, and instance generators use the same distinction.Semantics
signum(±0)is zero.0^0is one; reverse, floating-point, and function-valued exponentiation are not supported.powiremains a composed expression and therefore has no compact polynomial degree.(a + b) + canda + (b + c)produce different RPN instruction orders and retain their grouping.Functiononeof variant instead of silently interpreting a weaker model.Python example
The generated Python stubs and API metadata, PyO3 bridge fixtures, English and Japanese guides, solver adapters, capability documentation, release notes, and property-test generators are updated for the new surface.