← bedf1922195c · bf1c3941f654 →
bee63e6e52bd
A canonical-size 0-background grid contains one colored rectangular frame with one contiguous gap on exactly one side. Yellow (4) pours from that mouth through the cavity band and continues diagonally beyond both arm tips. Arm lengths include canonical 2/2 cases and scheduled 1/1, 1/3, and 3/1 counterexamples to the strongest canonical-fitting shortcut. Every draw shows a diagonal continuation; explicit large profiles scale the frame and expose longer spouts while ordinary profiles remain canonical.
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!
;; A C-shaped frame of one color has an OPEN mouth on one side.
;; Yellow(4) pours in: rows level with the mouth interior flood with 4
;; from the outside wall through the cavity, the two arm-tip rows get
;; a 4 just outside the mouth plus a cavity fill, and beyond the tips
;; the 4s run away as 45-degree diagonal spouts. Normalize so the
;; mouth faces LEFT (flip/transpose), pour once, map back.
(lambda (g)
(let ()
(define sc ;; the frame's color: first non-0 non-4 value
(find-first (lambda (v) (and (> v 0) (not (= v 4))))
(remove-duplicates (apply append g))))
(define (tips-of pos) ;; mouth tips: run ends flanking the gap
(let* ((sp (sort pos <))
(gaps (filter (lambda (i) (> (- (nth sp (+ i 1)) (nth sp i)) 1))
(range 0 (- (length sp) 1)))))
(list (if (empty? gaps) (first sp) (nth sp (last gaps)))
(if (empty? gaps) (last sp) (nth sp (+ (first gaps) 1))))))
(define (pour grid) ;; mouth faces LEFT
(let* ((hh (rows grid)) (ww (cols grid))
(cells (find-color grid sc))
(r1 (min-of first cells)) (r2 (max-of first cells))
(c1 (min-of second cells)) (c2 (max-of second cells))
(tips (tips-of (filter (lambda (r) (= (at grid r c1) sc))
(range r1 (+ r2 1)))))
(tt (first tips)) (bt (second tips))
(mouth-c (- c1 1))
(flood (lambda (out r cs)
(for/fold ((a out)) ((c cs))
(if (zero? (at grid r c)) (set-cell a r c 4) a)))))
(for/fold ((out grid)) ((r (range 0 hh)))
(cond ((< r tt)
(let ((yc (- mouth-c (- tt r))))
(if (and (>= yc 0) (< yc ww) (zero? (at grid r yc)))
(set-cell out r yc 4)
out)))
((> r bt)
(let ((yc (- mouth-c (- r bt))))
(if (and (>= yc 0) (< yc ww) (zero? (at grid r yc)))
(set-cell out r yc 4)
out)))
((or (= r tt) (= r bt))
(flood (set-cell out r mouth-c 4)
r (range (+ c1 1) (+ c2 1))))
(else (flood out r (range 0 (+ c2 1))))))))
(let* ((cells (find-color g sc))
(r1 (min-of first cells)) (r2 (max-of first cells))
(c1 (min-of second cells)) (c2 (max-of second cells))
(full (lambda (fixed by-row?)
(all? (lambda (k) (= (at g (if by-row? fixed k)
(if by-row? k fixed))
sc))
(if by-row? (range c1 (+ c2 1))
(range r1 (+ r2 1)))))))
(cond ((not (full c1 #f)) (pour g))
((not (full c2 #f)) (flip-lr (pour (flip-lr g))))
((not (full r1 #t)) (transpose (pour (transpose g))))
((not (full r2 #t))
(transpose (flip-lr (pour (flip-lr (transpose g))))))
(else g))))))Provenance
- Generator
- generators/bee63e6e52bd/generator.py
- Notes and decisions
- generators/bee63e6e52bd/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 33d8f354812b25e8e5afe7555c6296040b7d63e0b6315dea5a184c5515227b3f
- Rule hash
- eedba8f59365
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate bee63e6e52bd --count 1 --seed 20261108 --test 1