← db4cb6bcf6fe · db89dc496d45 →

db63430eeffa

0-grid with exactly two 8 endpoints; oracle draws diagonal-first and straight-first L-paths (3) between them. Canonical family: unequal >=2 row/col deltas, endpoints anywhere incl. borders.

parametric family

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)
         (let* ((h (rows g))
                (w (cols g)))
           (let* ((eights (find-color g 8))
                  (p1 (first eights))
                  (p2 (second eights))
                  (r1 (first p1))
                  (c1 (second p1))
                  (r2 (first p2))
                  (c2 (second p2))
                  (dr (- r2 r1))
                  (dc (- c2 c1))
                  (adr (abs dr))
                  (adc (abs dc))
                  (sr (cond ((> dr 0) 1) ((< dr 0) -1) (else 0)))
                  (sc (cond ((> dc 0) 1) ((< dc 0) -1) (else 0)))
                  (d-steps (min adr adc))
                  (s-steps (abs (- adr adc)))
                  (major-is-r (> adr adc))
                  (path (make-hash)))
             (let loop1
                  ((rr r1) (cc c1) (step 0))
                  (cond
                    ((< step d-steps) (hash-set! path (list rr cc) #t)
                      (loop1 (+ rr sr) (+ cc sc) (+ step 1)))
                    (else (let loop2
                               ((rr rr) (cc cc) (step 0))
                               (cond
                                 ((< step s-steps) (hash-set! path (list rr cc) #t)
                                   (cond
                                     (major-is-r (loop2 (+ rr sr) cc (+ step 1)))
                                     (else (loop2 rr (+ cc sc) (+ step 1)))))
                                 (else (hash-set! path (list rr cc) #t)))))))
             (let loop1
                  ((rr r1) (cc c1) (step 0))
                  (cond
                    ((< step s-steps) (hash-set! path (list rr cc) #t)
                      (cond
                        (major-is-r (loop1 (+ rr sr) cc (+ step 1)))
                        (else (loop1 rr (+ cc sc) (+ step 1)))))
                    (else (let loop2
                               ((rr rr) (cc cc) (step 0))
                               (cond
                                 ((< step d-steps) (hash-set! path (list rr cc) #t)
                                   (loop2 (+ rr sr) (+ cc sc) (+ step 1)))
                                 (else (hash-set! path (list rr cc) #t)))))))
             (cellmap g
                      (r c v)
                      (cond
                        ((and (= r r1) (= c c1)) 8)
                        ((and (= r r2) (= c c2)) 8)
                        ((hash-has-key? path (list r c)) 3)
                        (else 0)))))))

Provenance

Generator
generators/db63430eeffa/generator.py
Notes and decisions
generators/db63430eeffa/notes.md
Review label
reviewed_safe
Generator SHA-256
f273c56adc9372fb8feb16b4d905b4186ab2ede384d036f538019447d673dc46
Rule hash
3e3bf77eb552
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate db63430eeffa --count 1 --seed 20261108 --test 1