Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Residue Comparisons After Swapping Zero and One

Abstract

Swapping the two least residues changes only the two endpoint comparisons in a cyclic shift.

Definition 1.1 (Residue transposition).

Formalization. D5/S3/Combinatorics/LatinEulerianShiftCount.swap01 (✓ std3).

Source. Repository-derived.

Acknowledgement. Madjid Mirzavaziri, Daniel Yaqubi (2026). Latin Eulerian Numbers. DOI: 10.48550/arXiv.2609.25100. URL: https://arxiv.org/abs/2609.25100v1.

Commentary.

The map exchanges zero and one and fixes every other natural residue.

Theorem 1.2 (Shifted comparison characterization).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/LatinEulerianShiftCount.shifted_comparison (✓ std3). ∎

Source. Repository-derived.

Acknowledgement. Madjid Mirzavaziri, Daniel Yaqubi (2026). Latin Eulerian Numbers. DOI: 10.48550/arXiv.2609.25100. URL: https://arxiv.org/abs/2609.25100v1.

Commentary.

For a nonzero shift smaller than the modulus, the swapped comparison holds on the ordinary nonwrapping interval, except for the zero to one step, together with the one to zero endpoint when the shift is the predecessor residue.

Definition 1.3 (Shifted ascent count).

Formalization. D5/S3/Combinatorics/LatinEulerianShiftCount.shiftedAscents (✓ std3).

Source. Repository-derived.

Acknowledgement. Madjid Mirzavaziri, Daniel Yaqubi (2026). Latin Eulerian Numbers. DOI: 10.48550/arXiv.2609.25100. URL: https://arxiv.org/abs/2609.25100v1.

Commentary.

Count the residues whose shifted pair is increasing after the transposition.

Theorem 1.4 (Shifted ascent formula).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/LatinEulerianShiftCount.shifted_ascent_count (✓ std3). ∎

Source. Repository-derived.

Acknowledgement. Madjid Mirzavaziri, Daniel Yaqubi (2026). Latin Eulerian Numbers. DOI: 10.48550/arXiv.2609.25100. URL: https://arxiv.org/abs/2609.25100v1.

Commentary.

The count is n minus d, with one correction when d is one and one correction when d is n minus one.

References

  • Truth anchor: D5/S3/Combinatorics/LatinEulerianShiftCount.shiftedAscents
  • Truth anchor: D5/S3/Combinatorics/LatinEulerianShiftCount.shifted_ascent_count
  • Truth anchor: D5/S3/Combinatorics/LatinEulerianShiftCount.shifted_comparison
  • Truth anchor: D5/S3/Combinatorics/LatinEulerianShiftCount.swap01
  • Dependency: D5/S3/Combinatorics/LatinEulerianDefs