← 2fd7d58a066c · 302ddfbe2baa →
3020cc038f3f
A 7..9 by 9..11 zero-background grid has one control at (0,0): 3=union, 4=XOR, 5=intersection. Separate connected color-1 and color-2 polyominoes (3..6 cells) are bbox-normalized before the operation. Their normalized masks may partially overlap or be identical; the result is painted color 8 on the maximum operand bounding box (or [[0]] if empty).
parametric family
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 (has? p cells) (member? p cells))
(define a (normalize-cells (find-color g 1)))
(define b (normalize-cells (find-color g 2)))
(define ba (bbox-of-cells a))
(define bb (bbox-of-cells b))
(define out-h (max (if ba (+ 1 (third ba)) 0) (if bb (+ 1 (third bb)) 0)))
(define out-w (max (if ba (+ 1 (fourth ba)) 0) (if bb (+ 1 (fourth bb)) 0)))
(define ctrl (at g 0 0))
(define res
(cond [(= ctrl 3) (remove-duplicates (append a b))]
[(= ctrl 4) (append (filter (lambda (p) (not (has? p b))) a)
(filter (lambda (p) (not (has? p a))) b))]
[(= ctrl 5) (filter (lambda (p) (has? p b)) a)]
[else (list)]))
(if (empty? res)
(empty-grid 1 1 0)
(paint-cells (empty-grid out-h out-w 0) res 8))))Provenance
- Generator
- generators/3020cc038f3f/generator.py
- Notes and decisions
- generators/3020cc038f3f/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- d1146b11df322c90910f6012a09c44ae4a60cb68a63c23bbed79d2539a202653
- Rule hash
- d73f3f4b1c32
- Sources
- bank:0d92044d8ccc
- Lesson seeds
- 20261108
- Reproduce lesson 1
arcpuzzles generate 3020cc038f3f --count 1 --seed 20261108 --test 1