← 74a14031dc79 · 74c16adff270 →
74a2d06b72b1
0-bg grid (size varies) with K (2-4) nested concentric color-1 frames and N color-2 markers. Rule: sort frames by area; (N-1) selects one; fill the ring between it and the next-inner frame with 8 (or the whole interior if it is the innermost). The grid size, frames and marker count vary freely (was a fixed setup, ~26 distinct).
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 (border-cells obj)
(filter (lambda (p) (or (= (first p) (obj-r1 obj)) (= (first p) (obj-r2 obj))
(= (second p) (obj-c1 obj)) (= (second p) (obj-c2 obj))))
(positions-in-rect (obj-r1 obj) (obj-c1 obj) (obj-r2 obj) (obj-c2 obj))))
(define frames
(sort (filter (lambda (o) (and (= (obj-color o) 1)
(equal? (sort (obj-cells o) cell<?) (sort (border-cells o) cell<?))))
(objects g 0))
(lambda (a b) (> (* (obj-h a) (obj-w a)) (* (obj-h b) (obj-w b))))))
(define idx (- (length (find-color g 2)) 1))
(define selected (list-ref frames idx))
(define inner (and (< (+ idx 1) (length frames)) (list-ref frames (+ idx 1))))
(for*/fold ([out g]) ([r (in-range (+ (obj-r1 selected) 1) (obj-r2 selected))]
[c (in-range (+ (obj-c1 selected) 1) (obj-c2 selected))])
(if (and (= (at out r c) 0)
(or (not inner)
(not (and (>= r (obj-r1 inner)) (<= r (obj-r2 inner))
(>= c (obj-c1 inner)) (<= c (obj-c2 inner))))))
(set-cell out r c 8)
out))))Provenance
- Generator
- generators/74a2d06b72b1/generator.py
- Notes and decisions
- generators/74a2d06b72b1/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 6083cb69769c7f10f45ae320bc54f49ffbb96decd421ed5ce590a5f4b3588194
- Rule hash
- c7287233192c
- Sources
- bank:f4facb1306bd
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 74a2d06b72b1 --count 1 --seed 20261108 --test 1