From 59ee1eb89d7c1018858250832ff1a92af0cbeab6 Mon Sep 17 00:00:00 2001 From: Son HO Date: Tue, 25 Jun 2024 10:34:24 +0200 Subject: Bump Lean to v4.9.0rc3 (#261) --- backends/lean/Base/Primitives/ArraySlice.lean | 2 -- backends/lean/lake-manifest.json | 2 +- backends/lean/lean-toolchain | 2 +- tests/lean/Hashmap/Properties.lean | 3 --- tests/lean/lake-manifest.json | 2 +- tests/lean/lean-toolchain | 2 +- 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 -- cgit v1.2.3