b066db9829
Use inferred variables for proofs where possible
...
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-07-30 13:19:15 -07:00
4033a1b33d
Prove most of commutativity by relying on in-dec.
...
The "no" case still needs to be dismissed, but that can probably
be done by some lemma about keys in maps.
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-07-28 00:05:41 -07:00
77b8b6fad9
Finally prove the provenance properties of merge.
2023-07-26 20:58:41 -07:00
461732244a
Finish all in/not-in proofs.
...
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-07-26 20:40:28 -07:00
12217e6928
Reformat the code to roughly fit into 80 columns.
...
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-07-26 17:31:09 -07:00
489b0532df
Add intermediate state for insertion proofs
2023-07-25 22:58:42 -07:00
6b51cd4050
Reorganize a bit and start on provenance
...
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-07-25 19:56:47 -07:00
88a712fa98
Implement the more powerful Map-functional theorem
...
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-07-25 18:22:24 -07:00
c9ab1152c4
Minor cleanup of Map module
...
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-07-25 00:10:57 -07:00
4aea9a0358
Migrate Maps to including a uniqueness proof
...
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-07-24 23:55:09 -07:00
c2bc1c5421
Move the implementation details into a private module
...
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-07-24 23:12:04 -07:00
232bd65809
Add uniqueness preservation proof for merge
...
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-07-24 23:02:43 -07:00
87a476ab9e
Add proofs of uniqueness preservation for map insert
...
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-07-24 22:51:40 -07:00
c50195942d
Start moving away from purely list-based maps.
...
The eventual goal is to make a map be a list and a proof
that all the keys are unique.
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-07-24 20:38:34 -07:00
f2e72b54ce
Define unique as a data type to match stdlib All and Any
2023-07-23 21:34:24 -07:00
d9c18fe483
Prove that maps are functional assuming uniqueness
2023-07-23 17:50:25 -07:00
ab7ed2039a
Add a generic Map module and prove its induced equivalence relation
2023-07-23 00:51:34 -07:00