Signed p-adic Residual Encodings of Finite-Domain All-Different Systems with a Sudoku Case Study
Organizations: School of Computing, Australian National University Canberra, Australia
Abstract
We study signed, weighted affine -adic residual objectives as native encodings of finite-domain constraints. For primes that separate the finite alphabet, sufficiently weighted positive unary rows pin each coefficient to its allowed set, while negative rows reward unequal endpoints or clause satisfaction. A coordinatewise domination theorem places every global minimiser in the finite domain; there the loss is, up to an additive constant, the all-different conflict count or the negative number of satisfied CNF clauses. Standard Sudoku provides an -coefficient case study without a one-hot lift. A client-side implementation exposes the generated dataframes, arithmetic, diagnostics, and searches.
Figures & tables
| Term used here | Classical reading | Reference |
|---|---|---|
| finite-domain all-different system | Finite-domain constraint system in which the variables in each designated scope must take pairwise distinct values | Section 1 |
| dataframe; row; synthetic observation | Tabular presentation of signed weighted affine forms; a row contributes . Positive rows are penalties and negative rows are bounded rewards | Definition 1 |
| feature vector ; target | Normal vector and right-hand side defining the affine residual | Definition 1 |
| coefficient vector | Optimisation variable in ; in the Sudoku model its coordinates are cell values | Definition 1 |
| compiler; compilation | Constructive encoding or reduction from a constraint system to a signed residual objective | Theorem 1 |
| coordinatewise domination | Exact-penalty threshold: each pinning weight exceeds the total interaction weight incident on its coordinate | Theorem 1 |
| Row | Target | Signed weight | Role | |||
|---|---|---|---|---|---|---|
| domain well | ||||||
| domain well | ||||||
| domain well | ||||||
| domain well | ||||||
| domain well | ||||||
| domain well |
| Row | Type | Synthetic observation | Role |
|---|---|---|---|
| positive | pin to | ||
| positive | pin to | ||
| positive | pin to | ||
| positive | pin to | ||
| positive | pin to | ||
| positive | pin to |
| Coefficient vector | Proper list-colouring? | |
| yes | ||
| yes | ||
| yes | ||
| no | ||
| no | ||
| no |
| Row | Target | Signed weight | Role | ||
|---|---|---|---|---|---|
| reward | |||||
| reward | |||||
| Boolean well | |||||
| Boolean well | |||||
| Boolean well | |||||
| Boolean well |
| Clauses satisfied | Loss | ||
|---|---|---|---|
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Mihara’s forcing theorem | Signed affine compiler here | |
|---|---|---|
| Base terms | Nonnegative -adic optimisation concentrated near a product of residue sets | Signed affine residuals that are zero or units on the target finite domain |
| Pinning condition | One forcing scale above the base objective’s range on the finite set | Coordinatewise above the absolute incident interaction weight |
| Off-domain control | Concentration plus positive unary forcing | Ultrametric Lipschitz bound for positive and negative interaction rows |
| Finite-domain role | Preserve the base objective’s optima on | Realise equality, inequality, and forbidden-hyperplane indicators exactly |
| Main consequence | Positive linear regression NP-hard for each fixed prime | Compact complement encoding and exact minimum-conflict characterisation |
| Step | Row | Swap (columns) | Swap (digits) | Type | Conflicts (before) | (after) |
|---|---|---|---|---|---|---|
| 1 | 5 | best | 56 | 53 | ||
| 2 | 6 | best | 53 | 49 | ||
| 3 | 2 | best | 49 | 45 | ||
| 4 | 4 | random | 45 | 47 | ||
| 5 | 7 | best | 47 | 40 | ||
| 6 | 4 | best | 40 | 38 |
| Step | Row | Swap (columns) | Conflicts (before) | (after) |
| 1 | 5 | 56 | 56 | |
| 2 | 6 | 56 | 56 | |
| 3 | 2 | 56 | 55 | |
| 4 | 8 | 55 | 51 | |
| 5 | 4 | 51 | 50 | |
| 6 | 4 | 50 | 51 |
| Method | Clues | Puzzles | Solved | Median steps | Median time (s) |
|---|---|---|---|---|---|
| Stepwise | 36 | 6 | 6 | 537.5 | 0.270 |
| Stepwise | 30 | 6 | 6 | 2784 | 1.315 |
| Stepwise | 26 | 6 | 6 | 7040 | 3.990 |
| Zubarev walk | 36 | 6 | 6 | 4533.5 | 2.091 |
| Zubarev walk | 30 | 6 | 6 | 8751.5 | 3.951 |
| Zubarev walk | 26 | 6 | 6 | 9911 | 4.786 |
| Experiment | Setting | Solved | Summary |
|---|---|---|---|
| E1 | Greedy cell-swap on primes, puzzles, random initialisations per puzzle–prime pair ( runs) | Mean lift ; mean steps | |
| E2 greedy | Greedy cell-swap on the strongest E1 primes, again with puzzles and initialisations ( runs) | Mean lift ; mean steps | |
| E2 SA | Simulated annealing on the same runs | Mean lift ; mean steps |
Constraint Satisfaction
Constraint satisfaction studies how to find or optimize assignments that obey interacting rules across discrete and structured problems.
See all 86 papers