Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Python API reference

The Sphinx-generated Python API is published alongside this guide:

Open the Python API documentation

It includes ExprPool, simplification, calculus, polynomials, numerics, transforms, matrices, ODE/DAE, solvers, codegen, error types, and the search / workload surface (Budget, batch_map, DerivedResult.to_dict, …).

Conceptual chapters for agent-facing plumbing:

TopicGuide
Budgets, cancellation, seeds, pool lifetimeBudgets
Batch / streaming fan-outBatch
Compact machine-parseable resultsDerivation logs
Session provenanceClaim graphs
OverviewAutoresearch / agent loops

Submodules

Not everything lives on the top-level namespace as a function. These are reached as alkahest.<name> and documented in their own chapters:

ModuleWhat it isGuide
alkahest.ansatzParametric families (polynomial, rational, exponential_polynomial, linear_combination, quadratic_form) plus fit, enumerate_family, certify_nonnegAnsatz families
alkahest.crosscheckDifferential testing against an external CAS oracle: check, sweep, run_frozen_corpus, to_sympy, register_oracleCross-CAS testing
alkahest.smtSMT-LIB 2 export and z3/cvc5 bridge: to_smtlib, solve, supported, solversSMT bridge
alkahest.researchSession claim graphs and provenanceClaim graphs
alkahest.experimentalTransforms, dsolve, asymptotics, residue, Fps, to_jax — may change in a minor release. Must be imported explicitly (from alkahest import experimental as ex); it is not an attribute of the top-level module until thenStability policy
alkahest.rlVerifiable RL environmentsReinforcement learning
alkahest.number_theory, alkahest.modular, alkahest.latticeFLINT-backed integer and lattice routines

alkahest.ansatz, alkahest.crosscheck and alkahest.smt are new in 3.8. They are in alkahest.__all__ and resolve on attribute access without a separate import, as do their error classes AnsatzError, CrossCheckError and SmtError.