← 1d2c53122095 · 1d9a320d33c0 →
1d62131e83ca
A 0-background grid contains one solid blue 2x2 block and one solid red 2x2 block. Paint a blue diagonal ray up-left from the blue block's top-left corner and a red diagonal ray down-right from the red block's bottom-right corner, continuing each ray to the edge.
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! (lambda (g)
;; alt: paint two diagonal rays: blue up-left from the blue bbox, red down-right from the red bbox.
(let* ((h (rows g))
(w (cols g))
(blue (find-color g 1))
(red (find-color g 2))
(blue-r0 (min-of fst blue))
(blue-c0 (min-of snd blue))
(red-r1 (max-of fst red))
(red-c1 (max-of snd red)))
(define (paint-ray out r c dr dc color)
(if (in-bounds? r c h w)
(paint-ray (set-cell out r c color) (+ r dr) (+ c dc) dr dc color)
out))
(paint-ray
(paint-ray g (- blue-r0 1) (- blue-c0 1) -1 -1 1)
(+ red-r1 1) (+ red-c1 1) 1 1 2))))Provenance
- Generator
- generators/1d62131e83ca/generator.py
- Notes and decisions
- generators/1d62131e83ca/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 7aa91dfe7d70b46f161f0a7617542feb70b0917c61e7871b079a880c8cf95e89
- Rule hash
- 7a695100f4e0
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 1d62131e83ca --count 1 --seed 20261108 --test 1