← f22baf82ea81 · f283b8535697 →
f2818d6c50ce
Colors occurring exactly twice define aligned segments. Measure each segment's Chebyshev span plus one, sort the lengths, and draw left-aligned color-8 bars. Scheduled singleton and 3-cell distractor colors teach that only exact pairs contribute rows.
measurementsortingsymbolic re-encoding
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 (points-of grid color) (sort (find-color grid color) cell<)) (define (color-groups grid) (map (lambda (color) (list color (points-of grid color))) (grid-colors grid 0))) (define (pair-groups grid) (filter (lambda (entry) (= (length (second entry)) 2)) (color-groups grid))) (define lengths (sort (map (lambda (entry) (length (span-cells (first (second entry)) (second (second entry))))) (pair-groups g)) <)) (define w (apply max lengths)) (grid-from-fn (length lengths) w (lambda (r c) (if (< c (list-ref lengths r)) 8 0)))))
Provenance
- Generator
- generators/f2818d6c50ce/generator.py
- Notes and decisions
- generators/f2818d6c50ce/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 46985b7b1b8a22cc239ed7003bd9f4c1eb886406521df43981d9ed7ed7522665
- Rule hash
- 216362042c61
- Sources
- bank:76a45e02cc21
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate f2818d6c50ce --count 1 --seed 20261108 --test 1