Open Rules

Vault

No digit inside the vault appears in its listed neighbours. A stated sum fixes its total.

Parameters

Parameter Meaning Default
cells The marked cells, for example r1c1-r1c2-r2c2. Required.
sum The total the digits or values must add up to. No total imposed.
neighbours The cells counted or compared around the clue. Required. neighbours disjoint from cells.

Maths

Class: with aggregates.

The shared predicates define the notation and every named predicate.

(∀a∈cells: ∀b∈neighbours: D(a)!=D(b)) ∧ (present(sum) → sum_D(cells)=unwrap(sum))

No digit in cells occurs in neighbours. If sum is present, the cell digits sum to it. Repetition inside the vault is otherwise allowed.

Example

---
format: open-rules
title: Vault example
setter: Example
source: ""
case: ""
library: https://rules.sudoku-sleuth.com/
status: read
---

```rules
sudoku 9x9
vault r1c1 neighbours ["r1c2"] sum 1
```

Satisfies the rule: r1c1=1, r1c2=2. The inside digits are absent from the listed neighbours.

Breaks the rule: r1c1=1, r1c2=1. An inside digit also appears in a listed neighbour.