HV56 · PREPRINT v9.2 · READING COMPANION

The mathematics,
ready to read.

Counting intersections of rational cyclic grids: an application of Smith normal form

Not peer-reviewedAI-assisted condensed companion · 17 November 2026

मूळ 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.

1. The question and its assumptions

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.

  • Every grid order d, b, y, k, a and r appearing in a formula is a positive integer. Orders equal to 1 are permitted.
  • G_n is an unshifted finite subgroup of the rational circle Q/Z. Addition and subtraction ignore whole turns, that is, are taken modulo 1.
  • The count is of ordered pairs (u,h), with the first and second coordinates restricted to their specified input grids. It is not a count of distinct sums, distinct differences or unordered pairs.
  • The basic count uses u in G_d and h in G_b, with both conditions u+h in G_y and u-h in G_k imposed simultaneously.
  • The orders y and k are arbitrary positive integers; neither is required to divide L.
  • The union variant replaces only the first input grid by G_a union G_r and counts each admissible ordered pair once.
  • Zero, negative and nonintegral grid orders, and shifted grids, are outside the stated definitions.

Notation

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.

2. Equations (1)–(8)

Equation numbers refer to the PDF. In the selectable ASCII text, * means multiplication, ^T denotes a column transpose and |S| denotes finite cardinality.

Equation (1) · Ordered-pair count

Source: v9.2 PDF, page 2
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.

Equation (2) · Common denominator and matrix

Source: v9.2 PDF, page 2
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.

Equation (3) · Smith invariant factors and scalar image size

Source: v9.2 PDF, page 2
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.

Equation (4) · The count

Source: v9.2 PDF, page 3
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.

Equation (5) · Membership as congruences

Source: v9.2 PDF, page 3
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.

Equation (6) · Equality of the two images

Source: v9.2 PDF, page 3
image(phi) = image(Abar)
phi: Z/dZ x Z/bZ -> (Z/LZ)^2; phi(i,j) = A*(i,j)^T modulo L
Abar: (Z/LZ)^2 -> (Z/LZ)^2; Abar(x,z) = A*(x,z)^T modulo L

The 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.

Equation (7) · Square-kernel normalization

Source: v9.2 PDF, page 4
|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 tau
Every 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.

Equation (8) · Union count

Source: v9.2 PDF, page 4
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.

3. Why the count follows

A condensed restatement of the proof. The rectangular input domain and the auxiliary square domain must be distinguished.

  1. Translate membership without changing the inputs

    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

  2. Verify the rectangular-domain homomorphism

    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

  3. Compare images before using Smith normal form

    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

  4. Identify the Smith invariant factors

    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

  5. Count the square-domain image

    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

  6. Recover the required count and its integrality

    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

  7. Check the alternative fiber normalization

    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

  8. Justify inclusion-exclusion for a union

    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

4. The original worked examples

These are the source PDF examples, not additional scientific runs.

Unequal denominators

Source: v9.2 PDF, page 4
(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=6
Admissible 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.

Parity on an even grid

Source: v9.2 PDF, page 5
(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=1

Writing 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 union with a shared grid

Source: v9.2 PDF, page 5
a=4; r=6; b=4; y=3; k=6; gcd(a,r)=2
PDF page 5. Here b=4, y=3, k=6 in every row.
dL(alpha,beta)(s1,s2)(J_L(s1),J_L(s2))C(d,4;3,6)
44(1,1)(3,12)(4,1)4
612(2,3)(3,72)(4,1)6
24(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.

5. Reading the formula accurately

6. Appendix A: count the pairs above each target

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
  • Let a,r,b,y,k be positive integers; g=gcd(a,r), M=lcm(a,r,b), and T=G_M x G_M.
  • Use the same weighted map F(u,h)=(y*(u+h),k*(u-h)) on both input grids, with all coordinates modulo one.
  • For d in {a,r,g}, put D_d=G_d x G_b, I_d=F(D_d), K_d=kernel(F restricted to D_d), c_d=C(d,b;y,k), and A_d=|I_d|=d*b/c_d.
  • For z in T, N(z) counts the distinct input pairs of D_a union D_r mapped to z. A_d denotes an image size; it is not the matrix A from equation (2).
v9.2 PDF page 6. Each input pair is counted once.
Target classN(z)Number of targets
T outside (I_a union I_r)0M*M-A_a-A_r+A_g
I_a outside I_rc_aA_a-A_g
I_r outside I_ac_rA_r-A_g
I_g = I_a intersect I_rc_a+c_r-c_gA_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).

Account for every target and input pair

Source: v9.2 PDF, page 6
sum of target-class sizes = M*M
c_a*A_a + c_r*A_r - c_g*A_g = (a+r-g)*b

The first identity counts every target in T. The weighted identity counts every distinct pair of D_a union D_r once.

An equivalent short kernel formula

Source: v9.2 PDF, page 7
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.

Place a target in the fiber table

Source: v9.2 PDF, page 7
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.

When four different fiber sizes occur

Source: v9.2 PDF, page 7
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.

The minimum number of distinct input pairs

Source: v9.2 PDF, page 8
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.

The written argument, condensed

  1. Identify the shared image

    Source: v9.2 PDF, page 6

    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.

  2. Count fibers by kernel cosets

    Source: v9.2 PDF, page 6

    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.

  3. Evaluate the kernel with minors

    Source: v9.2 PDF, page 7

    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).

  4. Test membership without changing target coordinates

    Source: v9.2 PDF, page 7

    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.

  5. Distinguish four sizes and derive the minimum

    Source: v9.2 PDF, page 7

    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.

  6. Characterize equality

    Source: v9.2 PDF, page 8

    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.

Examples reported in Appendix A

Twelve input pairs attain the bound

Source: v9.2 PDF, page 8
(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, 4

The 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.

The specified target and weights matter

Source: v9.2 PDF, page 8
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.

Extend the original union example to every target

Source: v9.2 PDF, page 8
(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.

7. Scope, assistance and review status

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

8. Sources and document identity

  1. A. T. Butson and B. M. Stewart. Systems of Linear Congruences. Canadian Journal of Mathematics 7 (1955), 358-368. Section 5, printed pages 360-361.

    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.

  2. Richard P. Stanley. Smith Normal Form in Combinatorics. arXiv:1602.00166, version 2 (2016). Theorems 2.3-2.4.

    Smith normal form, quotient interpretation and determinantal-divisor facts.

Cite the source preprint

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.

Download current v9.2 BibTeX

Version-family concept DOI: 10.5281/zenodo.23184982.

Check the source version and PDF fingerprint

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

Previous version: v9.1 (6 October 2026)

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.

Read or save another format