Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update compiler/ExtractBuiltin.ml | Son HO | 2024-04-26 | 1 | -1/+1 |
| | | | Co-authored-by: Zyad Hassan <88045115+zhassan-aws@users.noreply.github.com> | ||||
* | Update the backend and ExtractBuiltin.ml | Son Ho | 2024-04-25 | 1 | -1/+4 |
| | |||||
* | Merge branch 'main' into core-option-unwrap | Son Ho | 2024-04-25 | 1 | -0/+25 |
|\ | |||||
| * | Merge branch 'main' into option-take | Son Ho | 2024-04-25 | 10 | -100/+212 |
| |\ | |||||
| * | | compiler: introduce Lean-only translations | Ryan Lahfa | 2024-04-24 | 1 | -10/+25 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On the long run, all backends will not have equivalent or equal support for extraction. This introduces a function to filter out some Lean-only definitions in our various arrays of core functions. Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr> | ||||
| * | | compiler: map `core::option::Option::is_none` to `Option.isNone` | Ryan Lahfa | 2024-04-24 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Our backend already have support for `isNone`, we just map it and filter out passing the actual type as it can be inferred via implicit types. Other backends than Lean are not done in this commit. Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr> | ||||
| * | | compiler: map `core::mem::swap` to the pure swap | Ryan Lahfa | 2024-04-24 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In the pure functional model, `swap` is mostly about borrow checking and should simplify to the pure swap in our backends. Other backends than Lean are not done in this commit. Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr> | ||||
| * | | compiler: map `core::option::Option::take` to identity function | Ryan Lahfa | 2024-04-17 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | `take` in a pure functional model is the identity function and everything related to borrow checking is handled by the forward/backward mechanism. Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr> | ||||
* | | | Add core::option::unwrap builtin | Zyad Hassan | 2024-04-24 | 1 | -0/+2 |
| |/ |/| | |||||
* | | Fix an issue when joining a symbolic value with bottom | Son Ho | 2024-04-22 | 2 | -11/+33 |
| | | |||||
* | | Reformat some files | Son Ho | 2024-04-22 | 5 | -24/+47 |
| | | |||||
* | | Merge pull request #146 from RaitoBezarius/main | Son HO | 2024-04-19 | 1 | -3/+69 |
|\ \ | | | | | | | fix(backends/lean): add a significant amount of keywords | ||||
| * | | fix(backends/lean): extract more keywords from `lstlean.tex` | Ryan Lahfa | 2024-04-18 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Taken from https://github.com/leanprover/lean4/blob/master/doc/latex/lstlean.tex#L33 and https://github.com/leanprover/lean4/blob/master/doc/latex/lstlean.tex#L36-L43. This will not extract the tactics. Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr> | ||||
| * | | fix(backends/lean): extract more keywords from `lstlean.latex` | Ryan Lahfa | 2024-04-18 | 1 | -0/+62 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Taken from https://github.com/leanprover/lean4/blob/master/doc/latex/lstlean.tex#L12 and sorted. Tactics are ignored. Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr> | ||||
| * | | chore(backends/lean): sort the keyword list | Ryan Lahfa | 2024-04-17 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | OCD. :D Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr> | ||||
| * | | fix(backends/lean): `from` is a keyword | Ryan Lahfa | 2024-04-17 | 1 | -0/+1 |
| | | | | | | | | | | | | Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr> | ||||
| * | | fix(backends/lean): `as` is a keyword | Ryan Lahfa | 2024-04-17 | 1 | -0/+1 |
| |/ | | | | | | | | | | | | | | | `as` is a reserved keyword and cannot be used as a variable name. Fixes #139. Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr> | ||||
* / | item_meta | Nadrieril | 2024-04-18 | 9 | -80/+81 |
|/ | |||||
* | Add more definitions to the Lean library | Son Ho | 2024-04-12 | 1 | -0/+73 |
| | |||||
* | Start adding integer functions to the Lean library | Son Ho | 2024-04-12 | 4 | -55/+181 |
| | |||||
* | Update the bindings for the extraction | Son Ho | 2024-04-12 | 1 | -14/+11 |
| | |||||
* | Merge branch 'son/clean' into checked-ops | Son Ho | 2024-04-11 | 26 | -259/+517 |
|\ | |||||
| * | Update a comment | Son Ho | 2024-04-11 | 1 | -2/+2 |
| | | |||||
| * | Merge remote-tracking branch 'origin/main' into son/clean | Son Ho | 2024-04-11 | 25 | -88/+250 |
| |\ | |||||
| | * | Reformat the code | Son Ho | 2024-04-11 | 1 | -9/+6 |
| | | | |||||
| | * | Update a comment | Son HO | 2024-04-11 | 1 | -1/+1 |
| | | | |||||
| | * | Trust rustc regarding `Copy` bounds | Nadrieril | 2024-04-10 | 3 | -7/+7 |
| | | | |||||
| | * | Improve the error messages further | Son Ho | 2024-04-07 | 3 | -1/+44 |
| | | | |||||
| | * | Cleanup a bit and improve the error messages | Son Ho | 2024-04-07 | 12 | -82/+91 |
| | | | |||||
| | * | Resolved comments and added the name of the not translated element | Escherichia | 2024-04-05 | 2 | -7/+18 |
| | | | |||||
| | * | resolved comments | Escherichia | 2024-04-05 | 3 | -99/+113 |
| | | | |||||
| | * | error catching should now be able to tell when code couldn't be generated | Escherichia | 2024-04-05 | 3 | -101/+144 |
| | | | |||||
| | * | Fix a minor issue | Son Ho | 2024-04-04 | 1 | -1/+1 |
| | | | |||||
| | * | Merge remote-tracking branch 'origin/main' into escherichia/error_catching | Son Ho | 2024-04-04 | 3 | -45/+86 |
| | |\ | |||||
| | * | | Update the way errors are reported | Son Ho | 2024-04-04 | 2 | -10/+7 |
| | | | | |||||
| | * | | Now prints all errors in the error_list | Escherichia | 2024-04-04 | 2 | -3/+11 |
| | | | | |||||
| | * | | Merge remote-tracking branch 'origin/main' into escherichia/error_catching | Escherichia | 2024-04-04 | 2 | -4/+1 |
| | |\ \ | |||||
| | * | | | resolved requested changes | Escherichia | 2024-04-03 | 1 | -1/+0 |
| | | | | | |||||
| | * | | | resolved requested changes | Escherichia | 2024-04-03 | 3 | -6/+4 |
| | | | | | |||||
| | * | | | added extract_ty_errors and extract_texpression_errors to deal with the ↵ | Escherichia | 2024-04-03 | 2 | -3/+10 |
| | | | | | | | | | | | | | | | | | | | | error case in their respective types | ||||
| | * | | | added Error and EError to expressions and propagated related changes | Escherichia | 2024-04-03 | 12 | -5/+41 |
| | | | | | |||||
| * | | | | Add field mk_return, mk_panic in SymbolicToPure.bs_ctx | Son Ho | 2024-04-04 | 2 | -90/+152 |
| | | | | | |||||
| * | | | | Update the extraction | Son Ho | 2024-04-04 | 8 | -34/+30 |
| | |_|/ | |/| | | |||||
| * | | | Merge pull request #109 from AeneasVerif/escherichia/names_collision | Son HO | 2024-04-04 | 1 | -31/+48 |
| |\ \ \ | | | | | | | | | | | Escherichia/names collision | ||||
| | * | | | Update a comment | Son Ho | 2024-04-04 | 1 | -3/+5 |
| | | | | | |||||
| | * | | | Make a minor modification | Son Ho | 2024-04-04 | 1 | -2/+4 |
| | | | | | |||||
| | * | | | Make minor modifications | Son Ho | 2024-04-04 | 1 | -15/+21 |
| | | | | | |||||
| | * | | | rebased branch | Escherichia | 2024-04-03 | 1 | -13/+19 |
| | | | | | |||||
| | * | | | Added meta information to names_map_id field in names_map type | Escherichia | 2024-04-03 | 1 | -22/+23 |
| | |/ / | |||||
| * | | | Make a minor update in SymbolicToPure | Son Ho | 2024-04-04 | 1 | -8/+7 |
| | | | |