← 953db766893d · 95524d104174 →

954070a7d7ce

One or two separated 9-frames with paired axis markers; repeated colors require frame-local crosses.

frame-local reasoningmarker interpretationsame-size transform

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 (e8-cell<? a b) (or (< (first a) (first b)) (and (= (first a) (first b)) (< (second a) (second b))))) (define (e8-rect-border? obj) (let* ((bb (obj-bbox obj)) (r1 (first bb)) (c1 (second bb)) (r2 (third bb)) (c2 (fourth bb)) (border (filter (lambda (p) (or (= (first p) r1) (= (first p) r2) (= (second p) c1) (= (second p) c2))) (positions-in-rect r1 c1 r2 c2)))) (equal? (sort (obj-cells obj) e8-cell<?) (sort border e8-cell<?)))) (define (e8b-list< a b) (cond ((empty? a) #f) ((< (first a) (first b)) #t) ((> (first a) (first b)) #f) (else (e8b-list< (rest a) (rest b))))) (define (e8b-frame-objs grid color) (sort (filter (lambda (obj) (let* ((bb (obj-bbox obj)) (r1 (first bb)) (c1 (second bb)) (r2 (third bb)) (c2 (fourth bb))) (and (= (obj-color obj) color) (>= (- r2 r1) 2) (>= (- c2 c1) 2) (e8-rect-border? obj)))) (objects grid 0)) (lambda (a b) (let ((ba (obj-bbox a)) (bb (obj-bbox b))) (e8b-list< (list (first ba) (second ba)) (list (first bb) (second bb))))))) (define (e11b-frame-objs grid color sort-key) (sort (e8b-frame-objs grid color) (lambda (a b) (let ((ba (obj-bbox a)) (bb (obj-bbox b))) (cond ((equal? sort-key 'col) (e8b-list< (list (second ba) (first ba)) (list (second bb) (first bb)))) ((equal? sort-key 'row) (e8b-list< (list (first ba) (second ba)) (list (first bb) (second bb)))) (else (e8b-list< (list (first ba) (second ba)) (list (first bb) (second bb))))))))) (for/fold ((out g)) ((frame (in-list (e11b-frame-objs g 9 'row)))) (let* ((bb (obj-bbox frame)) (r1 (first bb)) (c1 (second bb)) (r2 (third bb)) (c2 (fourth bb)) (top-marks (filter (lambda (p) (not (member? (third p) (list 0 9)))) (map (lambda (c) (list c (at g (+ r1 1) c) (at g (+ r1 1) c))) (range (+ c1 1) c2)))) (left-marks (filter (lambda (p) (not (member? (third p) (list 0 9)))) (map (lambda (r) (list r (at g r (+ c1 1)) (at g r (+ c1 1)))) (range (+ r1 1) r2))))) (for/fold ((acc out)) ((tm (in-list top-marks))) (for/fold ((acc2 acc)) ((lm (in-list left-marks))) (if (= (third tm) (third lm)) (let* ((tc (first tm)) (lr (first lm)) (color (third tm)) (row-cells (map (lambda (c) (list lr c)) (range (+ c1 1) c2))) (col-cells (map (lambda (r) (list r tc)) (range (+ r1 1) r2)))) (paint-cells (paint-cells acc2 row-cells color) col-cells color)) acc2)))))))

Provenance

Generator
generators/954070a7d7ce/generator.py
Notes and decisions
generators/954070a7d7ce/notes.md
Review label
reviewed_safe
Generator SHA-256
a2288e64d15c0773254b2a42696a8ef58dd1b24148c4b0ab6f2c23ca94c0c25d
Rule hash
285c825480d1
Sources
bank:db2a1cce4e4e
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 954070a7d7ce --count 1 --seed 20261108 --test 1