Alexander S. Petty

nfield

A tool for digit fields, alignment,
and collision arithmetic.

Choose a base, denominator, source weight or sampling grid. Compare what changes, then keep the results for your own work.

What you can investigate

Choose a topic

Using nfield

Open what you need
Find a tool and keep its resultsDiscovery, JSON and CSV

commands spectrum --examples finds useful starting points. Each action describes its inputs, results and scope.

Actions that support JSON or CSV list those formats in their help. The terminal can copy or download a complete raw result, preserving exact rational and large-integer strings. Timing and diagnostics stay outside that download.

Explore the command reference
Follow a paper or check a calculationReading map and named checks

If you came here from a paper, help reading-map identifies the relevant commands. You can inspect one case, scan a range, or choose a named implementation check with verify families.

The output distinguishes exact arithmetic, numerical results, directed intervals, and bounded searches. A finite C check reports the cases it tested. Formal Lean proofs belong to the separate proof project; neither ordinary calculations nor named C checks require Lean.

Open the reading map
Run the CLI on your machineBuild, versions and larger inputs

The program is written in C. Build it with Make, LAPACK, BLAS, GMP, and MPFR. Running locally gives you larger inputs, shell completion, and the JSON/TCP daemon.

git clone https://github.com/alexspetty/nfield.git
cd nfield
make
./nfield field 7
Published source build instructions

The published source and this site have separate release versions. Use nfield version and nfield commands to see what your local build provides.

Use nfield in an applicationLocal service and C libraries

The local JSON/TCP daemon accepts the same command arguments and returns output, exit status and truncation status. For C programs, libnfield offers an exact source and forest API plus an optional profile of other research modules. Use the documentation shipped with that source release.

Local service and library guide

A native nfield web interface and VR views remain future work.

Explore the spreadsheet interfacesExcel and Sheets · in development

Exact arithmetic, musical alignment and field calculations are being shaped into a workbook interface, with arbitrary-precision integers and rationals and explicit precision for numerical displays.

nfield for Excel offers proposed functions and workbook examples. nfield for Sheets covers the Google Sheets interface and shared documentation.

Function reference · User guide · Arbitrary precision

Free for personal and educational use

Use nfield for personal work, study, education, and noncommercial research. If you’re using it in commercial work, including commercial research, get in touch about a license.

The Lean proofs are separately available under Apache 2.0.

Licensing and inquiries