← bd05f2963d17 · bd8613daf5b1 →
bd6bfb1f0c20
Sort the three distinct-color connected objects by four-neighbour perimeter descending (color ascending on ties), then output their colors as one row. Every draw refutes area order and row-major position order.
perimeter computationrankingsummary output
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 (perimeter obj) (for/sum ((p (in-list (obj-cells obj)))) (length (filter (lambda (d) (not (member? (list (+ (first p) (first d)) (+ (second p) (second d))) (obj-cells obj)))) cardinal-deltas)))) (let ((ranked (sort (objects g 0) (lambda (a b) (if (= (perimeter a) (perimeter b)) (< (obj-color a) (obj-color b)) (> (perimeter a) (perimeter b))))))) (list (map obj-color ranked)))))
Provenance
- Generator
- generators/bd6bfb1f0c20/generator.py
- Notes and decisions
- generators/bd6bfb1f0c20/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 14245bd69e4764a5060836e1a03f960368f876248579f4ba9b81d369b719045d
- Rule hash
- 4f629ec7a9de
- Sources
- bank:76c10b1ad4b3
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate bd6bfb1f0c20 --count 1 --seed 20261108 --test 1