← 693aba8e59d8 · 697e51dfedef →
694d3ee0b12a
A zero-background grid contains two or three separate 7x7 hollow orange frames. Each frame is an independent workspace: red cells on its left inner axis select rows, green cells on its top inner axis select columns, and a local non-marker color inside the frame is that frame's fill key. Paint every selected-row x selected-column intersection with the local key color, preserving all existing cells.
frame reasoninglocal key colormultiple local workspacesrow/column gating
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 (f14-same-cells? a b) (and (= (length a) (length b)) (all? (lambda (p) (member? p b)) a))) (define (f14-border-cells r0 c0 r1 c1) (for*/list ((r (in-range r0 (+ r1 1))) (c (in-range c0 (+ c1 1))) #:when (or (= r r0) (= r r1) (= c c0) (= c c1))) (list r c))) (define (f4-norm cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb))) (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) cells))) (define (f4-norm-info cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb))) (list (f4-norm cells) (+ 1 (- r1 r0)) (+ 1 (- c1 c0))))) (define (f4-rect-frame? cells) (let* ((info (f4-norm-info cells)) (norm (first info)) (h (second info)) (w (third info)) (border (f14-border-cells 0 0 (- h 1) (- w 1)))) (and (>= h 3) (>= w 3) (f14-same-cells? norm border)))) (let ((preserved (for*/fold ((out (empty-grid (rows g) (cols g) 0))) ((r (in-range (rows g))) (c (in-range (cols g)))) (if (= (at g r c) 0) out (set-cell out r c (at g r c)))))) (for/fold ((out preserved)) ((frame (in-list (filter (lambda (obj) (and (= (obj-color obj) 7) (f4-rect-frame? (obj-cells obj)))) (objects g 0))))) (let* ((bb (obj-bbox frame)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb)) (row-marks (filter (lambda (r) (= (at g r (+ c0 1)) 2)) (range (+ r0 1) r1))) (col-marks (filter (lambda (c) (= (at g (+ r0 1) c) 3)) (range (+ c0 1) c1))) (key-colors (filter (lambda (v) (not (member? v (list 0 2 3)))) (for*/list ((r (in-range (+ r0 1) r1)) (c (in-range (+ c0 1) c1))) (at g r c)))) (fill (first (sort (remove-duplicates key-colors) (lambda (a b) (> (count-where (lambda (v) (= v a)) key-colors) (count-where (lambda (v) (= v b)) key-colors))))))) (for*/fold ((acc out)) ((r (in-list row-marks)) (c (in-list col-marks))) (set-cell acc r c fill)))))))
Provenance
- Generator
- generators/694d3ee0b12a/generator.py
- Notes and decisions
- generators/694d3ee0b12a/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 89c1d7b7cbc7ce45db5ba9c72040350c9ef1c3e329e4a507b8498eaa46401ddb
- Rule hash
- c13ecc4348dc
- Sources
- bank:16956638be77
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 694d3ee0b12a --count 1 --seed 20261108 --test 1