Numerical Contracts
This page records a small internal engineering policy that is easy for machine generated code to miss.
It is intentionally developer-facing rather than part of the main user manual.
Orthonormal blocks
When a block is constructed to be orthonormal, the intended contract is:
- build it to be orthonormal in the relevant metric
- check that the resulting overlap is
I +small unavoidable Float64 noise - then treat the block as orthonormal
Examples include:
- finalized PGDG / COMX-cleaned blocks
- nested fixed blocks
- any other internal block whose construction is explicitly meant to produce an orthonormal basis
What not to do
Do not keep propagating a near-identity overlap matrix as if it were meaningful mathematical data.
In particular:
- do not store
S = I + εby default whenεis just Float64 residue - do not build downstream logic that keeps consulting such an
S - do not interpret tiny nonorthogonality at the
1e-12to1e-14level as a real structural feature
What to do instead
Use overlap matrices in this regime only for:
- construction
- validation
- assertions
- or one final cleanup step if the deviation from identity is not small enough
After that, the working representation should simply regard the block as having identity overlap.
This is a coding and design policy, not a user-facing scientific statement.