← 81eddce255be · 8230189d9b9e →

81fdfd815936

A 10..12 by 12..14 zero-background grid contains exactly three separated monochrome objects in three distinct colours. At least one object is left-right symmetric. Among the symmetric candidates sorted by (top_row, left_col), output the tight crop of the first candidate.

component extractionobject selectionsymmetry testing

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).

Reference rule (Racket)

(rule!
  (let ((dummy 0))
    (define (symmetric-crop? obj)
      (let ((crop (subgrid g (obj-r1 obj) (obj-c1 obj) (obj-r2 obj) (obj-c2 obj))))
        (all? (lambda (r)
                (all? (lambda (c) (= (at crop r c) (at crop r (- (cols crop) 1 c))))
                      (range 0 (cols crop))))
              (range 0 (rows crop)))))
    (let ((chosen (first (sort (filter symmetric-crop? (objects g 0))
                               (lambda (a b)
                                 (if (= (obj-r1 a) (obj-r1 b))
                                     (< (obj-c1 a) (obj-c1 b))
                                     (< (obj-r1 a) (obj-r1 b))))))))
      (subgrid g (obj-r1 chosen) (obj-c1 chosen) (obj-r2 chosen) (obj-c2 chosen)))))

Provenance

Generator
generators/81fdfd815936/generator.py
Notes and decisions
generators/81fdfd815936/notes.md
Review label
reviewed_safe
Generator SHA-256
059498774150d039259c96b873c071f94c65b1d5292daa2d16339f14e32043e5
Rule hash
320c881d146b
Sources
bank:e06827914c5c
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 81fdfd815936 --count 1 --seed 20261108 --test 1