diff options
author | Son Ho | 2023-03-07 17:49:03 +0100 |
---|---|---|
committer | Son HO | 2023-06-04 21:44:33 +0200 |
commit | 4db56fe2c963a4052f8415b3985c8765407fccbc (patch) | |
tree | 53c5f05469bb3946547c418176f35d840dbe6012 /tests/lean/betree | |
parent | 051e2a19f3268d272a0acd0425d2107ebea020c5 (diff) |
Update the extraction of Lean files
Diffstat (limited to '')
-rw-r--r-- | tests/lean/betree/BetreeMain.lean | 1 | ||||
-rw-r--r-- | tests/lean/betree/BetreeMain/Types.lean | 18 | ||||
-rw-r--r-- | tests/lean/betree/lake-manifest.json | 27 | ||||
-rw-r--r-- | tests/lean/betree/lakefile.lean | 14 | ||||
-rw-r--r-- | tests/lean/betree/lean-toolchain | 1 |
5 files changed, 39 insertions, 22 deletions
diff --git a/tests/lean/betree/BetreeMain.lean b/tests/lean/betree/BetreeMain.lean new file mode 100644 index 00000000..5f307877 --- /dev/null +++ b/tests/lean/betree/BetreeMain.lean @@ -0,0 +1 @@ +import BetreeMain.Funs diff --git a/tests/lean/betree/BetreeMain/Types.lean b/tests/lean/betree/BetreeMain/Types.lean index 2726e1f0..e2e6c867 100644 --- a/tests/lean/betree/BetreeMain/Types.lean +++ b/tests/lean/betree/BetreeMain/Types.lean @@ -20,9 +20,8 @@ inductive betree_message_t := /- [betree_main::betree::Leaf] -/ structure betree_leaf_t where - - betree_leaf_id : UInt64 betree_leaf_size : UInt64 - + betree_leaf_id : UInt64 + betree_leaf_size : UInt64 /- [betree_main::betree::Node] -/ mutual inductive betree_node_t := @@ -31,31 +30,26 @@ mutual inductive betree_node_t := /- [betree_main::betree::Internal] -/ inductive betree_internal_t := - betree_internal_id : UInt64 betree_internal_pivot : UInt64 betree_internal_left : betree_node_t betree_internal_right : betree_node_t - /- [betree_main::betree::Params] -/ structure betree_params_t where - - betree_params_min_flush_size : UInt64 betree_params_split_size : UInt64 - + betree_params_min_flush_size : UInt64 + betree_params_split_size : UInt64 /- [betree_main::betree::NodeIdCounter] -/ structure betree_node_id_counter_t where - betree_node_id_counter_next_node_id : UInt64 - /- [betree_main::betree::BeTree] -/ structure betree_be_tree_t where - betree_be_tree_params : betree_params_t betree_be_tree_node_id_cnt : betree_node_id_counter_t betree_be_tree_root : betree_node_t -/- The state type used in the state-error monad -/ axiom State : Type +/- The state type used in the state-error monad -/ +axiom State : Type diff --git a/tests/lean/betree/lake-manifest.json b/tests/lean/betree/lake-manifest.json new file mode 100644 index 00000000..57b071ca --- /dev/null +++ b/tests/lean/betree/lake-manifest.json @@ -0,0 +1,27 @@ +{"version": 4, + "packagesDir": "./lake-packages", + "packages": + [{"git": + {"url": "https://github.com/leanprover-community/mathlib4.git", + "subDir?": null, + "rev": "4037792ead804d7bfa8868e2c4684d4223c15ece", + "name": "mathlib", + "inputRev?": null}}, + {"git": + {"url": "https://github.com/gebner/quote4", + "subDir?": null, + "rev": "2412c4fdf4a8b689f4467618e5e7b371ae5014aa", + "name": "Qq", + "inputRev?": "master"}}, + {"git": + {"url": "https://github.com/JLimperg/aesop", + "subDir?": null, + "rev": "7fe9ecd9339b0e1796e89d243b776849c305c690", + "name": "aesop", + "inputRev?": "master"}}, + {"git": + {"url": "https://github.com/leanprover/std4", + "subDir?": null, + "rev": "24897887905b3a1254b244369f5dd2cf6174b0ee", + "name": "std", + "inputRev?": "main"}}]} diff --git a/tests/lean/betree/lakefile.lean b/tests/lean/betree/lakefile.lean index aa702300..ac2cc2d8 100644 --- a/tests/lean/betree/lakefile.lean +++ b/tests/lean/betree/lakefile.lean @@ -4,15 +4,9 @@ open Lake DSL require mathlib from git "https://github.com/leanprover-community/mathlib4.git" -package «betree_main» { - -- add package configuration options here -} +package «betree_main» {} -lean_lib «Base» { - -- add library configuration options here -} - -lean_lib «BetreeMain» { - -- add library configuration options here -} +lean_lib «Base» {} +@[default_target] +lean_lib «BetreeMain» {} diff --git a/tests/lean/betree/lean-toolchain b/tests/lean/betree/lean-toolchain new file mode 100644 index 00000000..bbf57f10 --- /dev/null +++ b/tests/lean/betree/lean-toolchain @@ -0,0 +1 @@ +leanprover/lean4:nightly-2023-01-21 |