turnstile — a product as an assay, on Room (guards only, not grown)

0 receipts inline · 10 lines · pinned (not yet) — shasum -a 256 of this file, cut to 16, as pins has it · lake env lean turnstile.lean prints nothing when every receipt passes
import Room
open Room
set_option autoImplicit false

#guard enrolled Nat.beq (intake Nat.beq ([], []) [(7, [7]), (7, [7]), (7, [7])]).1 7 == false
#guard enrolled Nat.beq (intake Nat.beq ([], []) [(8, [9]), (9, [8]), (8, [9]), (9, [8])]).1 8 == false
#guard enrolled Nat.beq (intake Nat.beq ([], []) [(8, [9]), (9, [8]), (8, [9]), (9, [8])]).1 9 == false
#guard lacking Nat.beq [1, 2] [1, 2, 9] == 1
#guard backed Nat.beq (9 :: [1, 2]) [1, 2, 9]
#guard enrolled Nat.beq (welcome Nat.beq (welcome Nat.beq ([1, 2], []) (9, [])) (8, [1, 2, 9])).1 8

the map of relations — every law a node, an arrow for each citation the elaborator reads (bin/counter chart; without --laws the carriers join the map)

graph LR