You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DONE: exact matrix-ring source-insertion criterion for singular demands
#5269
DONE: exact one-insertion feasibility for singular and nonsingular matrix-ring dirty demands.
Let R=Mat_d(F) for any field F and let k>=2 dirty output rows be available. Every nonzero demand list has a one-source-insertion word. More precisely, a specified insertion coefficient B works if and only if its kernel equals the kernel of the vertically stacked demand matrix. This is an exact algebraic interface statement, not a physical cost or kappa claim.
Contract and sources. Use arbitrary independent rows a_i and a preserved source p in R^w. All elementary block-row additions A_i<-A_i+CA_j, i!=j, and insertions A_i<-A_i+Bp are allowed, with coefficients on the left. Every original dirt column must return. There are no extra rows, clearing or observations. Coefficient production and every row addition remain paid.
The noncommutative unit-demand contract is credited to @petalas's PR #4916 and its pinned source, including Ross Richardson's PR #3121 lineage. Lee-phys's PR #5139 supplies the separate finite-commutative principal-ideal criterion. This result changes the ring to a full matrix ring and allows arbitrary singular demands. PR #5171 is neighboring singular matrix-chain-ring work in a different common-update contract. None of those executables is reused.
Base: canonical main ff3cc58e370d0f678e529246f8c73e8094e18fcf, priority revision 7.
Exact criterion. For desired coefficients Lambda_i in Mat_d(F), form the kd-by-d matrix
S = vertical_stack(Lambda_0,...,Lambda_(k-1)).
Assume S!=0. A word with exactly one nonzero insertion P_i(B), and otherwise only the allowed row additions, exists if and only if
ker(B) = ker(S).
Equivalently, B and S have the same row space. All feasible B have rank(S), not merely rank at least rank(S). The insertion can occur at any specified row. Since the row space of S has dimension at most d, put one of its bases in the rows of a d-by-d B and fill the other rows with zero. Such a B always exists. Nonzero demand therefore has source-insertion minimum one. Zero demand has minimum zero.
Necessity. The source column before the insertion is zero. If C is the product of the later block-row additions, the final source matrix is CE_iB, where E_i embeds one d-row block. C is invertible and E_i is injective. Thus its kernel is exactly ker(B). Equality with S proves the condition. This is a kernel invariant, not an argument that independent scalar entries can be inserted for free.
Sufficiency. Suppose ker(B)=ker(S), and put U=E_iB. The rule Ux -> Sx is well-defined and is an isomorphism from im(U) to im(S). Extend it to an invertible map C on F^(kd). Its determinant can be adjusted to one without changing its action on im(U): compose on the output with a map that is identity on im(S) and scales one complementary basis vector. Such a vector exists because rank(S)<=d<kd. Hence choose C in SL_(kd)(F) with CU=S.
Every scalar elementary transvection between coordinates in different blocks is one allowed block-row addition, with a coefficient matrix having a single nonzero entry. For two different coordinates a,b in the same block, choose a coordinate c in another existing block. The identity
[T_ac(t), T_cb(1)] = T_ab(t)
expresses the required within-block transvection using four allowed additions. The commutator here is XYX^(-1)Y^(-1); t=0 needs no call. There is no extra scratch block.
Scalar transvections generate SL_N(F). One elementary proof is Gaussian elimination with row additions, signed swaps and paired diagonal scalings. A signed swap is w(1), where w(t)=T_12(t) T_21(-t^(-1)) T_12(t); and diag(t,t^(-1))=w(t)w(-1). Thus all the elimination operations are products of transvections. The block gates therefore generate the chosen C. Execute a word for C^(-1), then P_i(B), then the word for C. The dirt returns to identity and the source column is S. This proves the criterion over any field. It does not claim a shortest block word.
A singular-demand warning. In two rows over Mat_2(F), take Lambda_0=E_00 and Lambda_1=E_11. Both demands have rank one, but S has rank two. Every one-insertion coefficient B must therefore be invertible. Choosing B=I works: C consists chronologically of E_10(E_11), then E_01(-E_11). Its conjugated insertion has one source call and four row additions.
More generally, with k=d>=2 and Lambda_i=E_ii, all demands have rank one and every one-insertion coefficient must have rank d. A construction uses C made of E_i0(E_ii) for i>0 followed by E_0i(-E_ii) for i>0. Conjugation costs 4(d-1) row additions plus one insertion. Under uniform complete abstract prices mu per insertion and c per row addition, this construction beats d direct insertions exactly when mu>4c. No physical coefficient-independent price assumption is established here.
Exact verification. The checker below independently enumerates the elementary block-column action and reconstructs full restoring words. Its contexts are two and three rows over Mat_2(F_2), and two rows over Mat_2(F_3). It covers every nonzero demand tuple: 10,910 in total. Thirteen representative insertion row spaces seed the searches. Each demand is checked against a separate row-reduction invariant, then its complete original-dirt/source map is replayed. The singular-projector example rejects a rank-one insertion coefficient by the invariant. No predecessor code is imported.
Save as matrix_ring_insertions.py. Both modes passed on CPython 3.12.13:
Limits and handoff. The theorem requires all matrix coefficients and all ordered block-row additions. It does not apply to a restricted coefficient alphabet, rank-capped insertions, a general noncommutative ring, or a model with only one output row. It gives feasibility and a rank requirement, not the minimum total tariff. No native coefficient emitter, physical source caller, precision/tape invoice, Lean, Docker or selected cold replay was run. An actual caller must price the potentially full-rank B, the block word and its inverse. The next useful question is whether a named singular-demand caller permits this insertion rank below its direct complete bill.
Overlap checks covered 7,091 current main notes, 328 open PRs and 4,533 Discussion records with complete pagination, plus targeted all-state PR searches. Arbitrary diffs and unpublished work remain outside coverage. Prepared by @aliromman with OpenAI Codex assistance. The linear extension and elementary-matrix facts are classical. No external priority, independent human review or proof-kernel review is claimed. New text and code: Apache-2.0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
DONE: exact one-insertion feasibility for singular and nonsingular matrix-ring dirty demands.
Let R=Mat_d(F) for any field F and let k>=2 dirty output rows be available. Every nonzero demand list has a one-source-insertion word. More precisely, a specified insertion coefficient B works if and only if its kernel equals the kernel of the vertically stacked demand matrix. This is an exact algebraic interface statement, not a physical cost or kappa claim.
Contract and sources. Use arbitrary independent rows a_i and a preserved source p in R^w. All elementary block-row additions A_i<-A_i+CA_j, i!=j, and insertions A_i<-A_i+Bp are allowed, with coefficients on the left. Every original dirt column must return. There are no extra rows, clearing or observations. Coefficient production and every row addition remain paid.
The noncommutative unit-demand contract is credited to @petalas's PR #4916 and its pinned source, including Ross Richardson's PR #3121 lineage. Lee-phys's PR #5139 supplies the separate finite-commutative principal-ideal criterion. This result changes the ring to a full matrix ring and allows arbitrary singular demands. PR #5171 is neighboring singular matrix-chain-ring work in a different common-update contract. None of those executables is reused.
Base: canonical main
ff3cc58e370d0f678e529246f8c73e8094e18fcf, priority revision 7.Exact criterion. For desired coefficients Lambda_i in Mat_d(F), form the kd-by-d matrix
Assume S!=0. A word with exactly one nonzero insertion P_i(B), and otherwise only the allowed row additions, exists if and only if
Equivalently, B and S have the same row space. All feasible B have rank(S), not merely rank at least rank(S). The insertion can occur at any specified row. Since the row space of S has dimension at most d, put one of its bases in the rows of a d-by-d B and fill the other rows with zero. Such a B always exists. Nonzero demand therefore has source-insertion minimum one. Zero demand has minimum zero.
Necessity. The source column before the insertion is zero. If C is the product of the later block-row additions, the final source matrix is CE_iB, where E_i embeds one d-row block. C is invertible and E_i is injective. Thus its kernel is exactly ker(B). Equality with S proves the condition. This is a kernel invariant, not an argument that independent scalar entries can be inserted for free.
Sufficiency. Suppose ker(B)=ker(S), and put U=E_iB. The rule Ux -> Sx is well-defined and is an isomorphism from im(U) to im(S). Extend it to an invertible map C on F^(kd). Its determinant can be adjusted to one without changing its action on im(U): compose on the output with a map that is identity on im(S) and scales one complementary basis vector. Such a vector exists because rank(S)<=d<kd. Hence choose C in SL_(kd)(F) with CU=S.
Every scalar elementary transvection between coordinates in different blocks is one allowed block-row addition, with a coefficient matrix having a single nonzero entry. For two different coordinates a,b in the same block, choose a coordinate c in another existing block. The identity
expresses the required within-block transvection using four allowed additions. The commutator here is XYX^(-1)Y^(-1); t=0 needs no call. There is no extra scratch block.
Scalar transvections generate SL_N(F). One elementary proof is Gaussian elimination with row additions, signed swaps and paired diagonal scalings. A signed swap is w(1), where w(t)=T_12(t) T_21(-t^(-1)) T_12(t); and diag(t,t^(-1))=w(t)w(-1). Thus all the elimination operations are products of transvections. The block gates therefore generate the chosen C. Execute a word for C^(-1), then P_i(B), then the word for C. The dirt returns to identity and the source column is S. This proves the criterion over any field. It does not claim a shortest block word.
A singular-demand warning. In two rows over Mat_2(F), take Lambda_0=E_00 and Lambda_1=E_11. Both demands have rank one, but S has rank two. Every one-insertion coefficient B must therefore be invertible. Choosing B=I works: C consists chronologically of E_10(E_11), then E_01(-E_11). Its conjugated insertion has one source call and four row additions.
More generally, with k=d>=2 and Lambda_i=E_ii, all demands have rank one and every one-insertion coefficient must have rank d. A construction uses C made of E_i0(E_ii) for i>0 followed by E_0i(-E_ii) for i>0. Conjugation costs 4(d-1) row additions plus one insertion. Under uniform complete abstract prices mu per insertion and c per row addition, this construction beats d direct insertions exactly when mu>4c. No physical coefficient-independent price assumption is established here.
Exact verification. The checker below independently enumerates the elementary block-column action and reconstructs full restoring words. Its contexts are two and three rows over Mat_2(F_2), and two rows over Mat_2(F_3). It covers every nonzero demand tuple: 10,910 in total. Thirteen representative insertion row spaces seed the searches. Each demand is checked against a separate row-reduction invariant, then its complete original-dirt/source map is replayed. The singular-projector example rejects a rank-one insertion coefficient by the invariant. No predecessor code is imported.
Save as
matrix_ring_insertions.py. Both modes passed on CPython 3.12.13:Expected output:
Limits and handoff. The theorem requires all matrix coefficients and all ordered block-row additions. It does not apply to a restricted coefficient alphabet, rank-capped insertions, a general noncommutative ring, or a model with only one output row. It gives feasibility and a rank requirement, not the minimum total tariff. No native coefficient emitter, physical source caller, precision/tape invoice, Lean, Docker or selected cold replay was run. An actual caller must price the potentially full-rank B, the block word and its inverse. The next useful question is whether a named singular-demand caller permits this insertion rank below its direct complete bill.
Overlap checks covered 7,091 current main notes, 328 open PRs and 4,533 Discussion records with complete pagination, plus targeted all-state PR searches. Arbitrary diffs and unpublished work remain outside coverage. Prepared by @aliromman with OpenAI Codex assistance. The linear extension and elementary-matrix facts are classical. No external priority, independent human review or proof-kernel review is claimed. New text and code: Apache-2.0.
All reactions