# Json's laws, proposed (for the human to move into a LAWS.bend, reword or # drop): PROOF.bend proves them. import Base import ./Json.bend as J # The reader is a fold over the text, a character at a time: reading two # pieces one after the other is reading them joined. So a text read as it # comes, piece by piece, reads as the whole. law run_append: for a: String for b: String for st: J.js.St {J.js.run(String.append(a, b), st) == J.js.run(b, J.js.run(a, st)) : J.js.St}