← 2c7b1545edf9 · 2c8fab02e3fe →
2c83e8cd1c07
A 7..14 square/rectangular zero-background grid contains 1..5 clear same-color endpoint pairs on perfect 45-degree diagonals. The reference fills each clear segment inclusively. Every generated input also contains one different-color diagonal pair crossing a clear pair's endpoint in its interior, so that blocked pair remains unchanged and explicitly teaches the zero-interior condition.
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)))) (let ((cells (find-color g color))) (if (not (= (length cells) 2)) out (let* ((a (first cells)) (b (second cells)) (dr (- (first b) (first a))) (dc (- (second b) (second a)))) (if (or (= dr 0) (not (= (abs dr) (abs dc)))) out (let ((sr (if (> dr 0) 1 -1)) (sc (if (> dc 0) 1 -1))) (let loop ((rr (+ (first a) sr)) (cc (+ (second a) sc)) (ok #t)) (if (equal? (list rr cc) b) (if ok (for/fold ((acc out)) ((k (in-range (+ 1 (abs dr))))) (set-cell acc (+ (first a) (* sr k)) (+ (second a) (* sc k)) color)) out) (loop (+ rr sr) (+ cc sc) (and ok (= (at g rr cc) 0)))))))))))))
Provenance
- Generator
- generators/2c83e8cd1c07/generator.py
- Notes and decisions
- generators/2c83e8cd1c07/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 497eb0a87949fc29126c1ce52314ce0c6d7e4b24e8e23d86b9c990ebad91eebe
- Rule hash
- 177b2df2b99a
- Sources
- bank:b9cb6b5db49d
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 2c83e8cd1c07 --count 1 --seed 20261108 --test 1