summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSon HO2024-06-25 10:34:24 +0200
committerGitHub2024-06-25 10:34:24 +0200
commit59ee1eb89d7c1018858250832ff1a92af0cbeab6 (patch)
tree929f0e5cfc43f75adaf2416d2440e8dc8266a976
parent56235fc39b4335059277a1a163ac86be816f61bf (diff)
Bump Lean to v4.9.0rc3 (#261)
-rw-r--r--backends/lean/Base/Primitives/ArraySlice.lean2
-rw-r--r--backends/lean/lake-manifest.json2
-rw-r--r--backends/lean/lean-toolchain2
-rw-r--r--tests/lean/Hashmap/Properties.lean3
-rw-r--r--tests/lean/lake-manifest.json2
-rw-r--r--tests/lean/lean-toolchain2
6 files changed, 4 insertions, 9 deletions
diff --git a/backends/lean/Base/Primitives/ArraySlice.lean b/backends/lean/Base/Primitives/ArraySlice.lean
index 3cc0f9c1..1fca6f99 100644
--- a/backends/lean/Base/Primitives/ArraySlice.lean
+++ b/backends/lean/Base/Primitives/ArraySlice.lean
@@ -333,8 +333,6 @@ theorem Slice.subslice_spec {α : Type u} [Inhabited α] (s : Slice α) (r : Ran
have := List.index_slice r.start.val r.end_.val i s.val (by scalar_tac) (by scalar_tac) (by trivial) (by scalar_tac)
simp [*]
-set_option pp.fieldNotation.generalized true
-
def Slice.update_subslice (α : Type u) (s : Slice α) (r : Range Usize) (ss : Slice α) : Result (Slice α) :=
-- TODO: not completely sure here
if h: r.start.val < r.end_.val ∧ r.end_.val ≤ s.length ∧ ss.val.len = r.end_.val - r.start.val then
diff --git a/backends/lean/lake-manifest.json b/backends/lean/lake-manifest.json
index aa2349c2..ff0deb45 100644
--- a/backends/lean/lake-manifest.json
+++ b/backends/lean/lake-manifest.json
@@ -58,7 +58,7 @@
{"url": "https://github.com/leanprover-community/mathlib4.git",
"type": "git",
"subDir": null,
- "rev": "77e1ea0a339a4663eced9cacc3a46eb45f967b51",
+ "rev": "a3001aa1c78e0d86b07a62daee3664e59ce08634",
"name": "mathlib",
"manifestFile": "lake-manifest.json",
"inputRev": null,
diff --git a/backends/lean/lean-toolchain b/backends/lean/lean-toolchain
index 29c0cea4..e5ea6600 100644
--- a/backends/lean/lean-toolchain
+++ b/backends/lean/lean-toolchain
@@ -1 +1 @@
-leanprover/lean4:v4.9.0-rc2
+leanprover/lean4:v4.9.0-rc3
diff --git a/tests/lean/Hashmap/Properties.lean b/tests/lean/Hashmap/Properties.lean
index 76bd2598..6c27b2dd 100644
--- a/tests/lean/Hashmap/Properties.lean
+++ b/tests/lean/Hashmap/Properties.lean
@@ -341,9 +341,6 @@ theorem if_update_eq
def mk_opaque {α : Sort u} (x : α) : { y : α // y = x} :=
⟨ x, by simp ⟩
--- For pretty printing (useful when copy-pasting goals)
-set_option pp.coercions false -- do not print coercions with ↑ (this doesn't parse)
-
@[pspec]
theorem insert_no_resize_spec {α : Type} (hm : HashMap α) (key : Usize) (value : α)
(hinv : hm.inv) (hnsat : hm.lookup key = none → hm.len_s < Usize.max) :
diff --git a/tests/lean/lake-manifest.json b/tests/lean/lake-manifest.json
index 94b2f080..b112ad38 100644
--- a/tests/lean/lake-manifest.json
+++ b/tests/lean/lake-manifest.json
@@ -58,7 +58,7 @@
{"url": "https://github.com/leanprover-community/mathlib4.git",
"type": "git",
"subDir": null,
- "rev": "77e1ea0a339a4663eced9cacc3a46eb45f967b51",
+ "rev": "a3001aa1c78e0d86b07a62daee3664e59ce08634",
"name": "mathlib",
"manifestFile": "lake-manifest.json",
"inputRev": null,
diff --git a/tests/lean/lean-toolchain b/tests/lean/lean-toolchain
index 29c0cea4..e5ea6600 100644
--- a/tests/lean/lean-toolchain
+++ b/tests/lean/lean-toolchain
@@ -1 +1 @@
-leanprover/lean4:v4.9.0-rc2
+leanprover/lean4:v4.9.0-rc3