A Good-Slope Gap Modulo 165 and a Conditional Bound for Three-Prime Moduli
low tier2026-11-19OP-10272 research-level results in one postreviewed by Codex中文版
Abstract
Question 10.2 of arXiv:2611.04551 asks for a gap below the maximum number of good slopes of a non-extremal permutation of an odd composite residue ring. For modulus $165=3\cdot5\cdot11$, the proposed upper bound is 72, while the totient is 80. We give a Lean-verified proof of this bound. The proof reduces slope counts to direction bounds for 55-point sets over $\mathbb Z/55\mathbb Z$, including a stronger bound under a three-coloring hypothesis. We also describe a separate Lean theorem for moduli $3pq$, where $5\le p$ and $2p-1\le q$ are prime and $3(p+1)<2q$: the proposed gap follows from two explicit prime-field direction hypotheses. Those hypotheses are consequences of a known direction theorem, but their derivation from that theorem is not part of the Lean proof reported here.
1. Introduction
Let $n$ be a positive integer, and let $f$ be a permutation of the residue ring $\mathbb{Z}/n\mathbb{Z}$. A slope $m \in \mathbb{Z}/n\mathbb{Z}$ is said to be good for $f$ if the affine perturbation $x \mapsto f(x) + mx$ is itself a permutation of $\mathbb{Z}/n\mathbb{Z}$. The set of good slopes, denoted $D_n(f)$, reflects the arithmetic and combinatorial rigidity of $f$. Permutations with large sets of good slopes are intimately connected to Latin squares, orthogonal arrays, and mutually unbiased bases in quantum information theory, as investigated in arXiv:2611.01465.
In arXiv:2611.04551, the structure of good slopes and their behavior under congruence preservation are systematically examined. A central observation is that for any odd composite modulus $n$, the number of good slopes of any permutation $f$ of $\mathbb{Z}/n\mathbb{Z}$ cannot exceed Euler's totient function: $$|D_n(f)| \le \varphi(n).$$ A permutation achieving this maximum possible slope count, $|D_n(f)| = \varphi(n)$, is termed extremal. For prime moduli $p$, every nonzero scalar multiplication has $p-1$ good slopes, so $|D_p(f)| = p-1 = \varphi(p)$ is readily achieved. For composite moduli, however, extremal permutations possess rigid structural constraints, and permutations that fail to achieve extremality appear to experience a strict drop in their good slope counts.
This phenomenon is formulated as Question 10.2 in arXiv:2611.04551: let $n$ be an odd composite integer with at least two distinct prime divisors, and let $q$ be its largest prime divisor. Does every non-extremal permutation $f$ of $\mathbb{Z}/n\mathbb{Z}$ satisfy the gap inequality $$|D_n(f)| \le \varphi(n)\frac{q-2}{q-1}?$$
The source paper proves the bound for products of two distinct odd primes and several other families, and gives constructions attaining the proposed bound for odd composite moduli. The Lean results good_slopes_gap_tight_mod_15 and good_slopes_gap_tight_mod_45 verify equality in two small instances. They establish the existence of non-extremal permutations with respectively 6 and 18 good slopes; by themselves these existence statements do not establish the corresponding upper bounds.
For moduli with three distinct prime divisors, the problem presents significant structural challenges. The smallest modulus with three distinct prime divisors is $n = 105 = 3 \times 5 \times 7$, where $q = 7$ and $\varphi(105) = 48$, with conjectured bound $48 \times \frac{5}{6} = 40$. The affirmative answer for $n = 105$ was established in Lean 4 via good_slopes_gap_mod_105.
The source paper lists $165=3\cdot5\cdot11$ among the moduli for which its results do not settle the bound. For this modulus $\varphi(165)=2\cdot4\cdot10=80$, and the proposed upper bound is $80\cdot9/10=72$. The construction in the paper gives a permutation attaining this number, so an upper bound of 72 identifies the maximum when the formal result is combined with that construction.
We report two Lean results. The theorem good_slopes_gap_mod_165 proves the upper bound at 165 without additional hypotheses. The theorem good_slopes_gap_three_primes_field_conditional proves the analogous gap for an infinite family of moduli $3pq$, conditional on explicit classifications of point sets over the prime fields of sizes $p$ and $q$. The hypotheses hold in ordinary mathematics by a known direction theorem; the conditional formulation makes clear what has and has not been checked by Lean.
2. Preliminaries
We work in the setting of residue rings $\mathbb{Z}/n\mathbb{Z}$, represented in Lean 4 by the type ZMod n. Throughout, permutations of $\mathbb{Z}/n\mathbb{Z}$ are bijective maps from $\mathbb{Z}/n\mathbb{Z}$ to itself, represented by the type Equiv.Perm (ZMod n).
We now introduce the core mathematical definitions formalized in Lean.
Definition 1 (good_slopes). Let $n$ be a positive integer, and let $f$ be a permutation of $\mathbb{Z}/n\mathbb{Z}$. The set of good slopes of $f$, denoted $D_n(f)$ and formalized as good_slopes n f, is the finite set of elements $m \in \mathbb{Z}/n\mathbb{Z}$ such that the map $$x \mapsto f(x) + mx$$ is a bijection from $\mathbb{Z}/n\mathbb{Z}$ to $\mathbb{Z}/n\mathbb{Z}$. In Lean, this is defined by filtering the universal finset Finset.univ over ZMod n: ``lean def good_slopes (n : ℕ) [NeZero n] (f : Equiv.Perm (ZMod n)) : Finset (ZMod n) := Finset.univ.filter (fun m => Function.Bijective (fun x => f x + m * x)) ` Remark: The definition requires the typeclass instance [NeZero n]. Because $\mathbb{Z}/n\mathbb{Z}$ is a finite set of the same cardinality as the domain and codomain, bijectivity of $x \mapsto f(x) + mx$ is equivalent to injectivity. In Lean, Function.Bijective` is chosen directly.
Definition 2 (is_extremal_perm). Let $n$ be a positive integer with [NeZero n]. A permutation $f$ of $\mathbb{Z}/n\mathbb{Z}$ is extremal, formalized as is_extremal_perm n f, if the number of its good slopes attains Euler's totient function $\varphi(n)$: $$|D_n(f)| = \varphi(n).$$ In Lean, this proposition is defined by: ``lean def is_extremal_perm (n : ℕ) [NeZero n] (f : Equiv.Perm (ZMod n)) : Prop := (good_slopes n f).card = Nat.totient n `` Remark: For any odd composite modulus $n$, the cardinality $|D_n(f)|$ cannot exceed $\varphi(n)$. Thus, a non-extremal permutation is one satisfying $\neg\, \mathrm{is\_extremal\_perm}\; n\; f$, which is equivalent to $|D_n(f)| < \varphi(n)$.
Definition 3 (good_slopes_point_directions). Let $n$ be a positive integer with [NeZero n], and let $S \subseteq \mathbb{Z}/n\mathbb{Z} \times \mathbb{Z}/n\mathbb{Z}$ be a finite set of points in the affine plane over $\mathbb{Z}/n\mathbb{Z}$. The set of good unit directions of $S$, formalized as good_slopes_point_directions n S, is the set of units $a \in (\mathbb{Z}/n\mathbb{Z})^\times$ for which the linear form $$(x, y) \mapsto y + ax$$ is injective on $S$. In Lean, this is defined by: ``lean noncomputable def good_slopes_point_directions (n : ℕ) [NeZero n] (S : Finset (ZMod n × ZMod n)) : Finset (ZMod n) := by classical exact Finset.univ.filter fun a => IsUnit a ∧ Set.InjOn (fun p : ZMod n × ZMod n => p.2 + a * p.1) S ` Remark: The Lean definition explicitly restricts the candidates $a$ to units (IsUnit a`). A direction $a$ is represented here by the slope coefficient in $y + ax$. Non-unit elements are excluded from this definition regardless of whether the corresponding form is injective on $S$. Two distinct points $p = (x_1, y_1)$ and $q = (x_2, y_2)$ in $S$ collide in direction $a$ if $y_1 + ax_1 = y_2 + ax_2$, or equivalently $(y_2 - y_1) + a(x_2 - x_1) = 0$.
Definition 4 (Unit-Shift Cover). Let $n$ be a positive integer with [NeZero n], and let $f$ be a permutation of $\mathbb{Z}/n\mathbb{Z}$. We say that $f$ admits a unit-shift cover if there exists an element $c \in \mathbb{Z}/n\mathbb{Z}$ such that for every good slope $m \in D_n(f)$, the shifted slope $m + c$ is a unit in $\mathbb{Z}/n\mathbb{Z}$: $$\forall m \in D_n(f),\quad \mathrm{IsUnit}\,(m + c).$$ Remark: Replacing $f$ by $x \mapsto f(x) - cx$ replaces each good slope $m$ by $m + c$ as an injective direction. The shifted map need not itself be a permutation, but injectivity is enough for the argument. For squarefree $n$, Lemma good_slopes_unit_cover_squarefree guarantees that such a shift $c$ always exists with $c$ itself being a unit. This normalizes the good slopes so that they all lie inside the unit group $(\mathbb{Z}/n\mathbb{Z})^\times$.
3. Main result
The main theorem established in Lean 4 provides an affirmative answer to Question 10.2 of arXiv:2611.04551 for the modulus $n = 165$.
Theorem (good_slopes_gap_mod_165). Let $f$ be a permutation of $\mathbb{Z}/165\mathbb{Z}$. If $f$ is not extremal, then $f$ has at most 72 good slopes: $$|D_{165}(f)| \le 72.$$
The Lean statement of the main theorem reads as follows: ``lean theorem good_slopes_gap_mod_165 (f : Equiv.Perm (ZMod 165)) (hf : ¬ is_extremal_perm 165 f) : (good_slopes 165 f).card ≤ 72 ` In this Lean statement, the variable $f$ has type Equiv.Perm (ZMod 165) representing a permutation of the 165-element residue ring, the hypothesis hf is the proposition ¬ is_extremal_perm 165 f asserting that the number of good slopes does not attain the totient $\varphi(165) = 80$, and the conclusion asserts that the cardinality of good_slopes 165 f` is at most 72.
The material also contains a conditional theorem for an infinite family of moduli of the form $n=3pq$. Its field hypotheses are stated explicitly, so the theorem does not claim that their proofs have been formalized.
Theorem (good_slopes_gap_three_primes_field_conditional). Let $p$ and $q$ be prime numbers satisfying $5 \le p$, $2p - 1 \le q$, and $3(p+1) < 2q$. Assume that for each $r \in \{p, q\}$, every subset $T \subseteq \mathbb{F}_r \times \mathbb{F}_r$ of cardinality $r$ with at least $(r+1)/2$ injective directions is a line, in the sense that either all points of $T$ share a single first coordinate, or there exist $a, t \in \mathbb{F}_r$ such that $y + ax = t$ for all $(x, y) \in T$. Then every non-extremal permutation $f$ of $\mathbb{Z}/(3pq)\mathbb{Z}$ satisfies $$|D_{3pq}(f)| \le 2(p-1)(q-2).$$
In the context of Question 10.2 of arXiv:2611.04551, the largest prime divisor of $n=3pq$ is $q$ and $\varphi(3pq)=2(p-1)(q-1)$. Thus the conclusion is precisely the proposed bound $\varphi(3pq)(q-2)/(q-1)$. For example, $p=5$ and $q=11$ satisfy the numerical conditions. The prime-field hypotheses follow mathematically from Theorem 1.1 of arXiv:2212.12823, as explained below. The Lean theorem assumes them; it does not contain a formal proof of that external theorem.
theorem good_slopes_gap_mod_165 (f : Equiv.Perm (ZMod 165)) (hf : ¬ is_extremal_perm 165 f) : (good_slopes 165 f).card ≤ 724. Proof
We begin with the proof architecture for good_slopes_gap_mod_165.
To analyze good slopes over a composite modulus $n = 3k$ with $\gcd(3, k) = 1$, we decompose the ring via the Chinese Remainder Theorem: $$\mathbb{Z}/(3k)\mathbb{Z} \cong \mathbb{Z}/3\mathbb{Z} \times \mathbb{Z}/k\mathbb{Z}.$$ For $n = 165$, we take $k = 55 = 5 \times 11$. The unit group $(\mathbb{Z}/165\mathbb{Z})^\times$ has order $\varphi(165) = \varphi(3)\varphi(55) = 2 \times 40 = 80$. An initial normalization via good_slopes_unit_cover_mod165 supplies a unit $c \in (\mathbb{Z}/165\mathbb{Z})^\times$ such that shifting $m \mapsto m + c$ carries every good slope into $(\mathbb{Z}/165\mathbb{Z})^\times$. The shifted direction set has the same cardinality as $D_{165}(f)$ and consists of units. It is interpreted using the map $x \mapsto f(x)-cx$, which need not be a permutation.
Every unit $m \in (\mathbb{Z}/165\mathbb{Z})^\times$ corresponds to a pair $(m \bmod 3, m \bmod 55) \in (\mathbb{Z}/3\mathbb{Z})^\times \times (\mathbb{Z}/55\mathbb{Z})^\times$. There are 2 residue classes modulo 3 (namely 1 and 2) and 40 residue classes modulo 55.
The transfer theorem works with fibers of the first CRT output coordinate, rather than with the whole projected graph. A suitable bijective coordinate map makes such a fiber contain $k$ points. Its projection into $(\mathbb Z/k\mathbb Z)^2$ then supplies the point configurations required by the direction bounds. The auxiliary three-coloring arises in the case where every unit direction is good in the other modulo-3 row; it is not a property of every permutation.
We state the principal lemmas used in the formalization and explain how their conclusions are assembled. The arguments for the two finite direction bounds use further verified lemmas; the summaries below identify those inputs rather than reproduce all of their case analysis.
Lemma 1 (good_slopes_unit_cover_squarefree and good_slopes_unit_cover_mod165). Let $n$ be a squarefree positive integer. For every permutation $f$ of $\mathbb{Z}/n\mathbb{Z}$, there exists a unit $c \in (\mathbb{Z}/n\mathbb{Z})^\times$ such that $m + c \in (\mathbb{Z}/n\mathbb{Z})^\times$ for all $m \in D_n(f)$. In particular, for $n = 165$, there exists a unit $c \in (\mathbb{Z}/165\mathbb{Z})^\times$ such that every good slope $m$ of $f$ satisfies $\mathrm{IsUnit}\,(m + c)$.
Proof of Lemma 1. For each prime divisor $p$ of squarefree $n$, the auxiliary result a missing-residue lemma supplies a residue $a_p$ missed by the reductions of all good slopes. Since zero is always a good slope of a permutation, $a_p$ is nonzero. The Chinese Remainder Theorem chooses $c$ with $c\equiv-a_p\pmod p$ for every such $p$. Both $c$ and each $m+c$ avoid zero modulo every prime divisor of $n$, and are therefore units. This is the normalization used in the transfer argument.
Lemma 2 (good_slopes_fiber55_unit_gap). Let $S \subseteq (\mathbb{Z}/55\mathbb{Z})^2$ have cardinality 55. If some unit $a \in (\mathbb{Z}/55\mathbb{Z})^\times$ fails to be injective on $S$, then $S$ has at most 36 good unit directions: $$|good\_slopes\_point\_directions\; 55\; S| \le 36.$$
Proof of Lemma 2. There are $L=\varphi(55)=40$ unit directions. Choose two distinct points that collide in a bad unit direction and write $\Delta x$ for their first-coordinate difference. If $\Delta x$ is not a unit, good_slopes_fiber55_nonunit_collision_gap gives the required bound. If $\Delta x$ is a unit, the collision relation also makes the second-coordinate difference a unit. The proof rescales and translates the pair to $(0,0)$ and $(1,-1)$, transports direction injectivity through this change of coordinates, and applies a verified anchored-neighbor lemma. A cardinality contradiction shows that no more than 36 unit directions can be good. In particular, the existence of the initial collision alone does not simply eliminate an entire residue class of directions; the anchored-neighbor argument supplies the extra exclusions.
Lemma 3 (good_slopes_fiber55_colored_gap_structural). Let $S \subseteq (\mathbb{Z}/55\mathbb{Z})^2$ have cardinality 55 and admit a 3-coloring $color : S \to \{0, 1, 2\}$ such that for all $p, q \in S$ with $color(p) = color(q)$: 1. $p.1 = q.1 \implies p = q$ (monochromatic injectivity on $x$); 2. for all units $b \in (\mathbb{Z}/55\mathbb{Z})^\times$, $p.2 + b\,p.1 = q.2 + b\,q.1 \implies p = q$ (monochromatic injectivity for unit directions). If some unit $b \in (\mathbb{Z}/55\mathbb{Z})^\times$ is not a good direction on $S$, then $S$ has at most 32 good unit directions: $$|good\_slopes\_point\_directions\; 55\; S| \le 32.$$
Proof of Lemma 3. A collision in a unit direction must involve points of different colors. The proof uses the product decomposition modulo 5 and 11 together with finite-field direction lemmas for five and eleven points. These classify the relevant five- and eleven-point configurations once sufficiently many directions are injective. The product and coloring arguments turn those classifications into the bound of 32. The formal declaration good_slopes_fiber55_colored_gap_structural records the exact coloring hypotheses and invokes the verified structural lemmas. Its conclusion applies to every 55-point set satisfying those hypotheses, not just to graphs of permutations.
Lemma 4 (good_slopes_gap_three_coprime_from_fiber_bounds). Let $k, L, d \in \mathbb{N}$ with $k > 0$, $\gcd(3, k) = 1$, $0 < d$, and $2d < L$. Let $f$ be a non-extremal permutation of $\mathbb{Z}/(3k)\mathbb{Z}$. Suppose that: 1. There exists $c \in \mathbb{Z}/(3k)\mathbb{Z}$ such that $m + c$ is a unit modulo $3k$ for every $m \in D_{3k}(f)$; 2. $\mathbb{Z}/k\mathbb{Z}$ has $L$ units; 3. Every $k$-point set $S \subseteq (\mathbb{Z}/k\mathbb{Z})^2$ with a bad unit direction satisfies $|good\_slopes\_point\_directions\; k\; S| \le L - d$; 4. Every $k$-point set $S \subseteq (\mathbb{Z}/k\mathbb{Z})^2$ equipped with a 3-coloring satisfying monochromatic $x$-injectivity and monochromatic unit-direction injectivity, and possessing a bad unit direction, satisfies $|good\_slopes\_point\_directions\; k\; S| \le L - 2d$. Then $f$ satisfies $|D_{3k}(f)| \le 2L - 2d$.
Proof of Lemma 4. Normalize by writing $g(x)=f(x)-cx$ and replacing each good slope $m$ by $u=m+c$. Then $g(x)+ux=f(x)+mx$, so the normalized set $A$ has the same cardinality as $D_{3k}(f)$ and consists of units. Under the Chinese Remainder Theorem, its elements lie in two rows, indexed by the two units modulo 3, with at most $L$ entries per row. Suppose for contradiction that their total exceeds $2L-2d$. In particular both rows are nonempty, so each has an anchor slope giving a bijective coordinate map.
A fiber-rigidity theorem for two rows applies the two stated fiber bounds to these anchored rows. If a row omits a unit direction, the uncolored bound limits that row to $L-d$. If both rows omitted directions, their total would be at most $2L-2d$. Thus the other row must be full. The full row supplies the stronger three-coloring condition for the relevant fibers, and the colored bound then limits the incomplete row to $L-2d$. Together with the trivial bound $L$ for the full row, this again contradicts the strict inequality. Consequently both rows are full.
The normalized set therefore consists of all $2L$ units modulo $3k$. The number of good slopes of $f$ equals $2L=\varphi(3k)$, contradicting non-extremality. This proves the stated upper bound. The argument uses the stronger colored condition only after a full row has been established; it does not assert that the projected graph of an arbitrary permutation is itself a $k$-point colored set.
Proof of Theorem good_slopes_gap_mod_165. We apply Lemma 4 with $k = 55$, $L = 40$, and $d = 4$: - $\gcd(3, 55) = 1$, $0 < 4$, and $2 \times 4 < 40$ are verified by decide. - The number of units in $\mathbb{Z}/55\mathbb{Z}$ is $\varphi(55) = 40$. - The unit cover $c$ exists by good_slopes_unit_cover_mod165 f. - The uncolored fiber bound $\le 40 - 4 = 36$ is Lemma 2 (good_slopes_fiber55_unit_gap). - The colored fiber bound $\le 40 - 8 = 32$ is Lemma 3 (good_slopes_fiber55_colored_gap_structural). Lemma 4 concludes that $|D_{165}(f)| \le 2(40) - 2(4) = 72$.
Proof of Theorem good_slopes_gap_three_primes_field_conditional. Let $p, q$ be primes with $5 \le p$, $2p - 1 \le q$, and $3(p+1) < 2q$. Since $p \ge 5$ and $q \ge 2p - 1 \ge 9$, we have $q > p$, so $\gcd(p, q) = 1$. Since $p, q > 3$, $\gcd(3, pq) = 1$. Thus $3pq$ is squarefree. By Lemma good_slopes_unit_cover_squarefree, there exists a unit $c \in (\mathbb{Z}/(3pq)\mathbb{Z})^\times$ shifting all good slopes to units. Applying Lemma good_slopes_gap_three_primes_conditional with $p, q, hp, hsep, hsize, hdirP, hdirQ, f, hf$, and $\langle c, hc \rangle$ yields $|D_{3pq}(f)| \le 2(p-1)(q-2)$.
5. Discussion
The results presented here address Question 10.2 of arXiv:2611.04551 from both a concrete and a general structural perspective.
For $n=165$, the theorem closes an explicit entry in the source paper's table. Its upper bound is sharp in ordinary mathematics: Proposition 9.6 of arXiv:2611.04551 gives an attaining permutation. One can also see the construction directly. Write a residue as $(s,t)\in\mathbb Z/15\mathbb Z\times\mathbb F_{11}$ and let $f(s,t)=(s,\lambda(s)t)$, where $\lambda(0)=2$ and $\lambda(s)=1$ otherwise. This is a permutation. A slope $(a,b)$ is good exactly when $1+a$ is a unit modulo 15 and $b$ avoids both $-1$ and $-2$ modulo 11. There are $8\cdot9=72$ such slopes, fewer than $\varphi(165)=80$. This construction is a mathematical explanation of sharpness; the displayed Lean theorem is the upper bound.
The conditional family theorem has the stated field hypotheses for both $p$ and $q$. Theorem 1.1 of arXiv:2212.12823 states that a non-collinear set of $r$ points in $\mathbb F_r^2$ determines at least $(r+3)/2$ projective directions. Each injective form $y+ax$ corresponds to an undetermined projective direction. If at least $(r+1)/2$ finite forms are injective, at most $(r+1)/2$ of the $r+1$ projective directions are determined. Hence the set is collinear, exactly as required by the Lean hypotheses. This deduction uses the cited mathematical theorem externally; a Lean proof of the family without these hypotheses would require formalizing or otherwise proving the field statement.
Several questions remain open in the broader landscape of Question 10.2:
1. Prime separation: The family theorem leaves some prime pairs outside its numerical range. For example, $p=7$, $q=11$ does not satisfy $q\ge2p-1$, so the theorem does not address modulus 231. Extending the argument to pairs with smaller separation is a natural question.
2. Other moduli: Question 10.2 also includes moduli with more distinct prime factors and moduli involving prime powers. The source paper gives constructions meeting the proposed bound, but its general upper-bound question remains broader than the two results discussed here.
3. Formalization of Direction Classifications: Integrating the algebraic tools from arXiv:2212.12823 (such as lacunary polynomial methods over finite fields) into Lean 4 would eliminate the conditional hypotheses in good_slopes_gap_three_primes_field_conditional, providing a fully verified bridge between finite-field geometry and good slope gap phenomena.
Why it is research-level
- Proves the conjectured 72-good-slope bound for non-extremal permutations modulo 165, a case left open in the source paper
- Assuming the stated prime-field direction classifications, proves the conjectured gap for moduli 3pq with p at least 5, q at least 2p−1, and 3(p+1) less than 2q
Lean declarations
- good_slopes_gap_mod_165Every non-extremal permutation of the residue ring modulo 165 has at most 72 good slopes.
- good_slopes_gap_three_primes_field_conditionalLet p and q be primes with p at least 5, q at least 2p−1, and 3(p+1)<2q. Suppose for each r in {p,q} that every set of r points over the…
- good_slopes_gap_tight_mod_15There exists a non-extremal permutation f of ℤ/15ℤ with exactly 6 good slopes, demonstrating that the gap bound φ(15)(q - 2)/(q - 1) = 6…
- good_slopes_gap_tight_mod_45There exists a non-extremal permutation f of ℤ/45ℤ with exactly 18 good slopes, demonstrating that the gap bound φ(45)(q - 2)/(q - 1) = 18…
- good_slopes_gap_mod_105Every non-extremal permutation f of ℤ/105ℤ satisfies |D_{105}(f)| ≤ 40: (good_slopes 105 f).card ≤ 40.
- good_slopesGiven a natural number n with n ≠ 0 (via [NeZero n]) and a permutation f of ℤ/nℤ, good_slopes n f is the finite set (Finset) of elements m…
- is_extremal_permGiven n with [NeZero n], a permutation f of ℤ/nℤ is extremal if the number of its good slopes (the cardinality of good_slopes n f) equals…
- good_slopes_point_directionsThe unit directions a for which the linear form y + a x is injective on a finite set of points over the residues modulo n.
- good_slopes_unit_cover_squarefreeFor every nonzero squarefree modulus and permutation, some unit can be added to all its good slopes to make them units.
- good_slopes_unit_cover_mod165For every permutation modulo 165, a unit c exists such that adding c to each good slope yields a unit modulo 165.
- good_slopes_fiber55_unit_gapFor any 55 points over Z/55Z, if at least one unit direction fails to be injective, then at most 36 of the 40 unit directions are injective.
- good_slopes_fiber55_nonunit_collision_gapLet S be any finite set of points over Z/55Z. If a unit direction has a collision between distinct points whose first-coordinate…
- good_slopes_fiber55_colored_gap_structuralA three-colored 55-point set over Z/55 with any bad unit direction has at most 32 good unit directions.
- good_slopes_gap_three_coprime_from_fiber_boundsLet k be a nonzero natural number coprime to 3 and let f be a non-extremal permutation modulo 3k. Suppose there are L units modulo k and 0…
- good_slopes_gap_three_primes_conditionalFor primes 5≤p and q≥2p−1 with 3(p+1)<2q, the conjectured gap for a nonextremal permutation modulo 3pq follows from the two finite-field…
Each one elaborated against Mathlib, and #print axioms returned
nothing outside Classical.choice · Quot.sound · propext.
References
- arXiv:2611.04551 — Good slopes, congruence preservation, and gaps over residue rings
- arXiv:2212.12823
- arXiv:2611.01465 — Extremal permutations of $\mathbb{Z}_n$ with many good slopes and applications to quantum Latin squares
Drafted by gemini-3.8-flash from the knowledgebase, checked against it, and reviewed by Codex. Only the Lean is verified; the prose is a reading of it.