← a3086dea6cff · a36fd3a00941 →

a338acade0b5

Find the two equal-colored nonzero endpoints. They must share a row, share a column, or lie on a 45-degree diagonal. Return one row of cyan 8s whose width is max(|dr|, |dc|) + 1. Any four consecutive default samples contain two vertical examples, so a one-pair holdout cannot leave the column-span-only shortcut consistent with every demo.

counting from geometrylength abstractionsymbolic output

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! (let ((dummy 0)) (define (sign n) (cond ((> n 0) 1) ((< n 0) -1) (else 0))) (define (span-cells a b (include-ends #t)) (let* ((r1 (first a)) (c1 (second a)) (r2 (first b)) (c2 (second b)) (dr (sign (- r2 r1))) (dc (sign (- c2 c1))) (n (max (abs (- r2 r1)) (abs (- c2 c1)))) (cells (for/list ((i (in-range 0 (+ n 1)))) (list (+ r1 (* i dr)) (+ c1 (* i dc)))))) (if include-ends cells (filter (lambda (p) (and (not (equal? p a)) (not (equal? p b)))) cells)))) (define (nonzero-points grid) (sort (map (lambda (cell) (list (first cell) (second cell))) (filter (lambda (cell) (not (= (third cell) 0))) (grid-cells grid))) cell<)) (let* ((pts (nonzero-points g)) (len (length (span-cells (first pts) (second pts))))) (paint-cells (empty-grid 1 len 0) (for/list ((c (in-range len))) (list 0 c)) 8))))

Provenance

Generator
generators/a338acade0b5/generator.py
Notes and decisions
generators/a338acade0b5/notes.md
Review label
reviewed_safe
Generator SHA-256
7ce8cf77ecf3c7c034ac0b5054e6735b54a5a4f3dfeff1e2b49b98118f95e414
Rule hash
5661890ac5fd
Sources
bank:76a45e02cc21
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate a338acade0b5 --count 1 --seed 20261108 --test 1