← ffd3a33c5687 · ffe1da16c912 →

ffdc0ddb44bd

A 0-background grid contains three to five isolated objects, each in a different colour from 2 through 6. Exactly one translation-normalized shape occurs two to four times; one differently shaped object is a decoy. Crop the first row-major occurrence of the repeated shape to its bounding box and recolour its cells 8. A four-profile lesson schedule varies whether colour 2 and the first object are winner or decoy, so neither colour nor position identifies the answer.

croppingmajority reasoningtranslation-invariant comparison

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 (offset< a b) (if (= (first a) (first b)) (< (second a) (second b)) (< (first a) (first b)))) (define (normalize-offsets offsets) (if (empty? offsets) (list) (let* ((r0 (apply min (map first offsets))) (c0 (apply min (map second offsets)))) (sort (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) offsets) offset<)))) (define (relative-offsets obj anchor) (let* ((ar (cond ((= anchor 0) (obj-r1 obj)) ((= anchor 1) (obj-r1 obj)) ((= anchor 2) (obj-r2 obj)) (else (obj-r2 obj)))) (ac (cond ((= anchor 0) (obj-c1 obj)) ((= anchor 1) (obj-c2 obj)) ((= anchor 2) (obj-c1 obj)) (else (obj-c2 obj))))) (sort (map (lambda (p) (list (- (first p) ar) (- (second p) ac))) (obj-cells obj)) offset<))) (define (crop-component obj (color 8)) (paint-cells (empty-grid (obj-h obj) (obj-w obj) 0) (normalize-offsets (obj-cells obj)) color)) (define cands (filter (lambda (obj) (member (obj-color obj) (list 2 3 4 5 6))) (objects g 0))) (define sigs (map (lambda (obj) (relative-offsets obj 0)) cands)) (define winner (first (sort (remove-duplicates sigs) (lambda (a b) (let ((ca (count-where (lambda (x) (equal? x a)) sigs)) (cb (count-where (lambda (x) (equal? x b)) sigs))) (if (= ca cb) (< (length a) (length b)) (> ca cb))))))) (define target (first (filter (lambda (obj) (equal? (relative-offsets obj 0) winner)) cands))) (crop-component target 8)))

Provenance

Generator
generators/ffdc0ddb44bd/generator.py
Notes and decisions
generators/ffdc0ddb44bd/notes.md
Review label
reviewed_safe
Generator SHA-256
67ddcba432ed9f1a46c681ef377dcc1f1c90526cd23e9e10021cf6abd7eae838
Rule hash
29652af15048
Sources
bank:40f7bd2c7916
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate ffdc0ddb44bd --count 1 --seed 20261108 --test 1