← 93b39d8c4da4 · 93cbf6ceadf6 →
93ca517eac25
Recolor the blue component whose normalized vertical-symmetry status is unique among all blue components.
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 (cell<? a b)
(or (< (first a) (first b))
(and (= (first a) (first b)) (< (second a) (second b)))))
(define (norm cells) (sort (normalize-cells cells) cell<?))
(define (reflect-v cells)
(let* ((s (norm cells))
(w (+ 1 (apply max (map second s)))))
(norm (map (lambda (p) (list (first p) (- w 1 (second p)))) s))))
(define comps (filter (lambda (o) (= (obj-color o) 1)) (objects g 0)))
(define flags (map (lambda (obj) (equal? (norm (obj-cells obj)) (reflect-v (obj-cells obj)))) comps))
(define true-count (count-where (lambda (v) v) flags))
(define false-count (- (length flags) true-count))
(if (and (> true-count 0) (> false-count 0) (or (= true-count 1) (= false-count 1)))
(let* ((target-flag (= true-count 1))
(pairs (map list comps flags))
(target (first (first (filter (lambda (p) (equal? (second p) target-flag)) pairs)))))
(paint-cells g (obj-cells target) 2))
g)))Provenance
- Generator
- generators/93ca517eac25/generator.py
- Notes and decisions
- generators/93ca517eac25/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 0d09fc6e9506d8eeabe0b2769efa3dfaf95b3f7ec7151d18e451e787a6670ffa
- Rule hash
- 4a154ae48e66
- Sources
- bank:0d41ded5f4cd
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 93ca517eac25 --count 1 --seed 20261108 --test 1