Skip to main content

mathfirst

Model the mathematics first; treat the libraries underneath as backends.

Status: Version 0.1.0 is an initial package scaffold. The mathematical objects and operations described below are planned and are not implemented yet.

mathfirst is a math-native layer for representing and working with mathematics in Python.

The core idea is simple:

Model mathematics according to its mathematical meaning first, and treat symbolic, numerical, visualization, and other libraries as implementation backends.

Instead of building directly around library-specific objects such as SymPy expressions, NumPy arrays, or plotting primitives, mathfirst defines its own mathematical concepts and relationships:

Scalar
Variable
Expression
Set
Function
Polynomial
Point
Root
...

These objects should preserve the structure and semantics of the mathematics they represent, including concepts such as exactness, assumptions, domains, codomains, dimensions, and algebraic relationships.

Underlying libraries such as SymPy, NumPy, SciPy, or mpmath may provide the computational machinery, but they should not define the public mathematical model.

The guiding principles are:

  • Mathematical meaning before implementation details
  • Exact mathematics where possible; approximation should be explicit
  • Objects represent mathematical concepts
  • Operations transform mathematical objects
  • Mathematical structure and assumptions should be explicit
  • Backend-specific behavior should remain behind deliberate boundaries
  • Downstream systems consume the common math model

This allows other parts of mathfirst to build on the same mathematical foundation, for example:

mathfirst
├── core mathematical objects
├── symbolic / numeric operations
└── viz/
    └── visualization of mathematical objects

Visualization is therefore not the purpose of the math layer itself; it is one consumer of it.

The long-term goal is for code using mathfirst to read and behave more like the mathematics being expressed, rather than like the particular libraries used to compute it.

Metadata

Release files for mathfirst 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mathfirst 0.1.0
File Size Uploaded Provenance
mathfirst-0.1.0.tar.gz 5.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mathfirst 0.1.0
File Interpreter ABI Platform
mathfirst-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / mathfirst-0.1.0.tar.gz

Download URL mathfirst-0.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8c595d0c34d22815db7db448a23d4468c751057c9f2509f1629425b678140f4c
BLAKE2b-256 checksum
How to use checksums
75244b6cf76c308d82a6cbaccb651a5dc03d7fae005f87a76238f975045acfe4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / mathfirst-0.1.0-py3-none-any.whl

Download URL mathfirst-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b800a5af23e085267fd1c93adb55a5ff7402852802dee17ccd4265283423c9a7
BLAKE2b-256 checksum
How to use checksums
6fbd0031dae4c9324d10a04fb9f173eb19b10407736c810d2185d346cb416840
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Security for mathfirst 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mathfirst-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page