You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 75e7dba
Browse filesBrowse the repository at this point in the historyBrowse files
Power and Factorization declare the rest of the collecting family (#1196)
* Power and Factorization declare the rest of the collecting family
#1195 made Collects mean never larger and smaller for some input, and declared the
thirteen rules of Common that are a hole matched twice and written once beside one
new node. The guide named the relatives in Power and Factorization as next, and
this declares them, each on its own count.
Power declares nine. Eight are the family -- a ^ n * a, a / a ^ n, a ^ n / a,
a ^ n * (a * rest), (c / a) ^ d * a, a / b / b, a / b ^ n / b and a / b / b ^ n --
and every one is 1 - |a| for the repeated hole: a base or a divisor matched twice
and written once, against the one node the 1 in the new exponent or the exponent
itself costs. The ninth, (c / a) ^ d * a ^ e = c ^ d * a ^ (e - d), was named a
relative and is not one: the exponents fold to a leaf and the quotient goes, so it
is -1 - |a| outright. Three more stay Unknown and say why beside the rule -- the
logarithm of its own base attaches the node's domain condition, and the two radical
rules compute through a helper whose answer is a whole times a root or a whole alone.
Factorization declares its four: k + k*q, k + k, k - k*q and k*q - k, each 1 - |k|.
Seven shapes join the corpus so that each newly declared rule fires on it at least
once -- a power beside its own base on either side of a product or a quotient, and a
divisor repeated, which the arithmetic grammar builds only with a power of a leaf.
No pin moved this time: the safe ceiling still moves two of the five ordinary inputs.
The census is 124 collect, 46 rearrange, 31 expand, 123 unjudged; the safe ceiling
admits 170 of 324.
Part of #746.
Full suite 9579 passed, 0 failed -- one of them a throwaway census probe, not committed.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
* Record the answers the thirteen declarations change
Measured on a build of master (4b105e6) and of this branch, with one throwaway probe
run on each. Over Transformation.CanonicalizationOverGraph(budget), (2 / x) ^ 3 * x was
left as (2 * 1 / x) ^ 3 * x and is 8 * x ^ (-2); (2 / x) ^ 3 * x ^ 2 is 8 * 1 / x. The
other Power shapes are unchanged for a measured reason -- x ^ 2 * x reaches x ^ (2 + 1)
over the graph, no smaller at a leaf, and no safe rule folds the exponent, so the input
is kept -- and Factorization's four have Common twins declared in #1195, so a + a * b
was already (1 + b) * a. Entity.Canonicalize() is unchanged on every input probed.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: BREAKING-CHANGES.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,8 @@ read first.
74
74
|| the same on `x + x`, and `x + x * y`|`x + x`, `x * y + x` — left as written |`2 * x`, `(1 + y) * x`|
75
75
|**Silent**|`RewriteRules.Common.Rules[i].Growth`, for sixteen rules |`Unknown`|`Collects` for fourteen, `Rearranges` and `Expands` for the reciprocal-factor pair |
76
76
|**Silent**| what `RewriteRuleGrowth.Collects` promises | fewer nodes for every input | never more, and fewer for some — every rule that was `Collects` still is |
77
+
||`Transformation.CanonicalizationOverGraph(budget).ApplyOrKeep("(2 / x) ^ 3 * x")`, and its like with a power of the denominator |`(2 * 1 / x) ^ 3 * x` — left as written |`8 * x ^ (-2)`; `(2 / x) ^ 3 * x ^ 2` is `8 * 1 / x`|
78
+
|**Silent**|`RewriteRules.Power.Rules[i].Growth` for nine rules, and `Factorization`'s for four |`Unknown`|`Collects`|
77
79
78
80
### A cancelled quotient says its operand is defined, not only non-zero
79
81
@@ -900,6 +902,30 @@ and answers exactly as before on every input below.
0 commit comments