← fb7c915894d6 · fbf36c193fa6 →
fb7f02aa9ab0
A blue shape (1) and red shape (2) are placed apart with a control cell at a varying corner. Control 3/4/6 selects union/intersection/XOR after each shape is independently normalized to its own top-left bounding-box corner. Partial-overlap and either-subset relations are generated, and the shared normalized support may include or omit coordinate (0,0).
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 (cell<? a b)
(or (< (first a) (first b))
(and (= (first a) (first b)) (< (second a) (second b)))))
(define (norm color) (sort (normalize-cells (find-color g color)) cell<?))
(define (has-cell? p cells) (member? p cells))
(define a (norm 1))
(define b (norm 2))
(define op (cond [(not (empty? (find-color g 3))) 'union]
[(not (empty? (find-color g 4))) 'inter]
[(not (empty? (find-color g 6))) 'xor]
[else 'union]))
(define res0
(cond
[(eq? op 'union) (remove-duplicates (append a b))]
[(eq? op 'inter) (filter (lambda (p) (has-cell? p b)) a)]
[else (append (filter (lambda (p) (not (has-cell? p b))) a)
(filter (lambda (p) (not (has-cell? p a))) b))]))
(define res (sort (normalize-cells res0) cell<?))
(if (empty? res)
(empty-grid 1 1 0)
(let* ((bb (bbox-of-cells res))
(out (empty-grid (+ 1 (third bb)) (+ 1 (fourth bb)) 0)))
(paint-cells out res 8)))))Provenance
- Generator
- generators/fb7f02aa9ab0/generator.py
- Notes and decisions
- generators/fb7f02aa9ab0/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- cd80f7ce93c747ba54eb1a2818599e6a502d082187fc5b728a3c34d7419550f7
- Rule hash
- 27a3cc4c9462
- Sources
- bank:b18129f611a9
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate fb7f02aa9ab0 --count 1 --seed 20261108 --test 1