← d68754fb0d84 · d70726fd510f →
d68b3843203e
Count 1..3 red markers in canonical-weighted 2..3 variable yellow frames.
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 ()
(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 (cell<? a b)
(or (< (first a) (first b))
(and (= (first a) (first b)) (< (second a) (second b)))))
(for/fold ([out g]) ([obj (in-list (filter (lambda (o) (= (obj-color o) 4)) (objects g 0)))])
(if (and (>= (- (obj-r2 obj) (obj-r1 obj)) 2)
(>= (- (obj-c2 obj) (obj-c1 obj)) 2)
(equal? (sort (obj-cells obj) cell<?) (sort (border-cells obj) cell<?)))
(let* ((inside (positions-in-rect (+ (obj-r1 obj) 1) (+ (obj-c1 obj) 1) (- (obj-r2 obj) 1) (- (obj-c2 obj) 1)))
(cnt (count-where (lambda (p) (= (at g (first p) (second p)) 2)) inside)))
(paint-cells out inside (+ 5 cnt)))
out))))Provenance
- Generator
- generators/d68b3843203e/generator.py
- Notes and decisions
- generators/d68b3843203e/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- ffb8ab55d42c9eb82125de4c3a316465a64eb0123d7b065d41bf05f2b01a82f5
- Rule hash
- 90de3c06fb83
- Sources
- bank:385e738e9e70
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate d68b3843203e --count 1 --seed 20261108 --test 1