Repository navigation
Evaluate native tree norms as real Hermitian forms - #20
Open
huashengshao wants to merge 1 commit into
Open
huashengshao wants to merge 1 commit into
huashengshao wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A physical transverse-boosted gluon point can acquire a tiny imaginary residual when the identity norm is evaluated as an ordered complex Gram sum. A consumer with no justified error bound correctly rejects that result. This change constructs the real Hermitian quadratic form before numerical evaluation, instead of dropping a computed imaginary part.
Preparation verifies the exact directed Gram matrix is Hermitian, then lowers it to adjacent real/imaginary amplitude components using the existing coefficient evaluator. Full complex amplitudes and their phases remain unchanged. The runtime preserves the original scalar carrier and each Float component's tracked precision, and still accepts legacy norm instructions with one complex input per coefficient. Scalar saved norm programs remain compatible. No positivity clipping, precision padding or error bound is added.
The synthetic regression compares a complex Hermitian Gram matrix and rational complex vector against an independent exact directed double sum, including an imaginary off-diagonal entry. Non-Hermitian matrices fail before lowering. Existing physical quark/gluon tests now demand exactly real norms at original and boosted points. All 83 native unit tests pass on the standalone pinned dependency family (9cdc2949) and the ROULETTE consumer family (e93c3c73), with Python and external compilers absent from PATH. The consumer bridge's 10 checks also pass, including the previously rejected boosted gluon point. Independent source review approved the Hermitian lowering and precision handling.
Stacked on codex/native-tree-parameters at 0025a0d (PR18). This leaves the native amplitude-generation and directed correlation paths unchanged.