← a1b1c1f9b042 · a20ecf84f041 →
a1ece4864521
Infer a 5x5 0/8 lattice, then expand anomalies into below-right zero masks.
parametric family
Generated by the released generator before publication; every output was computed by its Racket reference rule. White outlines mark the cells the rule changed. Lesson check:
refuted: a demonstration contradicts the rival. survived_all: it fits every demonstration and also gives the intended answer, so it cannot mislead here. ambiguous: it fits every demonstration but answers the query differently. Names are as declared by the generator; a declared shortcut is not guaranteed to fit the original pairs (see the paper’s Limitations).
Original task pairs
From the source task; the reference rule must reproduce them.
Reference rule (Racket)
(rule! (lambda (g)
(let* ((h (rows g))
(w (cols g))
(deltas (list -30 -25 -20 -15 -10 -5 0 5 10 15 20 25 30))
(positions (flatmap (lambda (r)
(map (lambda (c) (list r c)) (range 0 w)))
(range 0 h))))
(define (same-mod5? a b) (member? (- a b) deltas))
(define (class-cells r c)
(filter (lambda (p) (and (same-mod5? (fst p) r) (same-mod5? (snd p) c)))
positions))
(define (regular? p)
(let* ((v (at g (fst p) (snd p)))) (or (zero? v) (= v 8))))
(define (clean-val r c)
(let* ((regulars (filter regular? (class-cells r c)))
(c0 (count-if (lambda (p) (zero? (at g (fst p) (snd p)))) regulars))
(c8 (count-if (lambda (p) (= (at g (fst p) (snd p)) 8)) regulars))
(first-reg (at g (fst (first regulars)) (snd (first regulars)))))
(cond ((> c8 c0) 8) ((> c0 c8) 0) (else first-reg))))
(let* ((clean (grid-from-fn h w clean-val))
(anoms (filter (lambda (p)
(!= (third p) (clean-val (first p) (second p))))
(grid-cells g))))
(define (fill-color a)
(if (and (!= (third a) 0) (!= (third a) 8)) (third a) 8))
(define (fill-cells a)
(let* ((ar (first a))
(ac (second a)))
(filter (lambda (p) (zero? (clean-val (fst p) (snd p))))
(flatmap (lambda (r)
(map (lambda (c) (list r c))
(range (+ ac 1) (min (+ ac 5) w))))
(range (+ ar 1) (min (+ ar 5) h))))))
(reduce (lambda (acc a) (paint-cells acc (fill-cells a) (fill-color a)))
clean
anoms)))))Provenance
- Generator
- generators/a1ece4864521/generator.py
- Notes and decisions
- generators/a1ece4864521/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 4487ec85b1897e0f6b8bcd5a6328e05d90537197e4d8a0c8a61b54284df085e5
- Rule hash
- f2d6ad878d59
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate a1ece4864521 --count 1 --seed 20261108 --test 1