← 8a761b80b11b · 8a82ec149798 →

8a802749348c

Every separated three-cell L emits a same-color diagonal ray away from its missing 2x2 corner, beginning one cell beyond that missing corner. The distribution covers all four directions, repeated and distinct object colors, 1..5 pieces, 8..16 dimensions, varied positions and ray lengths, with collision-free rays and a 10x10 repeated-color canonical anchor.

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!
  (let ()
    ;; alt: identify each 3-cell L by its missing corner in the 2x2 bbox,
    ;; then march one diagonal step farther in that same direction.
    (define (has-cell? cells r c)
      (member? (list r c) cells))
    (define (paint-ray out color r c dr dc)
      (let loop ([acc out] [rr (+ r dr)] [cc (+ c dc)])
        (if (in-bounds? rr cc (rows g) (cols g))
            (loop (set-cell acc rr cc color) (+ rr dr) (+ cc dc))
            acc)))
    (define (paint-l out obj)
      (let* ([cells (obj-cells obj)]
             [bb (obj-bbox obj)]
             [r0 (first bb)]
             [c0 (second bb)]
             [color (obj-color obj)]
             [misses
              (filter (lambda (p) (not (has-cell? cells (first p) (second p))))
                      (list (list r0 c0)
                            (list r0 (+ c0 1))
                            (list (+ r0 1) c0)
                            (list (+ r0 1) (+ c0 1))))])
        (if (empty? misses)
            out
            (let* ([m (first misses)]
                   [mr (first m)]
                   [mc (second m)]
                   [corner-r (if (= mr r0) (+ r0 1) r0)]
                   [corner-c (if (= mc c0) (+ c0 1) c0)]
                   [dr (- mr corner-r)]
                   [dc (- mc corner-c)])
              (paint-ray out color mr mc dr dc)))))
    (for/fold ([out g])
              ([obj (in-list (filter (lambda (o) (= (obj-size o) 3))
                                     (objects g 0)))])
      (paint-l out obj))))

Provenance

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