Skip to content

Commit a1d5b17

Browse files
Independently audit the paid-return error and invoice bridge
1 parent 5e0052c commit a1d5b17

9 files changed

Lines changed: 1210 additions & 0 deletions

File tree

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
# Conditional paid-return, approximation and invoice audit
2+
3+
**Verdict: no gap found in the implication in PR5526 REPAIR.md Sections 2–4,
4+
under the stated invariant-history, unitary-coset and one-field pricing
5+
premises.** This is an independent AI-assisted derivation and exact finite
6+
corroboration. It does not independently establish the actual caller's
7+
observation inventory or grade claims, prove the Clifford Gram theorem anew,
8+
or constitute proof-kernel/human acceptance.
9+
10+
Audited source: Ali Romman's PR5526 at
11+
`45f7de73b168721cdf7ec8c1769b1b594493716a`, retained on canonical main
12+
`5e0052ca0aa3036a3afa8b0438927377c8d97d53`. SOURCES.json binds the exact
13+
documents, declarations and receipts consumed here. DLamdata's PR5547 audits
14+
the earlier core Gram theorem, explicitly excluding this later bridge.
15+
16+
## 1. Fix one width and make the premises explicit
17+
18+
Let V be a complex Hilbert space of dimension d. In the source,
19+
d = 2^(17f). Let H be a finite projective unitary group of h elements,
20+
represented on V, and let A be the linear span of its chosen unitary lifts.
21+
Products may acquire scalar phases: A remains a unital algebra. Assume
22+
dim A = h. Work in the finite-dimensional space of operator rows
23+
Hom(V^b,V), with inner product tr(R* S)/d.
24+
25+
The initial history module M is A-invariant. Each required row t_j has
26+
one unitary target T_j in its own input position j, with zeros elsewhere.
27+
Let F be the frame with bh columns U_g t_j, for g in H and j in 1..b.
28+
The consumed physical-alphabet premise is
29+
30+
||F c - m||^2 >= lambda ||c||^2 for all c and m in M, lambda > 0. (A)
31+
32+
In PR5526, (A) follows from the lower Gram bound on the complete projective
33+
Clifford alphabet and disjoint initial/target coefficient supports, separately
34+
in every independent input column. It is NOT an orthogonality assertion.
35+
The initial support is allowed to have relations among its own coefficients;
36+
choose a representation in that support and apply the full Gram inequality.
37+
The target coefficients are still c because the supports are disjoint.
38+
39+
The source-specific b=104, allowed initial grades {0,1,7}, target grade 9,
40+
left-grade invariance, complete original observations and same-capacity
41+
premises remain inherited. The verifier checks their retained declarations
42+
and source bytes. It does not replay the 5,408 native grade calculations or
43+
establish that no additional machine observation exists.
44+
45+
## 2. Arbitrary paid feedback does not bypass the quotient dimension
46+
47+
Represent each new return b_i by its actual linear map on the original
48+
independent inputs after composing its dependencies on earlier returns.
49+
That map can be arbitrary; it need not lie in the Clifford span, be unitary,
50+
or commute with A. For each completed prefix, available rows are in
51+
52+
M + A b_1 + ... + A b_q.
53+
54+
This follows by induction: ordinary steps are A-actions and scalar linear
55+
combinations; adding a paid row adds its cyclic module. Keep a conceptual
56+
history when a physical row is overwritten or cleared. Each map
57+
A -> A b_i, a -> a b_i, is linear and surjective, so its image has dimension
58+
at most h. Zero divisors can reduce that dimension and do not invalidate
59+
the upper bound. Dependence of b_i on earlier returns does not increase it.
60+
61+
Let Q be orthogonal projection onto M-perp. Taking the infimum in (A)
62+
gives (QF)*QF >= lambda I_(bh). Thus QF has rank bh. If all targets are
63+
returned, A-invariance implies that all their orbit columns are available.
64+
Their projection must fit in N = Q(sum_i A b_i), whose dimension is at most
65+
qh. Consequently bh <= qh and q >= b. No freeness or division-ring
66+
assumption is used. Changing a frozen original paid input would change M
67+
and lies outside this inference.
68+
69+
## 3. The normalization and orbit factor in the error bound
70+
71+
For arbitrary approximate returned rows y_j in the available module, set
72+
e_j=t_j-y_j. Every U_g y_j is available. If P projects onto N, then
73+
74+
sum_(g,j) ||U_g e_j||^2 >= ||(I-P) QF||_HS^2
75+
>= lambda (b-q)_+ h.
76+
77+
For the last inequality, rank(P QF) <= qh, so its kernel has dimension
78+
at least (b-q)h. On an orthonormal basis of this kernel, QF has squared
79+
norm at least lambda per vector. Complete the basis and sum nonnegative
80+
terms. This proves the rank-approximation inequality directly.
81+
82+
Unitary left action makes the left side h sum_j ||e_j||^2. Divide by h
83+
ONCE. If E stacks the b error rows, the chosen row norm gives
84+
85+
d^(-1) ||E||_HS^2 >= lambda (b-q)_+.
86+
87+
Since E maps V^b to V^b, rank(E) <= bd and
88+
||E||_HS^2 <= bd ||E||_op^2. Hence
89+
90+
||E||_op^2 >= lambda (1-q/b)_+.
91+
92+
Restriction to these inputs and selection of these outputs are contractions,
93+
so the complete endpoint has at least this operator norm error. This is one
94+
worst-case vector in a direct sum, not b simultaneous per-field maximizers.
95+
The proof permits q and the linear program to depend on the fixed width.
96+
It excludes nonlinear rounding/branching and free actions outside A.
97+
98+
## 4. Independent exact fixtures, including nonorthogonal supports
99+
100+
The new checker uses standard-library rational dense matrices, not the
101+
source's Clifford/group-code implementation. Its main fixture has V=R^3,
102+
H generated by the cyclic coordinate shift S, and T=diag(1,1,-1).
103+
The six coefficient matrices I,S,S^2,T,ST,S^2T have normalized Gram matrix
104+
105+
[ I_3 I_3/3 ]
106+
[ I_3/3 I_3 ].
107+
108+
Thus its lower eigenvalue is 2/3. Removing the initial H-support gives
109+
relative Gram matrix (8/9) I_3. With b separate inputs, these matrices
110+
repeat block-diagonally. This example deliberately tests a nonzero overlap:
111+
declaring independent supports orthogonal would give the false constant 1.
112+
The sharper relative constant 8/9 is a fixture calculation, not a claimed
113+
improvement to the 17-axis caller.
114+
115+
The checker examines 175 prefixes with b=2 or 3, including 120 arbitrary
116+
rational returns outside the initial-plus-target coefficient span. New
117+
returns include a nonordinary shear of the preceding return. Exact
118+
Gram-Schmidt projection computes the minimum total normalized squared error
119+
over the entire available module. Each prefix satisfies both the quotient
120+
dimension bound and the orbit/error identity. Direct target-return controls
121+
attain (8/9)(b-q); these are enlarged-oracle fixtures, not native suppliers.
122+
123+
A second, orthogonal fixture uses H={I,Z}, T=X and two two-dimensional
124+
inputs. It exhausts all 81 ternary assignments of the four off-diagonal paid
125+
row entries. The exact one-return error distribution is 64 cases at 1,
126+
16 at 3/2, and one at 2. Diagonal entries already lie in the initial module.
127+
Neither finite domain is claimed to enumerate arbitrary paid programs.
128+
129+
Seven semantic controls expose normalization twice, a missing orbit division,
130+
false orthogonality, cached targets, singular targets, discarded retained
131+
history and a noninvariant initial history. In particular, with diagonal
132+
ordinary algebra, one return [P0,P1] supplies the two singular rows [P0,0]
133+
and [0,P1]. This verifies why counting target rows without full cyclic-module
134+
dimension would be invalid. Four in-memory code defects must separately fail
135+
their intended diagnostics, including a dropped rank-one charge and a changed
136+
target credit. All checks use explicit exceptions and also run under -O.
137+
138+
## 5. From source-declared invoice to a loss at every power tariff
139+
140+
The checker parses only the literal P and Tar dictionaries in Dugongue's
141+
retained mixed-thin checker; it does not execute it. Adding 104 rank-one jobs
142+
matches REPAIR-INVOICE.json exactly. Original target credits stay fixed.
143+
For d_r = P_r + 104 [r=1] - Tar_r, it computes ALL integer hinges
144+
K(k)=sum_r d_r min(r,k), k=1..17:
145+
146+
5996, 7134, 7448, 6742, 5838, 4854, 3870, 2900, 1800,
147+
1576, 1352, 1128, 904, 680, 456, 232, 8.
148+
149+
For an increasing concave phi with phi(0)=0, let
150+
s_k=phi(k)-phi(k-1). The exact identity
151+
152+
phi(r) = s_17 min(r,17) + sum_(k=1..16) (s_k-s_(k+1)) min(r,k)
153+
154+
follows by telescoping slopes. Nonnegative coefficients prove the invoice
155+
loss. For phi(r)=r^p, 0<p<=1, s_17>0 and K(17)=8 make it strict.
156+
With 96 returns K(17)=0 and the earlier hinges are positive, so positive
157+
margin is still impossible; q<=95 is necessary. It is not a claim that
158+
every q<=95 is profitable. At q=95 and p=1 the margin is exactly 1, showing
159+
the rank-mass cutoff itself cannot be reduced by this argument.
160+
161+
The reference saving is the SOURCE-BOUND rational
162+
605457647/200000000000, not a lookup of a future selected record. For
163+
p=1-saving, an independent rational series enclosure gives the margin
164+
165+
[18018715749583/500000000000, 2252339468941/62500000000]
166+
= [36.037431499166, 36.037431503056].
167+
168+
It contains the predecessor's finer interval and proves 36 < margin < 37.
169+
Therefore positive margin permits at most 36 added positive-rank returns;
170+
the inherited width-84 lambda=125/126 gives squared operator error at least
171+
2125/3276. The same arithmetic checks the width-72 and q=95/103 bounds.
172+
173+
The enclosure is independent of the existing interval engine. For each
174+
integer rank r<=17, put z=(r-1)/(r+1). Sum 96 terms of
175+
log r = 2 sum_(k>=0) z^(2k+1)/(2k+1). The omitted positive tail is at most
176+
2 z^193 / (193 (1-z^2)). Monotonicity of exp(-x), its alternating
177+
degree-9 lower and degree-8 upper sums for 0<=x<1, and outward rounding on
178+
a 10^-12 grid bound r exp(-saving log r). Sum interval endpoints with the
179+
appropriate signs of the paid/target coefficients. No floating point enters
180+
the acceptance arithmetic. More endpoint digits are not this contribution;
181+
the check independently closes the error-to-budget implication.
182+
183+
## 6. What remains outside this audit
184+
185+
The proof bridge is conditional on the source's complete initial history,
186+
grade invariance and target/capacity model. Literal source-word and all-width
187+
native correctness remain separate, as do the core Clifford Gram theorem,
188+
one-return-per-positive-rank-job pricing contract, precision/storage, new
189+
multi-output suppliers, and the complete multiplication theorem. The
190+
histograms are optimistic source declarations, not a fresh physical recount.
191+
The checker consumes receipts as declarations and does not call them a replay.
192+
193+
Credit: Ali Romman's PR5526 supplies the reviewed theorem and application;
194+
Chris R / Clear1nsight's PR5425/5446 and Ali Romman's PR5449 supply the history
195+
dimension method; Dugongue/PR4948 and Chris R/PR4978 supply the frozen caller
196+
and its prior audit; DLamdata/PR5547 identifies this unaudited bridge. The
197+
existing invoice-comparator lineage, including mightyOil, and zxv's interval
198+
arithmetic retain credit. Projection, dimension, concave-order telescoping,
199+
and log/exponential series are classical methods. No new general lower-bound
200+
theorem or literature-priority claim is made. Prepared for
201+
josecarlosgonzalezroque-design with substantial OpenAI Codex assistance;
202+
Apache-2.0. No subagents or independent human reviewers were used.
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# Independent audit of the paid-return/error/invoice bridge
2+
3+
**No gap found in PR5526 REPAIR.md Sections 2–4, conditional on the declared
4+
initial-history, target-coset and pricing premises.** This audits the later
5+
repair theorem expressly left outside DLamdata's [PR5547](https://github.com/CrocSwap/integer-mult-bounds/pull/5547).
6+
It supplies an independent written derivation, exact rational fixtures and an
7+
independent enclosure of the declared invoice. The theorem and bounds remain
8+
Ali Romman's and the credited predecessors' work.
9+
10+
The [audit](AUDIT.md) checks why arbitrary linear feedback does not bypass
11+
the quotient-dimension bound, why disjoint coefficient support does not mean
12+
orthogonality, and why the orbit multiplicity and payload normalization occur
13+
exactly once. Under the source premises, 104 extra field returns are necessary,
14+
while the frozen reference-tariff margin permits at most 36. The resulting
15+
width-84 squared operator-error floor remains 2125/3276. No new kappa,
16+
native supplier, selected-frontier change or proof-kernel acceptance is claimed.
17+
18+
## Evidence and reproduction
19+
20+
Python 3.12 and the standard library suffice. From the repository root:
21+
22+
```sh
23+
python -B scripts/research_package.py --package research/paid-return-bridge-audit
24+
```
25+
26+
The registered commands run the following in normal and optimized modes:
27+
28+
```sh
29+
python -I -W error -B research/paid-return-bridge-audit/verify.py
30+
python -I -W error -B research/paid-return-bridge-audit/mutations.py
31+
```
32+
33+
They print `PASS_PAID_RETURN_BRIDGE_AUDIT` and
34+
`PASS_PAID_RETURN_BRIDGE_MUTATIONS controls=4`. The complete recomputed
35+
receipt is available with `verify.py --emit`; normal replay compares
36+
[RESULT.json](RESULT.json) without writing it. [VALIDATION.json](VALIDATION.json)
37+
records the actual environment and completed checks.
38+
39+
- 175 exact prefix checks in two/three-input cyclic-unitary fixtures include
40+
120 new returns outside the initial-plus-target coefficient span. The
41+
fixture's relative Gram constant is exactly 8/9, with nonzero initial/target
42+
overlap; direct target returns attain its error bound.
43+
- All 81 ternary one-return cases in a two-field Pauli fixture give the exact
44+
normalized error distribution: 64 at 1, 16 at 3/2, one at 2.
45+
- Seven semantic controls expose changed premises and normalization mistakes.
46+
Four deliberately defective in-memory verifier copies fail their intended
47+
diagnostics in each Python mode. Frozen files are never modified.
48+
- Literal AST extraction binds the invoice to its frozen source dictionaries.
49+
Direct sums check every integer hinge from 1 through 17. A separate rational
50+
log/exponential series gives margin
51+
`[36.037431499166, 36.037431503056]`, containing the source's finer enclosure
52+
and proving the 36-return budget without importing its calculator.
53+
54+
The finite cases corroborate the written general proof; they are not an
55+
exhaustive search of arbitrary programs. The 8/9 fixture constant is not a
56+
new constant for the actual caller. Eight live review inputs have exact Git
57+
blob and SHA256 pins in [SOURCES.json](SOURCES.json). No predecessor executable
58+
is imported or run. The source port list and grade receipts are consumed as
59+
declarations, not relabelled as independently replayed native evidence.
60+
61+
## Scope and coordination
62+
63+
Base: canonical `5e0052ca0aa3036a3afa8b0438927377c8d97d53`, priority revision 7.
64+
PR5526's reviewed source head is `45f7de73b168721cdf7ec8c1769b1b594493716a`.
65+
The selected-source orientation passed; it is metadata validation only.
66+
[TASK.json](TASK.json) retains the exact task card and explains the scope
67+
change from formalization to an independent informal proof audit. The picker
68+
nonce was `0ae98c6c6a57ad53401268db8aa558d4`.
69+
70+
The [prospective claim](https://github.com/CrocSwap/integer-mult-bounds/discussions/5236#discussioncomment-19182242)
71+
followed handoff and live overlap checks. PR5547 covers the core Gram theorem;
72+
PR5549 the one-qubit threshold; PR5531 a different endpoint application. Those
73+
are separate from this conditional repair bridge. Targeted all-state PR
74+
searches, the live canonical discussion and relevant local notes were checked.
75+
Sparse local coverage, arbitrary historical diffs and unpublished work remain
76+
outside the overlap claim; absence of a match is not a novelty certificate.
77+
78+
## Open next questions
79+
80+
Independently bind the complete actual initial history and its 104 target
81+
columns to the literal PR4948/4978 caller, including both mandatory source
82+
clarifications. Start with the pinned observation list and recompute one
83+
affected input column through all nine cuts, then extend coverage explicitly.
84+
The blocker is full caller/observation coverage, which this conditional bridge
85+
and receipt parsing do not supply. That audit could change whether this theorem
86+
applies, even though its abstract implication is sound.
87+
88+
Changed original paid inputs, free observations, target credits, ordinary
89+
alphabets, capacities and multi-output suppliers require new contracts and
90+
complete pricing. No additional fixed-invoice construction search is proposed.
91+
See TASK.json for the structured handoff.
92+
93+
## Credit
94+
95+
Ali Romman supplies PR5526 and PR5449; Chris R / Clear1nsight supplies the
96+
PR5425/5446 history arguments and PR4978 source audit; Dugongue supplies PR4948;
97+
DLamdata supplies PR5547 and its explicit remaining scope. The existing
98+
concave-order comparator, mightyOil and predecessors, zxv's interval engine,
99+
and the full native/stabilizer lineage retain credit. Their source files and
100+
notices are unchanged. Projection, rank, concave order and series bounds are
101+
classical, not new general methods claimed here.
102+
103+
Prepared for josecarlosgonzalezroque-design with substantial OpenAI Codex
104+
assistance; Apache-2.0. No subagents, independent human review or proof
105+
assistant were used. Full native/physical replay, selected cold replay,
106+
precision/stock/tape obligations and supplier admission were not performed.
107+
108+
## Credit
109+
110+
Prepared by josecarlosgonzalezroque-design. Retain predecessor attribution and source-specific notices.
111+
New work is Apache-2.0. Disclose substantial AI assistance in TASK.json.

0 commit comments

Comments
 (0)