← 8e6c44aee812 · 8e8d21720efb →

8e7f766c96bf

Fill only blue hollow frames whose outer height and width both equal four.

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 (rect-border r0 c0 r1 c1)
      (filter (lambda (p)
                (or (= (first p) r0) (= (first p) r1)
                    (= (second p) c0) (= (second p) c1)))
              (positions-in-rect r0 c0 r1 c1)))
    (define (hollow-rect? obj)
      (let ((bb (obj-bbox obj)))
        (and (equal? (sort (obj-cells obj) cell<?)
                     (sort (rect-border (first bb) (second bb) (third bb) (fourth bb)) cell<?)))))
    (for/fold ([out g]) ([obj (filter (lambda (o) (and (= (obj-color o) 1) (hollow-rect? o) (= (obj-h o) 4) (= (obj-w o) 4))) (objects g 0))])
      (paint-cells out (bbox-interior-cells obj) 2))))

Provenance

Generator
generators/8e7f766c96bf/generator.py
Notes and decisions
generators/8e7f766c96bf/notes.md
Review label
reviewed_safe
Generator SHA-256
f6fcc9be278a31f3860a2acca3b2cdda4ff197eff9c9a6c2166f4f25643efc77
Rule hash
bb4f82892380
Sources
bank:ce088a50599a
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 8e7f766c96bf --count 1 --seed 20261108 --test 1