geometric-function-atlas
geometric-function-atlas is a standalone Python package for independently reproducing and reviewing computations published by the Geometric Function Atlas.
Source repository: https://github.com/Prasanna28Devadiga/geometric-function-atlas
This repository is intentionally separate from the registry website and its research workspace. It provides local commands and Python functions for reproducing the website's mathematical computations. It does not contain the Flask application, deployment configuration, private review state, or mutable registry database.
Install
No Python required. The installer sets up uv, an isolated Python 3.12,
the gfa command, and verifies the result. For copy buttons and visible setup
steps, use the guided installer.
macOS and Linux:
(f="$(mktemp)" && trap 'rm -f "$f"' EXIT && curl --proto '=https' --tlsv1.2 -LsSf https://gft-registry.fly.dev/install.sh -o "$f" && sh "$f")
Windows PowerShell:
$ErrorActionPreference='Stop'; $f=Join-Path $env:TEMP "gfa-$([guid]::NewGuid()).ps1"; try { irm https://gft-registry.fly.dev/install.ps1 -OutFile $f; powershell.exe -NoProfile -ExecutionPolicy Bypass -File $f; if ($LASTEXITCODE -ne 0) { throw "GFA installer failed ($LASTEXITCODE)" } } finally { rm $f -Force -ErrorAction SilentlyContinue }
Then start here:
gfa walkthrough
The install is user-local: no administrator access, system-Python replacement,
pip, virtual environment, or activation step. See the installation guide
for upgrades, removal, optional labs, and maintainer installs.
What you can do
Every operation represented in the package's parity table has a local command and a Python function. The table below is the complete shipped surface; browser- only panels and private research-workspace operations are explicit non-goals.
| Website capability | CLI | Python function |
|---|---|---|
| Run a concise first-use tour | gfa walkthrough |
— |
| Browse the generator catalog (39 Ma–Minda generators) | gfa generators |
list_generators() |
| Exact Taylor coefficients of a generator | gfa coefficients <gen> --order N |
generator_series() |
| Exact Ma–Minda Fekete–Szegő constants | gfa fekete-szego <gen> --mu M |
fekete_szego() |
| Re-check a supplied counterexample witness | gfa verify-counterexample |
verify_counterexample() |
| Search for and certify a violation point | gfa find-counterexample |
find_counterexample() |
| Verify a function at a cost tier | gfa verify --max-cost <tier> |
verify_function() |
| List Ma–Minda classes | gfa classes |
list_classes() |
| Check Ma–Minda admissibility of a class | gfa class-check <key> |
class_admissibility() |
| Screen membership of f in a class | gfa class-member <key> --coefficients ... |
class_member_screen() |
| Screen class containment | gfa compare <inner> <outer> |
class_containment_screen() |
| Exact extremal coefficients of a class | gfa extremal-coefficients <key> |
class_extremal_coefficients() |
| Export citations | gfa citation ... |
citation_export() |
| Reproduce website plots | gfa plot <kind> <gen> [--object phi|z*phi|f_phi] --output out.svg (domain also supports PNG/TikZ) |
write_plot() and friends |
| Inspect/verify baked scientific artifacts | gfa artifact-snapshot, gfa proofs, gfa expansion, gfa coefficient-bound, gfa reconciliation |
snapshot_info(), list_proofs(), expansion(), coefficient_bound(), reconciliation() |
| Replay a baked exact certificate | gfa verify-certificate <name> |
verify_certificate() |
| Browse/replay directed inclusion radii | gfa radii, gfa radius, gfa radius-recompute, gfa radius-identify, gfa radius-audit, gfa radius-attainment, gfa verify-radius-certificate |
list_radii(), radius(), recompute_radius(), identify_radius(), audit_radius(), verify_radius_attainment(), verify_radius_certificate() |
| Verify/install an immutable registry snapshot | `gfa snapshot info | verify |
| Query snapshot statistics, families, papers, evidence, applications, legacy functions, facets, and tags | `gfa stats | search |
| Query aliases, hierarchy, and stored witnesses | `gfa aliases | normalize-class |
| Cryptography Lab S-box metrics (optional) | gfa crypto-lab ... |
geometric_function_atlas.lab.* |
| Image Lab finite coefficient-derived filters, metrics, and transforms (optional) | gfa image-lab ... |
geometric_function_atlas.lab.* |
Result-printing commands accept --json for machine-readable output;
file-writing commands (plot, image-lab transform, image-lab sample)
write their artifact instead. Without --json, result commands print a short
human summary (the value plus its evidence label) and point to --json for
the complete versioned record.
Short aliases save typing: gfa coeffs, gfa fs, gfa disprove, and
gfa certify stand for coefficients, fekete-szego,
verify-counterexample, and verify-radius-certificate. A misspelled
generator key earns a did you mean ...? suggestion, and witness points may
use fraction syntax with --at (gfa disprove --coefficients 1 --at=-3/4).
Registry snapshot boundary
The package does not bundle the mutable registry database, and no canonical snapshot URL is bundled.
Snapshot users provide a user-supplied HTTPS database and matching manifest
(the manifest can preserve its source_url), then verify
and install it locally:
gfa snapshot install https://example.org/registry.sqlite \
~/.cache/gft-registry/registry.sqlite --manifest registry.manifest.json
gfa papers --citation 10.example/record \
--snapshot ~/.cache/gft-registry/registry.sqlite --manifest registry.manifest.json
The URL above is an illustrative caller input, not a package-hosted release asset. Snapshot hashes, required tables, populations, and SQLite integrity checks are authoritative; a snapshot does not certify the underlying claims.
The optional Image Lab and Cryptography Lab operations need NumPy. Install with
the lab extra:
uv tool install geometric-function-atlas --extra lab
# or locally:
uv tool install --with "numpy>=1.24" dist/geometric_function_atlas-*.whl
The optional crypto lab covers five named registry functions and two
deterministic S-box constructions. Its outputs are benchmark metrics, never
security claims; invertibility and empirical comparisons do not amount to
provable cryptographic security. leaderboard(scope="website") and
gfa crypto-lab leaderboard --scope website replay the immutable 435-row
website metric snapshot; those rows contain reported metrics, not S-box values,
and are not a new security ranking. The image lab is likewise an empirical
transform/metric sandbox. It accepts finite, non-empty 2D (H×W) or RGB
(H×W×3) arrays and exposes the finite coefficient-derived filter subset used
by the website's named functions. GMSD mirrors the website's 2×2 prefilter,
including its treatment of odd-sized inputs; the package does not claim analytic
special-function or conformal-warp parity.
Python API
For problem-led examples rather than an API tour, see the research workflows: custom classes, class geometry, sharp radii, coefficient comparisons, conjecture repair, operator transfer, and deterministic collaborator bundles. The thirty-recipe catalogue gives one terminal route for every reviewer example without presenting missing research engines as shipped. The recent-literature case studies connect these tools to a source-bound sharp coefficient repair and an all-order convex-subordination argument, with explicit prior-art limitations.
Exact generator series
from geometric_function_atlas import Generator, generator_series, z
# phi(z) = 1 + sin(z) = 1 + z - z^3/6 + ...
series = generator_series("sine", order=4)
assert tuple(map(str, series.coefficients)) == (
"1", "0", "-1/6", "0"
)
print(series.to_dict())
Custom normalized generators use preconstructed SymPy expressions; formula strings are deliberately rejected rather than passed to an eval-based parser:
custom = Generator(
key="custom",
name="Example",
expression=1 + 2*z + 3*z**2,
citation="User supplied",
)
Computations are not restricted to the built-in catalog. Analytic admissibility
of custom input remains an explicit caller assumption, and undeclared free
symbols are rejected. Caller definitions receive a collision-safe canonical
identity of the form user:<key>:<SHA-256 of exact formula> in exported
records; reusing a catalog key cannot impersonate the built-in object.
Exact Fekete–Szegő constants
from geometric_function_atlas import fekete_szego
# Exact sharp constant under the declared Ma–Minda assumptions.
result = fekete_szego("exponential", mu=0)
assert str(result.value) == "3/4"
print(result.to_dict())
Tiered function verification
The website's verification sandbox exposes three cost tiers. The package mirrors them with explicit epistemic labels: a numerical screen is never presented as a proof.
from geometric_function_atlas import verify_function
# Screen: float grid evaluation of the starlikeness criterion.
screen = verify_function([0.25], property="starlike", max_cost="screen")
assert screen.outcome == "passes_screen" # numerical screen, not a proof
# Symbolic: exact arithmetic on a sufficient condition.
# For a finite polynomial, sum(n*|a_n|) <= 1 proves starlikeness.
proof = verify_function([0.1], property="starlike", max_cost="symbolic")
# Rigorous: symbolic checks plus certified interval evaluation at the
# worst screened point.
rigorous = verify_function([1.0], property="starlike", max_cost="rigorous")
assert rigorous.outcome == "certified_violation"
verify_function accepts either coefficients ([a2, a3, ...] for
f(z) = z + a2*z**2 + ...) or a preconstructed SymPy closed_form expression.
Supported properties: starlike, convex, univalent, becker_univalent,
nehari_univalent. Univalence has no pointwise screen; use the symbolic tier
or the Becker/Nehari criteria.
Counterexample witness replay and search
from geometric_function_atlas import find_counterexample, verify_counterexample
# Rigorously re-check the website's witness z = -3/4 for f(z) = z + z^2.
check = verify_counterexample([1.0], point=(-0.75, 0.0), property="starlike")
assert check.certified is True
print(check.to_dict())
# Grid search locates a candidate violation, interval arithmetic certifies it.
search = find_counterexample([1.0], property="starlike")
assert search.certified is True
Class screens
Ma–Minda class operations are screens unless a certified theorem is attached: exact normalization checks plus sampled-region evaluation. They are never presented as proofs.
from geometric_function_atlas import (
class_admissibility,
class_containment_screen,
class_extremal_coefficients,
class_member_screen,
list_classes,
)
list_classes() # all 39 Ma–Minda classes
class_admissibility("exponential") # exact phi(0)=1, phi'(0)>0 + region screens
# Screen f(z) = z + 0.25 z^2 + 0.1 z^3 for membership in S*(exp(z)).
member = class_member_screen("exponential", [0.25, 0.1])
assert member.member is True
# Screen phi_inner(D) subset phi_outer(D).
contained = class_containment_screen("exponential", "cardioid")
# Exact extremal coefficients from the class definition.
coeffs = class_extremal_coefficients("exponential", order=8)
# The same Python APIs accept the exact custom Generator constructed above.
custom_admissibility = class_admissibility(custom)
custom_coeffs = class_extremal_coefficients(custom, order=8)
See docs/workflows/custom_class.md for an
end-to-end caller-defined class with exact coefficient bounds, explicitly
labeled screens, and separate phi, z*phi, and f_phi exports.
Plots
Four plot kinds reproduce the website's plots as dependency-free SVG:
domain (conformal grid image), coefficients (coefficient magnitudes),
real-part (heatmap of Re f), and phase (phase portrait).
A named generator can be plotted as three genuinely different objects, chosen
with object= in Python or --object on the command line:
phi— the generator itself,phi(z) = 1 + B_1 z + B_2 z^2 + .... Its constant term is 1 and its linear coefficient isB_1(not necessarily 1), so it is not a normalizedz + ...polynomial.z*phi— the normalized truncationz*phi(z) = z + B_1 z^2 + ..., the legacy default when no object is selected.f_phi— the canonical Ma–Minda extremalf_phi(z) = z exp(integral_0^z (phi(t) - 1)/t dt) = z + a_2 z^2 + ..., computed withclass_extremal_coefficients()and kept exact until the plotting conversion boundary.
from geometric_function_atlas import write_plot
write_plot("domain", "/tmp/exponential-domain.svg", generator="exponential")
write_plot("domain", "/tmp/exponential-phi.svg", generator="exponential", object="phi")
write_plot("domain", "/tmp/exponential-fphi.svg", generator="exponential", object="f_phi")
The same selection on the command line (quote z*phi so the shell does not
expand the *):
gfa plot domain exponential --object phi --output phi-domain.svg
gfa plot domain exponential --object 'z*phi' --output zphi-domain.svg
gfa plot domain exponential --object f_phi --output fphi-domain.svg
--coefficients continues to mean the normalized polynomial
f(z) = z + a2 z^2 + ...; it is rejected together with --object rather than
silently reinterpreted. Results label this input as normalized_polynomial;
that metadata value is not a fourth --object choice. Unknown object names are
rejected and list the three accepted spellings.
Every plot is a sampled finite-truncation visualization of the selected
object at a fixed Taylor order (further capped at order 24 for f_phi). It is
not a proof, not the full image domain, and not a certificate of class
membership; the real-part and phase outputs are numerical screens only.
The checked-in examples below are generated by the package itself:
Versioned scientific artifacts
The website's proof, bounds, expansion, open-problem, reconciliation, and reference records are shipped as a checksummed read-only package snapshot. These are lookups or bounded certificate replays; they do not turn a numerical screen into a proof, an enclosure into a sharp result, or a literature no-match into a novelty claim.
from geometric_function_atlas import (
coefficient_bound,
expansion,
get_proof,
list_proofs,
open_problems,
reconciliation,
snapshot_info,
snapshot_verify,
verify_certificate,
)
artifact = snapshot_info()
assert artifact["artifact_version"]
assert snapshot_verify()["checks"]["success"] is True
assert expansion("starlike")["class_key"] == "starlike"
assert coefficient_bound("starlike")["count"] > 0
assert list_proofs()["count"] > 0
assert get_proof("starlike__fekete_szego_mu1")["name"]
assert open_problems("enclosure")["counts"]["enclosures"] == 12
assert reconciliation()["total"] > 0
assert verify_certificate("starlike__fekete_szego_mu1")["matched"] is True
The corresponding commands are:
gfa artifact-snapshot info --json
gfa artifact-snapshot verify --json
gfa artifact-classes --json
gfa class starlike --json
gfa expansion starlike --json
gfa coefficient-bound starlike --json
gfa proofs --search fekete --json
gfa proof starlike__fekete_szego_mu1 --json
gfa open-problems --kind enclosure --json
gfa reconciliation --json
gfa references --json
gfa verify-certificate starlike__fekete_szego_mu1 --json
Directed inclusion radii
Radius rows preserve direction and the website's five evidence statuses. Only the eight reviewed exact lanes are replayable by the package; the other rows remain snapshot records with their original status and provenance.
from geometric_function_atlas import (
audit_radius,
identify_radius,
list_radii,
radius,
recompute_radius,
replay_radius_certificate,
verify_radius_attainment,
verify_radius_certificate,
)
rows = list_radii(status="audit_required")
record = radius("sine", "sigmoid")
assert record.direction == "sine->sigmoid"
assert replay_radius_certificate(record).certified is True
assert verify_radius_certificate("sine", "sigmoid").certified is True
assert recompute_radius("sine", "sigmoid").certified is True
assert identify_radius("asin((E-1)/(E+1)") == () # malformed input is not a match
assert audit_radius("sine", "sigmoid")["attainment_verified"] is True
assert verify_radius_attainment("sine", "sigmoid").certified is True
gfa radii --status audit_required --json
gfa radius sine sigmoid --json
gfa radius-recompute sine sigmoid --json
gfa radius-identify --value 'asin((E-1)/(E+1))' --json
gfa radius-audit sine sigmoid --json
gfa radius-attainment sine sigmoid --json
gfa verify-radius-certificate sine sigmoid --json
The radius certificate replay checks the declared branch, containment,
contact/attainment evidence, exact candidate, and bounded symbolic steps. A
stored decimal or a candidate expression is not silently upgraded to a global
sharpness proof. An unchanged snapshot row without a bundled replay certificate
is reported as not_replayable (unsupported, exit code 3) and keeps its own
evidence status; a malformed record, a certificate removed from a reviewed
lane, or any other record that is not its unchanged trusted snapshot row is
corrupt_artifact.
Immutable registry snapshot queries
The large relational registry database is a separately distributed artifact; it is not embedded in the wheel. After obtaining a database and its matching manifest, inspect and verify it before querying:
gfa snapshot info registry.sqlite --manifest registry-manifest.json --json
gfa snapshot verify registry.sqlite --manifest registry-manifest.json --json
gfa snapshot install registry.sqlite installed.sqlite --manifest registry-manifest.json --json
All local snapshot queries use RegistrySnapshot.open(...) and have matching
task-oriented commands:
| Operation | Command | Python API |
|---|---|---|
| Statistics | gfa stats SNAPSHOT |
snapshot.stats() |
| Search | gfa search QUERY SNAPSHOT |
snapshot.search() |
| Family list/detail | gfa families, gfa family ID |
snapshot.families(), snapshot.family() |
| Facts/evidence/runs | gfa facts, gfa evidence, gfa runs |
snapshot.facts(), snapshot.evidence(), snapshot.runs() |
| Paper search/detail | gfa papers, gfa paper ID |
snapshot.papers(), snapshot.paper() |
| Applications | gfa applications [AREA] |
snapshot.applications() |
| Stored witnesses | gfa counterexamples [FAMILY] |
snapshot.counterexamples() |
| Alias lookup | gfa aliases [TEXT], gfa normalize-class TEXT |
snapshot.aliases(), snapshot.normalize_class() |
| Property hierarchy | gfa hierarchy [PROPERTY] |
snapshot.hierarchy() |
Snapshot query results preserve corpus facts, evidence, verification-run metadata, and conservative application associations. Application labels are literature/keyword associations, not effectiveness claims.
Optional labs (NumPy required)
The Cryptography Lab and Image Lab operations live behind the lab extra.
Crypto outputs are benchmark metrics, never security claims; image outputs
are empirical.
from geometric_function_atlas.lab import AES_SBOX, IDENTITY_SBOX, sbox_metrics
# Deterministic anchors: the AES S-box and the identity permutation.
aes = sbox_metrics(AES_SBOX) # NL 112, DP 4/256, LP 1/16, ...
identity = sbox_metrics(IDENTITY_SBOX) # poor metrics by construction
from geometric_function_atlas.lab import image_metrics, sample_image
ref = sample_image(seed=0, size=32) # deterministic generated array
metrics = image_metrics(ref, ref) # PSNR inf, SSIM 1, GMSD 0
See docs/WEB_PARITY.md for the website-to-package checklist and
docs/PROVENANCE.md for claim semantics. The versioned result envelope,
verification checks, failure states, and CLI exit codes are specified in
docs/RESULT_CONTRACT.md.
Command line
gfa generators
gfa coefficients sine --order 5
gfa fekete-szego exponential --mu 1/2
# Re-check the witness z=-3/4 for f(z)=z+z².
gfa verify-counterexample --coefficients "1" --point=-0.75,0
# Search for and certify a starlikeness violation.
gfa find-counterexample --coefficients "1"
# Tiered verification.
gfa verify --coefficients "1" --property starlike --max-cost screen
gfa verify --coefficients "1" --property starlike --max-cost symbolic
gfa verify --coefficients "1" --property starlike --max-cost rigorous
# Class operations.
gfa classes
gfa class-check exponential
gfa class-member exponential --coefficients "0.25,0.1"
gfa compare exponential cardioid
gfa extremal-coefficients exponential --order 8
# Plots (SVG for every kind; domain PNG and domain TikZ exports are also supported).
gfa plot sine --order 12 --output sine-domain.svg
gfa plot domain exponential --output /tmp/domain.svg
gfa plot domain exponential --object phi --output /tmp/domain-phi.svg
gfa plot domain exponential --object f_phi --output /tmp/domain-fphi.svg
gfa plot phase exponential --output /tmp/phase.svg
gfa plot domain exponential --output /tmp/domain.png
gfa plot domain exponential --output /tmp/domain.tikz
# Optional labs (NumPy required).
gfa crypto-lab metrics --reference aes
gfa crypto-lab metrics --reference identity
gfa crypto-lab metrics --sbox "25,1,47,..." # 256 integers
gfa crypto-lab construct cardioid
gfa crypto-lab leaderboard --scope website
gfa image-lab sample --output ref.npy --seed 0 --size 32
gfa image-lab metrics --ref ref.npy --test ref.npy
gfa image-lab transform --input ref.npy --output out.npy --operation edge
The longer command name, geometric-function-atlas, is also supported. Add
--json to result-printing commands when machine-readable output is useful.
Snapshot citation and facet commands are local queries over the caller-supplied immutable snapshot:
gfa citation --key example --title "Example paper" --year 2024 --author "A. Author"
gfa function legacy-sine --snapshot registry.sqlite --json
gfa functions --snapshot registry.sqlite --tag image_processing --json
gfa paper-facets --snapshot registry.sqlite --json
gfa tags --snapshot registry.sqlite --category application --json
--mu accepts an exact signed integer or integer/integer fraction. Decimal
and scientific notation are rejected so untrusted short inputs cannot trigger
unbounded symbolic integer construction.
Development
uv sync --extra test
uv run pytest
Scientific status
Every result reports its method and evidence status. Numerical screens are never presented as proofs, computational certification is distinct from literature novelty, enclosures are not sharpness claims, application tags are not effectiveness claims, crypto metrics are benchmark metrics rather than security claims, and bibliographic review remains a separate human process.
License
MIT
Metadata
Release files for geometric-function-atlas 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| geometric_function_atlas-0.4.0.tar.gz | 412.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| geometric_function_atlas-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 663.1 kB
Release files / geometric_function_atlas-0.4.0.tar.gz
| Download URL | geometric_function_atlas-0.4.0.tar.gz |
|---|---|
| Size | 412.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f705f09b681b13c3fa44144e05746a16f00922d003e544bae2ab99cc25cf487d
|
|
BLAKE2b-256 checksum How to use checksums |
fc00a16f4cc3cf50485a4aa5f4b547e7977482666bd3ade132d87bb0cd5a3ebe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / geometric_function_atlas-0.4.0-py3-none-any.whl
| Download URL | geometric_function_atlas-0.4.0-py3-none-any.whl |
|---|---|
| Size | 250.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02b48f2ac752f1c6cd2a2515d3dac263517e6f122520c8b1b9ca5c97853cd623
|
|
BLAKE2b-256 checksum How to use checksums |
3d6ce224f179bee8a3816fee4c140979c020ccd296c1bdaf46d984776cc329b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|