Equation (1) · Ordered-pair count
Source: v9.2 PDF, page 2C(d,b;y,k) = #{(u,h) in G_d x G_b : u+h in G_y and u-h in G_k}All coordinates are classes modulo 1 and all four orders are positive integers.
Counting intersections of rational cyclic grids: an application of Smith normal form
मूळ v9.2 लेखातील व्याख्या, सूत्रे, सिद्धतेची मांडणी, उदाहरणे आणि परिशिष्ट A मधील मोजणी येथे इंग्रजीत थेट वाचता व कॉपी करता येते. प्रत्येक समीकरणाला मूळ PDFमधील पानाचा संदर्भ दिला आहे. हा पूरक वाचनमजकूर आहे; लेखाची नवी आवृत्ती किंवा मानवी परीक्षणाचे प्रमाणपत्र नाही.
This is a condensed reading companion, not a full transcript or revised preprint. The source PDF remains unchanged. Definitions, equations, worked examples and the Appendix A summary below are available without JavaScript.
Count ordered pairs from rational cyclic grids whose sum and difference lie on specified target grids, using classical Smith normal form. Inclusion-exclusion handles a union in the first input. Appendix A then counts the input pairs above each specified target of the same weighted map.
Q/Z — Rational numbers modulo integers: two rational coordinates represent the same point when their difference is an integer.
G_n — The unshifted n-point rational cyclic grid. A point t in Q/Z belongs to G_n exactly when n*t=0 in Q/Z.
G_n = {j/n + Z : j is an integer, 0 <= j < n}C(d,b;y,k) — Number of admissible ordered pairs from G_d x G_b; see equation (1).
Q(a,b;y,k;r) — The union count. This function Q is distinct from the symbol Q for rational numbers in Q/Z.
Q(a,b;y,k;r) = #{(u,h) in (G_a union G_r) x G_b : u+h in G_y and u-h in G_k}gcd — Positive greatest common divisor; signs of entries do not affect the gcd.
lcm — Positive least common multiple.
Z/nZ — The additive group of integer residue classes modulo n.
#S or |S| — The number of elements of a finite set S.
kernel(f) — The input elements mapped to zero by the group homomorphism f.
image(f) — The set of output elements reached by f.
Abar — The square-domain map given by the integer matrix A reduced modulo L, not the rectangular-domain map phi.
Equation numbers refer to the PDF. In the selectable ASCII text, * means multiplication, ^T denotes a column transpose and |S| denotes finite cardinality.
C(d,b;y,k) = #{(u,h) in G_d x G_b : u+h in G_y and u-h in G_k}All coordinates are classes modulo 1 and all four orders are positive integers.
L = lcm(d,b);
alpha = L/d;
beta = L/b;
A = [[y*alpha, y*beta], [k*alpha, -k*beta]]L is a common denominator; the original input still has d*b elements, not L*L.
s1 = gcd(y*alpha, y*beta, k*alpha, k*beta);
s2 = (2*y*k*alpha*beta)/s1;
J_L(s) = L/gcd(L,s)s1 and s2 are positive Smith invariant factors of A, with s1 dividing s2. Each J_L(s) is an integer.
C(d,b;y,k) = (d*b)/(J_L(s1)*J_L(s2))
= ((d*b)/(L*L))*gcd(L,s1)*gcd(L,s2)Both complete expressions in equation (4) give the same exact integer count. The isolated factor (d*b)/(L*L) in the second expression may be fractional. No floor or rounding operation is used.
y*(alpha*i + beta*j) == 0 (mod L);
k*(alpha*i - beta*j) == 0 (mod L)u=i/d+Z and h=j/b+Z, where i is modulo d and j is modulo b. In denominator L the points are alpha*i/L and beta*j/L. The symbol == here denotes congruence.
image(phi) = image(Abar)phi: Z/dZ x Z/bZ -> (Z/LZ)^2; phi(i,j) = A*(i,j)^T modulo LAbar: (Z/LZ)^2 -> (Z/LZ)^2; Abar(x,z) = A*(x,z)^T modulo LThe domains differ. Column-period reduction proves equality of their images; this does not assert that a unimodular change of coordinates preserves the rectangular input domain.
|kernel(Abar)| = ((L*L)/(d*b))*|kernel(phi)|tau: (Z/LZ)^2 -> Z/dZ x Z/bZ; tau(x,z) = (x modulo d, z modulo b)Abar = phi composed with tauEvery fiber of tau has (L/d)*(L/b) = (L*L)/(d*b) elements.tau is well defined and surjective because d and b divide L. The kernel of Abar is the inverse image under tau of the kernel of phi.
Q(a,b;y,k;r) = C(a,b;y,k) + C(r,b;y,k) - C(gcd(a,r),b;y,k)Each occurrence of C uses its own L, alpha, beta, s1 and s2. The grid identity G_a intersect G_r = G_gcd(a,r) determines the subtracted intersection.
A condensed restatement of the proof. The rectangular input domain and the auxiliary square domain must be distinguished.
Represent u uniquely by i/d with 0<=i<d and h uniquely by j/b with 0<=j<b, modulo 1. Membership t in G_n is equivalent to n*t being an integer. With L=lcm(d,b), multiplication of the two membership conditions by L gives exactly equation (5). Thus the admissible pairs correspond bijectively to kernel(phi).
PDF pages 2, 3
Multiplying the first column of A by d gives (y*L,k*L)^T, and multiplying the second column by b gives (y*L,-k*L)^T. Both vanish modulo L. Changing i by d or j by b therefore leaves A*(i,j)^T modulo L unchanged. This proves that phi on Z/dZ x Z/bZ is well defined. It is a group homomorphism because multiplication by A respects addition.
PDF pages 3
Every rectangular-domain output is a square-domain output because representatives 0<=i<d and 0<=j<b are also available modulo L. Conversely, for any square-domain input (x,z), reduce x modulo d and z modulo b. The column periods just proved ensure that this reduction does not change the output modulo L. The two maps consequently have the same image, as in equation (6).
PDF pages 3
The determinant is -2*y*k*alpha*beta, which is nonzero for the positive orders in the statement. For a full-rank 2-by-2 integer matrix, Smith normal form gives unimodular integer matrices U,V with U*A*V=diag(s1,s2), where s1 is the gcd of the entries and s1*s2=abs(det(A)). These facts give equation (3). Since every entry is divisible by s1, the determinant is divisible by s1*s1; hence s2 is an integer and s1 divides s2.
PDF pages 2, 3
Unimodular U and V have integer inverses, so their reductions modulo L are bijections. They preserve the image cardinality of the square-domain map. For scalar multiplication by s on Z/LZ, set g=gcd(L,s), L=g*Lprime and s=g*sprime. Since gcd(Lprime,sprime)=1, L divides s*x exactly when Lprime divides x. There are g such residue classes modulo L, so the scalar kernel has g elements and the scalar image has L/g=J_L(s) elements. The two diagonal coordinates act independently, giving |image(Abar)|=J_L(s1)*J_L(s2).
PDF pages 3
The domain of phi has d*b elements. The finite-group first isomorphism theorem gives |kernel(phi)|*|image(phi)|=d*b. Combining image equality with the diagonal image size yields C(d,b;y,k)=(d*b)/(J_L(s1)*J_L(s2)), and substitution of J_L gives the second expression in equation (4). This group identity establishes exact integrality of the complete count.
PDF pages 3
Because d and b divide L, the reduction map tau in equation (7) is well defined and onto. Each residue modulo d has L/d lifts modulo L, and each residue modulo b has L/b lifts, so each fiber has L*L/(d*b) elements. The column-period calculation shows Abar=phi composed with tau. Thus kernel(Abar) is a union of exactly |kernel(phi)| fibers, proving equation (7). Smith normal form gives the square-domain kernel size gcd(L,s1)*gcd(L,s2). Dividing that count by the fiber size gives equation (4), not the unnormalized square-domain kernel count.
PDF pages 3, 4
Let g=gcd(a,r). A class t lies in both G_a and G_r exactly when a*t=0 and r*t=0 in Q/Z. Bezout's identity gives integers c,e with c*a+e*r=g, so both equalities imply g*t=0. Conversely, g*t=0 implies both equalities since g divides a and r. Hence G_a intersect G_r=G_g. The intersection of the two admissible ordered-pair sets therefore has size C(g,b;y,k). Inclusion-exclusion gives equation (8). When a=r the count reduces to one grid. When a divides r, G_a is contained in G_r and the formula reduces to C(r,b;y,k); the analogous statement holds when r divides a. G_1={0}, so unit orders are included.
PDF pages 4
These are the source PDF examples, not additional scientific runs.
(d,b;y,k)=(6,4;3,2)
L=12; alpha=2; beta=3; A=[[6, 9], [4, -6]]
(s1,s2)=(1,72); (J_L(s1),J_L(s2))=(12,1)
C(6,4;3,2)=24/(12*1)=2; equivalently, square kernel 12 divided by fiber size 6 gives 2.
Input size=24; image size=12
Square-kernel size=12; fiber size=6Admissible pairs: (0, 0), (1/2, 1/2)These are all admissible ordered pairs. Replacing the rectangular input by the entire square-domain kernel without the fiber normalization would give the wrong count.
(d,b;y,k)=(6,6;3,3)
L=6; alpha=1; beta=1; A=[[3, 3], [3, -3]]
(s1,s2)=(3,6); (J_L(s1),J_L(s2))=(2,1)
C(6,6;3,3)=36/(2*1)=18.
Input size=36; image size=2
Square-kernel size=18; fiber size=1Writing u=i/6 and h=j/6, both conditions require i+j and i-j to be even. Equivalently i and j have the same parity. There are three even and three odd residues modulo 6, giving 3*3+3*3=18. Division by 2 cannot be performed freely in a congruence with an even modulus.
a=4; r=6; b=4; y=3; k=6; gcd(a,r)=2| d | L | (alpha,beta) | (s1,s2) | (J_L(s1),J_L(s2)) | C(d,4;3,6) |
|---|---|---|---|---|---|
| 4 | 4 | (1,1) | (3,12) | (4,1) | 4 |
| 6 | 12 | (2,3) | (3,72) | (4,1) | 6 |
| 2 | 4 | (2,1) | (3,24) | (4,1) | 2 |
Q(4,4;3,6;6)=C(4,4;3,6)+C(6,4;3,6)-C(2,4;3,6)=4+6-2=8.All eight admissible pairs, modulo 1:
(0, 0), (1/4, 3/4), (1/2, 1/2), (3/4, 1/4), (1/3, 0), (2/3, 0), (1/6, 1/2), (5/6, 1/2)Shared pairs subtracted once: (0, 0), (1/2, 1/2).
The two shared pairs are included in each of the first two counts and are subtracted once. Every pair in the final list is counted once. Rational coordinates in this companion are exact strings, not decimal approximations.
These are condensed descriptions of the public Appendix A. Its displayed formulas have no equation numbers in the source PDF. All orders remain positive integers, grids remain unshifted, and coordinates are in Q/Z.
Source: v9.2 PDF, page 6| Target class | N(z) | Number of targets |
|---|---|---|
| T outside (I_a union I_r) | 0 | M*M-A_a-A_r+A_g |
| I_a outside I_r | c_a | A_a-A_g |
| I_r outside I_a | c_r | A_r-A_g |
| I_g = I_a intersect I_r | c_a+c_r-c_g | A_g |
A class may be empty, and different classes can have the same numerical fiber size. At the zero target the final row is equation (8).
sum of target-class sizes = M*M
c_a*A_a + c_r*A_r - c_g*A_g = (a+r-g)*bThe first identity counts every target in T. The weighted identity counts every distinct pair of D_a union D_r once.
c_d = gcd(d*b, d*y, d*k, b*y, b*k, 2*y*k)
t = gcd(b,y,k); H = gcd(b*y,b*k,2*y*k)/t
c_d = t*gcd(d,H)This formula holds for every positive integer d with b,y,k fixed. The paper obtains it from the gcd of the two-row minors of a rank-two integer matrix. The same t and H can be used for d=a,r,g.
For z=(x,w) in T, z is in I_d exactly when:
A_d*x = 0; A_d*w = 0;
((b*y)/c_d)*w - ((b*k)/c_d)*x = 0;
((d*y)/c_d)*w + ((d*k)/c_d)*x = 0 in Q/Z.Every coefficient shown is an integer. Apply the conditions for d=a and d=r to the same target coordinates x,w; their truth values choose the row of the table.
m=a/g; n=r/g; u0=c_a/c_g; v0=c_r/c_g
Four distinct values of N(z), including zero, occur exactly when
1 < u0 < m and 1 < v0 < n.The ratios u0 and v0 divide the coprime integers m and n, respectively. The strict inequalities ensure that both single-branch target classes occur and that the common fiber differs from both branch fibers.
If four distinct fiber sizes occur, |D_a union D_r|=(a+r-g)*b >= 12.
Exactly 12 input pairs with four distinct fiber sizes occur if and only if
b=1; {a,r}={4,9}; gcd(36,y,k)=6.This is the minimum and the equality characterization stated in Appendix A under the positive-integer, unshifted-grid assumptions. It concerns the union of ordered-pair domains, not the number of targets.
D_a intersect D_r=D_g, so I_g lies in both images. The quotient (I_a intersect I_r)/I_g has order dividing both a/g and r/g. Those integers are coprime, so the quotient is trivial and I_a intersect I_r=I_g.
Each nonempty fiber over D_d is a coset of K_d with c_d members. At a common target, the two fibers intersect in the D_g fiber, which has c_g members. Inclusion-exclusion gives c_a+c_r-c_g at common targets; subtracting image sizes gives the numbers of targets in the other rows.
Consider the torus homomorphism with rows (d,0),(0,b),(y,y),(k,-k). Its kernel is the required single-grid pair set. Smith normal form gives the kernel size as the gcd of its two-row minors, yielding the six-term gcd. Factoring t=gcd(b,y,k) gives c_d=t*gcd(d,H).
Lift z=(x,w) to integer coordinates (M*x,M*w). The lattice generated by (M,0),(0,M),(M/d)*(y,k),(M/b)*(y,-k) represents I_d modulo M. Adjoining the lifted target preserves this lattice exactly when its index, given by the gcd of two-column minors, is unchanged. This yields the four displayed membership conditions.
Kernel quotients give u0 dividing m and v0 dividing n. The two branch-only target classes occur when m/u0 and n/v0 exceed one. Distinguishing their fiber sizes from the common fiber also requires u0,v0>1. Coprimality makes the two branch sizes different; adding a target from each branch gives a target outside both images. Thus m and n must be coprime composite numbers, at least 4 and 9, and g*b*(m+n-1)>=12.
Equality at twelve forces g=b=1 and {a,r}={4,9}. With b=1, c_d=gcd(d,y,k). Four sizes then require c_4=2 and c_9=3, equivalent to gcd(36,y,k)=6. The converse conditions produce the strict inequalities and twelve input pairs.
(a,r,b,y,k)=(4,9,1,6,6); M=36
Target counts by table row: 1292, 1, 2, 1
Corresponding fiber sizes: 0, 2, 3, 4The images are diagonal copies of G_2 and G_3, sharing only zero. The target (1/3,1/3) has three preimages; (1/3,2/3) has none.
Keep (a,r,b)=(4,9,1) and target z=(1/3,2/3).
At (y,k)=(6,6): N(z)=0.
At (y,k)=(6,12): N(z)=3, from (j/9,0) with j=2,5,8.The source uses these two choices to show that the count at a fixed target can depend on the weights even when the minimum domain size is unchanged.
(a,r,b,y,k)=(4,6,4,3,6); T=G_12 x G_12
A_a=A_r=A_g=4
Four reachable targets each have eight preimages; 140 targets have none.This is the Appendix A extension of the main-text union example. Its zero-target count is the original Q=8 calculation.
The formulas and written proof arguments above are attributed to Appendix A of the public preprint. No new numerical examples were computed and no independent human peer review or proof-assistant verification is asserted.
An exposition and application of established Smith normal form and congruence-counting methods, with explicit rational-grid notation, rectangular-domain normalization and inclusion-exclusion examples. No new general congruence-counting theorem or priority for the specialization is claimed.
The v9.2 preprint discloses ChatGPT assistance with the base exposition, early assistance from Claude with historically unresolved specifics, and Codex help in manuscript preparation. Appendix A and the revision were drafted and inspected algebraically with ChatGPT/Codex assistance. The author recorded reading Appendix A on 7 November 2026. This condensed companion is also AI-assisted.
Independent human peer review and proof-assistant kernel verification are not claimed. This companion is a reading aid, not evidence of either.
No research code, simulations, finite enumeration or proof checker was run to prepare this website update. The source PDF, its public metadata and its written arguments were read. The historical v9.1 Human Review Brief concerns earlier work; it is not validation of the new Appendix A. Written source arguments are summarized here without claiming independent mathematical certification.
A useful mathematical review identifies the source version, page and equation, then supplies the precise inference, missing assumption or counterexample under examination.
Historical v9.1 review brief · Contact for mathematical feedback
Classical common-modulus congruence solution counting. The rational-grid notation and fiber normalization are the preprint's explicit specialization, not notation attributed to this source.
Smith normal form, quotient interpretation and determinantal-divisor facts.
Walke, Rushikesh Murlidhar. (2026). Counting intersections of rational cyclic grids: an application of Smith normal form (Version 9.2) [Preprint]. Zenodo. DOI: 10.5281/zenodo.24035602.
This DOI identifies the source preprint, not this condensed reading companion. The preprint is AI-assisted and has not been independently peer-reviewed.
Version-family concept DOI: 10.5281/zenodo.23184982.
Counting intersections of rational cyclic grids: an application of Smith normal form
Rushikesh Murlidhar Walke · v9.2 · 7 November 2026 · 8 pages
Original equation numbers (1)–(8) and PDF page references below refer to v9.2. Appendix A displays are unnumbered in the paper; the website gives them descriptive headings only. Explanations are condensed restatements, not a full transcript or independent proof certification. Read the original PDF together with the companion.
SHA-256 of the unchanged PDF:
84f3f58cfb618ce17b641c96fa9767eb7febe982fb55a3761d2a535078309e33
Earlier PDF and readable TXT/JSON companions are retained unchanged. Their version-specific page references and fingerprint refer to v9.1, not the current v9.2 source.