← 22e428cda452 · 23220e3be06f →
2314acbb67be
Two to four separated, differently colored four-connected motifs with distinct cell counts; crop each, rank by descending cell count, and pack the crops horizontally with one zero column between them.
parametric familyobjectsoutput_resizesorting
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 (object-grid grid obj) (subgrid grid (obj-r1 obj) (obj-c1 obj) (obj-r2 obj) (obj-c2 obj))) (define (shape-place out crop top left) (for*/fold ((acc out)) ((r (in-range (rows crop))) (c (in-range (cols crop)))) (let ((v (at crop r c))) (if (= v 0) acc (set-cell acc (+ top r) (+ left c) v))))) (define entries (sort (map (lambda (obj) (list (obj-size obj) (obj-c1 obj) (obj-r1 obj) (obj-color obj) (object-grid g obj))) (objects g 0)) (lambda (a b) (cond ((not (= (first a) (first b))) (> (first a) (first b))) ((not (= (second a) (second b))) (< (second a) (second b))) ((not (= (third a) (third b))) (< (third a) (third b))) (else (< (fourth a) (fourth b))))))) (define out-h (apply max (map (lambda (e) (rows (list-ref e 4))) entries))) (define out-w (+ (apply + (map (lambda (e) (cols (list-ref e 4))) entries)) (max 0 (- (length entries) 1)))) (let pack ((items entries) (c0 0) (out (empty-grid out-h out-w 0))) (if (empty? items) out (let* ((crop (list-ref (first items) 4)) (next (shape-place out crop 0 c0))) (pack (rest items) (+ c0 (cols crop) 1) next))))))
Provenance
- Generator
- generators/2314acbb67be/generator.py
- Notes and decisions
- generators/2314acbb67be/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 3dc04f72f9af1756cc7bd1ae47e271176ab0c2c929cb75bf8f2f7a16c81504a3
- Rule hash
- 293c753eb7cd
- Sources
- bank:cedcb02251c0
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 2314acbb67be --count 1 --seed 20261108 --test 1