← 8a3fe170ed27 · 8a63cd5c5bfb →
8a50bfdecd97
Move a colored pattern to the missing corner using one diagonal bracket for row alignment and the other bracket for interior-column alignment.
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! (lambda (g)
(let* ((sc (first (filter (lambda (v) (and (!= v 4) (!= v 7))) (grid-colors g))))
(sp (find-color g sc))
(bb (bbox-of-cells sp))
(sr1 (first bb))
(sc1 (second bb))
(sr2 (third bb))
(sc2 (fourth bb))
(sh (+ 1 (- sr2 sr1)))
(sw (+ 1 (- sc2 sc1)))
(yobjs (filter (lambda (o) (= (obj-color o) 4)) (objects g 7)))
(b0 (obj-bbox (first yobjs)))
(b1 (obj-bbox (second yobjs)))
(scc (/ (+ 0.0 sc1 sc2) 2))
(mc (/ (+ 0.0 w) 2))
(b0cc (/ (+ 0.0 (second b0) (fourth b0)) 2))
(ci0 (not (= (< scc mc) (< b0cc mc))))
(cb (if ci0 b0 b1))
(rb (if ci0 b1 b0))
(cbo (if ci0 (first yobjs) (second yobjs)))
(cbs (map (lambda (p) (+ (* (first p) 1000) (second p)))
(obj-cells cbo)))
(ic (filter (lambda (c)
(let loop
((r (first cb)))
(if (> r (third cb))
#f
(if (not (member (+ (* r 1000) c) cbs))
#t
(loop (+ r 1))))))
(range (second cb) (+ 1 (fourth cb)))))
(rbcr (/ (+ 0.0 (first rb) (third rb)) 2))
(cbcc (/ (+ 0.0 (second cb) (fourth cb)) 2))
(nr (if (> rbcr (/ (+ 0.0 h) 2)) (+ 1 (- (third rb) sh)) (first rb)))
(nc (if (> cbcc mc) (+ 1 (- (max-list ic) sw)) (min-list ic))))
(cellmap g
(r c v)
(if (and (>= r nr) (< r (+ nr sh)) (>= c nc) (< c (+ nc sw)))
(let ((sv (at g (+ sr1 (- r nr)) (+ sc1 (- c nc)))))
(if (= sv sc) sc v))
(if (= v sc) 7 v))))))Provenance
- Generator
- generators/8a50bfdecd97/generator.py
- Notes and decisions
- generators/8a50bfdecd97/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 865a9c6ee624589662779b0e0230c0aa6426a3a213184ddd1d2bbed200fcf3b7
- Rule hash
- f2d83965d9c2
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 8a50bfdecd97 --count 1 --seed 20261108 --test 1