Repository navigation
Add exact rational Projective Calculus builtins (ProjectiveRingPoint, ProjectiveQuadraticSum, ProjectiveConstant, PadeApproximant, Residue, ContourIntegrate) - #2133
Open
KarataevDmitry wants to merge 3 commits into
Conversation
…TrigReduce, Integrate fast-path) and Wolfram Language MCP Server
…ion of Pi, E, Log2, GoldenRatio, Lemniscate, Gamma14, Catalan, Apery, and EulerGamma
…ding, and ProjectiveIsotropicStencil builtins
Member
|
Thanks for the PR. I can't look at this for a few days. Hopefully @mmatera can. |
This branch has not been deployed
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
This PR contributes an exact rational Projective Calculus engine over$\mathbb{Z}_{2^m} \to \mathbb{P}^1(\mathbb{Q})$ and $\mathbb{Q}(i, \sqrt{d-1})$ to
mathics-core, eliminating floating-point series drift and branch-cut ambiguities for rational, contour, and multidimensional quadratic Fresnel integrals:ProjectiveRingPoint[m, phi]:ProjectiveQuadraticSum[m, ndim]:$$\mathcal{I}N(m) = \sum{\varphi \in \mathbb{Z}{2^m}^N} \prod_{k=1}^N \bigl(\mathcal{C}_m(\varphi_k^2) + i,\mathcal{S}_m(\varphi_k^2)\bigr) = (1 + i)^N \cdot 2^{(m-2) + N\lfloor m/2\rfloor + \lfloor N/2\rfloor(m\bmod 2)}.$$
ProjectiveContourWinding[m, phases]&ProjectiveIsotropicStencil[d]:ProjectiveConstant,PadeApproximant,Residue,ContourIntegrate,TrigReduce, andIntegrateProjective Fast-Path:Pi,E,Log2,GoldenRatio,Lemniscate,Gamma14,Catalan,Apery,EulerGamma) without circular floating-point transcendental calls,50/50passingpytestcases intest/builtin/numbers/test_projective_calculus.py.Open Science Invitation & Honest Disclaimer
Science and mathematics do not belong to isolated individuals — they belong to humanity and to all thinking actors on this planet.
test/builtin/numbers/test_projective_calculus.pyare working and verified (and backed by formal Lean 4 proofs and Wolfram Language reference suites in our open repositoriesAI-Guiders/guiders-mathematicsandAI-Guiders/discrete-quantum-mechanics).mathics-core/ SymPy evaluation rules, docstrings, or edge cases may contain inaccuracies, rough edges, or things that need to be split, supplemented, or re-checked.Mathics3maintainers and the wider computer algebra community to review, test, critique, point out any flaws, and guide how best to structure or split these builtins for upstream inclusion.