Exact typed expressions across two bases
This example follows one exact polynomial through antiderivation, two coordinate changes, differentiation, and definite integration. Every vector and matrix is over \(\mathbb Q\). The complete operator compiles to \(I_4\), while the final scalar is \(5/4\).
The second half expresses the affine integration result \(106/5\) inside the finite expression language and records three failure cases that must not be rewritten away.
1. The two graded bases
Let the standard Fibonacci polynomials satisfy
Komorebi Math uses the graded basis \(G_k=F_{k+1}\). Through degree four,
The Euler basis is defined by
The required prefix is
These coefficient lists are the type witnesses. The words "Fibonacci" and "Euler" are only display labels.
2. Input in Fibonacci coordinates
Take the degree-three Fibonacci basis element
In the ordered basis \((G_0,G_1,G_2,G_3)\), its coordinate vector is
Here the subscript \(F_3\) means the Fibonacci coordinate space through degree three. It does not mean the standard Fibonacci polynomial \(F_3(x)\).
3. Basepoint antiderivative in the Fibonacci basis
Let \(J_{0,F}^{(4)}:\mathcal P_3^F\to\mathcal P_4^F\) be the primitive that vanishes at zero. Its exact matrix is
Applying it gives
Reconstruction confirms
This is exactly the primitive of \(x^3+2x\) with value zero at the basepoint.
4. Change from Fibonacci to Euler coordinates
The exact degree-four coordinate change is
Therefore
The physical polynomial has not changed. The vector \(v_2\) still reconstructs to \(x^4/4+x^2\).
5. Differentiate in Euler coordinates
Euler polynomials are an Appell family, so the tight derivative has the simple matrix
It maps the degree-four space to the degree-three space. The next vector is
Indeed,
6. Return to Fibonacci coordinates
The degree-three change back to Fibonacci coordinates is
It returns the original vector exactly:
No tolerance or floating comparison appears in this calculation.
7. The compiled operator is exactly \(I_4\)
The whole map on \(\mathcal P_3^F\) is
Exact matrix multiplication gives
This is the concrete naturality form of \(DJ_0=I\). The coordinate changes do not alter the physical operator.
8. Integrate the recovered polynomial
The exact integration covector on \([0,1]\) in the Fibonacci degree-three basis is
The entries are the integrals of \(G_0,G_1,G_2,G_3\). Hence
Directly,
9. Affine and weighted integration regression
Let \(\mu=dx\) on \([0,1]\), let \(y=2x+1\), and let \(\nu=\phi_\#\mu\). Then
For
exact affine substitution gives
The monomial coefficient vector is therefore
Pairing with the \([0,1]\) moment row gives
The direct weighted moment row on \([1,3]\) is
With \(c_y=(1,-2,0,0,1)^{\mathsf T}\),
Thus the affine pullback and pushforward-density paths agree exactly.
10. Adversaries
Same label, different basis
Consider
They may both be displayed as custom basis, and both have dimension three,
but their exact witnesses differ. Their structural fingerprints differ, so a
coordinate map certified for \(B\) cannot be reused for \(B'\).
The false reverse identity
The equation \(DJ_0=I\) is valid on the smaller source space. The tempting reverse equation \(J_0D=I\) is false. Apply it to the constant polynomial:
The correct formula is
The rank-one term removes the constant value at the basepoint.
Omitted pushforward density
If the factor \(1/2\) is omitted from the integral on \([1,3]\), every moment doubles and the result becomes
This is not another representation of \(106/5\). It is a different measure. The density is therefore part of the integration primitive's exact structural data.
Singular inverse
The matrix
has determinant zero. An exact inverse does not exist, regardless of its label or square shape. The basis constructor's graded leading-coefficient condition prevents such a matrix from becoming a valid polynomial basis witness, and the exact inverse routine rejects it. No cancellation rewrite may be certified from this matrix.
Independent replay
The standalone verifier implements the basis formulas and all matrix arithmetic
locally with Fraction. It imports neither the expression engine nor the
existing polynomial-family implementation.
python verification/verify_expression_math.py
Machine-readable output can be written with
python verification/verify_expression_math.py --quiet --output qualification/expression-math.json
Its 15 independent checks form a focused mathematical oracle. It is not, by itself, a wheel, platform, or full-package qualification claim.