← 5639e60f0fac · 564cab531f76 →
563e1df172df
Connect the unique red(2) and green(3) cells with an 8-colored L: paint horizontally from red to green's column, then vertically to green.
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)
;; Red is the start and green is the destination. The elbow belongs on
;; red's row and green's column, so the horizontal arm is drawn first.
(define red (first (find-color g 2)))
(define green (first (find-color g 3)))
(define rr (first red))
(define rc (second red))
(define gr (first green))
(define gc (second green))
(define cmin (min rc gc))
(define cmax (max rc gc))
(define rmin (min rr gr))
(define rmax (max rr gr))
;; Paint the horizontal arm while preserving the red endpoint.
(define with-row
(reduce (lambda (out c)
(if (= c rc) out (set-cell out rr c 8)))
g
(range cmin (+ cmax 1))))
;; Paint the vertical arm while preserving the green endpoint.
(reduce (lambda (out r)
(if (= r gr) out (set-cell out r gc 8)))
with-row
(range rmin (+ rmax 1)))))Provenance
- Generator
- generators/563e1df172df/generator.py
- Notes and decisions
- generators/563e1df172df/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 893e2a8667332831c99aa8e39cd51684a64e4a94adffe09abc151d10e1e0c7b3
- Rule hash
- a29452f21143
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 563e1df172df --count 1 --seed 20261108 --test 1