← d552baa9e49e · d59da25908ca →
d57b7deebba2
A 7..10 by 10..12 zero-background grid contains two or three colored endpoint pairs. Each pair lies on one slope -1 anti-diagonal, has a length of 2..5, and has an empty interior. Different spans use different anti-diagonals. Colors may be reused across separate anti-diagonals. The rule independently fills every color+anti-diagonal span between its two endpoints.
parametric familyanti-diagonal groupingsame-color endpoint matchingsame-size transform
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 (e8b-colors-reading grid) (remove-duplicates (filter (lambda (v) (not (= v 0))) (map (lambda (p) (at grid (first p) (second p))) (grid-positions grid))))) (for*/fold ((out g)) ((color (in-list (e8b-colors-reading g))) (diag (in-range (+ (rows g) (cols g))))) (let ((cells (filter (lambda (p) (and (= (at g (first p) (second p)) color) (= (+ (first p) (second p)) diag))) (grid-positions g)))) (if (>= (length cells) 2) (let ((r0 (apply min (map first cells))) (r1 (apply max (map first cells)))) (for/fold ((acc out)) ((r (in-range r0 (+ r1 1)))) (let ((c (- diag r))) (if (in-bounds? r c (rows g) (cols g)) (set-cell acc r c color) acc)))) out)))))
Provenance
- Generator
- generators/d57b7deebba2/generator.py
- Notes and decisions
- generators/d57b7deebba2/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- c20aebc584ad035299206e01dc82780bd26091dd47526ca75fcbf888e13144e6
- Rule hash
- ed1603229043
- Sources
- bank:392b6b954bfd
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate d57b7deebba2 --count 1 --seed 20261108 --test 1