Repository navigation
A catalogue of the library's operations, by name - #2121
Merged
Merged
Conversation
Part of #1684 The terminal's commands and the MCP server's tools each call the library themselves, and nothing keeps the three in step. Core/Operations/Catalogue.cs lists the operations the library offers by name, thirty-three of them, each with a one-line description and the arguments it takes besides its input: - eight transformations, simplify to substitute, each with the relation it claims; - queries, whose answer is not an expression standing for the input: solve, evaluate, latex, the truth table and its satisfying assignments, the series, base conversion, the matrix operations and the number theory. Each entry answers exactly what the method it names answers, so a surface that switches to it changes no answer. The names are #1019 item 16's v3 column, the library's own verbs. Internal until v3, as decided on the issue, in a namespace of its own. Transformation and its factories stay where they are. CatalogueTest checks that the list holds every entry once, that each entry's parameters are its delegate's arguments after the input, and that each transformation entry claims what its Transformation claims. It also places every factory of Transformation as an entry or as a building block with its reason, so a new factory fails until it is placed. Removing two factories from those lists fails it and names them both. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
This was referenced Oct 25, 2026
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.
Part of #1684, the first of two PRs. The second puts the MCP server's tools on this.
Core/Operations/Catalogue.cslists the operations the library offers by name, 33 of them. Each entry has a one-line description and the arguments it takes besides its input.simplify,normalize,expand,factorize,differentiate,integrate,limit,substitutesolve,solve_system,evaluate,evaluate_numerically,variables,alternatives,latex,sympy,truth_table,satisfying_assignments,seriesto_base,from_basedeterminant,inverse,transpose,rank,reduced_row_echelon_form,trace,tensor_productprime_factorization,totient,greatest_common_divisor,divisor_count,is_primeCatalogue.Differentiate.Apply(e, x, 2)ise.Differentiate(x, 2), so a surface that switches to the catalogue changes no answer.Transformationand its factories stay where they are.normalizethere isInnerSimplified, whileTransformation.Normalizationis the canonical order followed byInnerSimplification. The two names are close enough to confuse, so Pending breakages: changes agreed or arguable that cannot ship before a major version #1019 item 16 may want another word forfsimp.Transformationalso names, such asRationalCanonicalization,EqualitySaturationandRewriting(ruleSet). A caller composes them, and none of them answers a question by itself.CatalogueTest(15 tests) checks:Allholds every entry declared, once;Transformation;Transformationis either an entry or a building block with its reason. A new factory fails until it is placed. RemovingRewritingandExpansionfrom those lists fails the test, naming both;simplifyandnormalizeare both checked onsin(x)^2 + cos(x)^2.Checked:
satisfying_assignments,to_baseandfrom_basetouched onlyCatalogue.csand its test, andCatalogueTestpasses on them.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura