Source: Algebra at 3a8b8a9acc0f.
Open Symbolic Rules (OSR) - Algebra Module#
This repository is the Algebra Module of the OpenSymbolicRules standard.
It provides a universal, language-agnostic JSON format for general algebraic simplifications, rewriting, and polynomial manipulations.
Overview#
Unlike integration rules which are highly specialized, the algebraic rules serve as the foundation for any Computer Algebra System (CAS). By defining algebraic rules in this format, and linking semantics directly to OpenMath, we ensure flawless translation of core mathematics into CAS environments like Julia (Symbolics.jl), Python (SymPy), and beyond.
Structure#
rules/: Algebraic rewriting rules in JSON formattests/: Test fixtures to validate correct simplificationsSpecification/: Submodule pointing to the core OSR JSON schemas
Every mathematical operator is mapped to an OpenMath Content Dictionary symbol in
the rule file’s semantics object.
The logarithm inverse rule is independently encoded from Fungrim MathJSON entry
d87f6e; its nonzero argument condition is preserved.
Profiles#
The default manifest performs distributive expansion. Use the
factor_polynomials profile for common-factor extraction; the two directions
are intentionally separate to prevent an expansion/factorisation rewrite loop.
OSR v1#
v1/ holds the rule set in the OSR v1 format, generated from Lean proofs
(OpenSymbolicRules/Lean) and published by OpenSymbolicRules/Verification.
See docs/osr-v1.md. Check it with:
just check # v0.1 schemas, semantic closure and v1 files
just v1 <report> # also compare v1/ with a Verification report directoryLicense#
This repository is licensed under the MIT License. OpenMath identifiers are referenced for semantic interoperability; see NOTICE.md.