DeepDual Core

A native C++23 ecosystem for universal mathematical computation — beyond the real numbers, over arbitrary algebraic structures.

Overview

DeepDual Core is a native C++23 ecosystem for universal mathematical computation — built on a fundamental idea: differentiation, and mathematical computation more broadly, should not be tied to the real numbers.

The ecosystem is organized into three layers:

  • Utilities — numeric constants, function notations, fallback and expected-value handling, optimization tools.
  • Types — numeric (rational, complex, quaternion, octonion, dual), geometric (polyvector, paravector, multivector), logical, and categorical.
  • Differentiation — automatic differentiation over arbitrary algebraic structures, including hypercomplex numbers and geometric algebra, powered by Nilpotent Analysis.

By separating the what of a computation from the algebra it lives in, DeepDual Core lets the same algorithm be computed and differentiated across many numeric and geometric worlds, with structure-aware optimizations throughout.

Automatic differentiation in DeepDual Core is grounded in Nilpotent Analysis — a purely algebraic theory that defines derivatives without limits or topology, and that extends naturally to fractional, complex, and variable-order derivatives.

DeepDual Core is not a single-purpose library. It is a foundation for scientific computing, machine learning, physical modeling, and any domain where mathematics must move beyond the real numbers.

DeepDual Core Release will include

DIFFERENTIATION 2 categories · 5 libraries

Classic Differentiation

DD_NaturalDiffDD_RiemannLiouvilleDD_FractionalDiffDD_ComplexDiff

Nilpotent Differentiation

DD_NilpotentDiff
UTILS 12 libraries
DD_TraitUtilsDD_TypeUtilsDD_AxiomUtilsDD_MathUtilsDD_ConversionUtilsDD_ErrorUtilsDD_ExpectedUtilsDD_ConstantUtilsDD_FunctionUtilsDD_NumericUtilsDD_OptimizationUtilsDD_FallbackUtils
TYPES 8 categories · 33 libraries

Logic Types

DD_PredicateDD_SortDD_VarDD_TermDD_ConnectiveDD_QuantifierDD_Formula

Category Types

DD_CategoryDD_Set

Function Types

DD_Function

Numeric Types

DD_DigitDD_NaturalDD_IntegerDD_RationalDD_RealDD_ComplexDD_QuaternionDD_OctonionDD_ParacomplexDD_DualDD_Hyperdual

Tensor Types

DD_ScalarDD_VectorDD_Tensor

Algebra Types

DD_MatrixDD_FiniteDD_InfiniteDD_Interval

Analysis Types

DD_NilpotentDD_Series

Geometry Types

DD_PolyvectorDD_ParavectorDD_Multivector
MAY BE INCLUDED 4 categories · 4 libraries

Classic Differentiation

DD_VariableDiff

Category Types

DD_Top

Algebra Types

DD_PredicateMatrix

Tensor Types

DD_Module

Versions

  1. v0.1.0-pre-alphareleased on 26 May 2026
  2. v0.2.0-alphareleased on 18 October 2026
  3. v1.0.0-releaseplanned in March 2027

Roadmap

Updated DeepDual Core roadmap from November 2026 to March 2027.
Open full size

Architecture

Russian-language diagram of the DeepDual Core architecture, showing differentiation, utilities, and types.
Open full size

Key Features

Dual differentiation paradigms

A unique combination of classical heuristic differentiation (integer orders, Riemann-Liouville, Caputo, component-wise tensors) and universal algebraic nilpotent differentiation over arbitrary structures. Choose the tool that fits your mathematical foundation.

Nilpotent Analysis core

A purely algebraic theory of differentiation over arbitrary algebraic structures — including non-associative and non-commutative — without limits or topology.

Compile-time mathematical verification

Strict checks for type identification and mathematical axiom compliance (commutativity, associativity, identity, inverses) using C++20/23 concepts. Unsupported types are caught at compile time, not at runtime.

Predicates and sets

Predicates as first-class objects and object-oriented sets, including support for infinite sets via predicate-based element storage. A foundation for formal logic and category theory.

Arbitrary derivative orders

Derivatives of any order — from integer to fractional, from real to complex, from constant to variable. The order itself can be a user-defined type. This includes mixed partial derivatives of functions of several variables.

Category theory and formal logic

Objects, morphisms, concepts, unification, and normal forms as the backbone of the API.

Universal numeric types

Rational, complex, quaternion, octonion, dual, and hyperdual numbers, with support for rational exponents and rational derivative orders.

Infinite arithmetic

Extended real numbers with +∞, −∞, and Undefined states. Fully compatible with user-defined real types.

Finite rings and fields

Cyclic arithmetic on discrete structures {0, 1, …, n − 1} with characteristic n. Differentiation is fully supported via nilpotent analysis, proving that calculus does not require continuity.

Interval arithmetic

Rigorous bounded and unbounded intervals with a dedicated undefined-state flag. Supports arithmetic operations and elementary functions without silent numerical errors.

Tensor and vector algebra

Scalars, vectors, and matrices over arbitrary fields. Linear algebra independent of the underlying field type.

Geometric algebra

Polyvectors, paravectors, and multivectors for structure-aware calculus.

Analytic series as objects

Infinite sums and products as lazy objects with configurable bounds (finite or infinite) and a user-defined term generator. Supports truncation, term extraction, and convergence checking.

Functions as objects

Storing, composing, and passing functions as first-class values — a foundation for higher-order operations, functional composition, and symbolic manipulation.

User-defined types

Any algebraic structure that satisfies the axioms can be used as a numeric type — both in functions and in derivative orders.

Zero-overhead error handling

Native std::expected integration with dedicated error types, eliminating the need for mandatory string-based exceptions and ensuring zero runtime overhead for the happy path.

Fallback system

A structure-aware fallback mechanism that extends supported operations to user-defined types without requiring them to implement every interface.

Built-in optimizations

Thread pool, caching, and parallel computation integrated into the kernel.

Conversion utilities

Compile-time checks for the existence of constructors and converters between types, enabling safe and consistent interaction between user-defined and built-in types.

DeepDual Core is authored and maintained by Michael Clark El.