← f7660051ec70 · f7a512650552 →
f7672a367745
A zero-background grid contains nonzero colours, each appearing at exactly two diagonally opposite corners of a rectangle. For every colour, draw the complete rectangle border in that colour on a same-size zero background. Generated lessons use one to five disjoint, interior-bearing rectangles.
parametric familyrectangle inferencesame-size constructionsparse geometry
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 (paint grid cells color) (for/fold ((out grid)) ((p (in-list cells))) (if (in-bounds? (first p) (second p) (rows out) (cols out)) (set-cell out (first p) (second p) color) out))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((color (in-list (grid-colors g 0)))) (let ((pts (find-color g color))) (if (= (length pts) 2) (let* ((r0 (min (first (first pts)) (first (second pts)))) (r1 (max (first (first pts)) (first (second pts)))) (c0 (min (second (first pts)) (second (second pts)))) (c1 (max (second (first pts)) (second (second pts)))) (edge (remove-duplicates (append (map (lambda (c) (list r0 c)) (range c0 (+ c1 1))) (map (lambda (c) (list r1 c)) (range c0 (+ c1 1))) (map (lambda (r) (list r c0)) (range r0 (+ r1 1))) (map (lambda (r) (list r c1)) (range r0 (+ r1 1))))))) (paint out edge color)) out)))))
Provenance
- Generator
- generators/f7672a367745/generator.py
- Notes and decisions
- generators/f7672a367745/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 72b7830f45abeba9c9cc6d768e878e41cb8e9e0da04d96ad25e280ae6d343af1
- Rule hash
- f641b0a1fe42
- Sources
- bank:01130745873d
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate f7672a367745 --count 1 --seed 20261108 --test 1