ComputerAidedLL / click-and-collect

A web interactive tool for building proofs in the sequent calculus of Linear Logic, with its backend written in OCaml
GNU Lesser General Public License v2.1
17 stars 2 forks source link

Save proof #82

Closed olaure01 closed 3 years ago

olaure01 commented 3 years ago

Add a button to save the current proof, maybe by encoding json into a compact string and provide an url which uses it as an argument to display the proof back. If json is too verbose, maybe define an ad-hoc compressed representation of proofs or use marshaling (possibly on a datatype with minimal required information).

etiennecallies commented 3 years ago

I found this tool that compress/uncompress json object very well http://output.jsbin.com/cayuhox with algorithm lzma I tried it with a proof of ⊢ ?(A⅋A), ?(B⅋B⅋B), ?(A^⅋B^), ?(⊥⊗⊥) (which is one the biggest I saw for the moment) and the result is only 1387 bytes long (1.4% of the total length), therefore can fit in a URL (max ~2000 characters).

etiennecallies commented 3 years ago

Can be tested on preprod