diff options
author | Son Ho | 2024-03-08 08:50:50 +0100 |
---|---|---|
committer | Son Ho | 2024-03-08 08:50:50 +0100 |
commit | 46b126f4e0e86f14475bc310e150948434726dc7 (patch) | |
tree | 47f1ee50bfbb29c9c1d74c492f2c817f2709d2e0 /backends/lean/Base/Primitives/ArraySlice.lean | |
parent | f74647773d7dd21580fd938dd9b4e300719b0234 (diff) |
Update the handling of notations like #u32 or #isize
Diffstat (limited to '')
-rw-r--r-- | backends/lean/Base/Primitives/ArraySlice.lean | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/lean/Base/Primitives/ArraySlice.lean b/backends/lean/Base/Primitives/ArraySlice.lean index c90a85b8..e1a39d40 100644 --- a/backends/lean/Base/Primitives/ArraySlice.lean +++ b/backends/lean/Base/Primitives/ArraySlice.lean @@ -131,7 +131,7 @@ def Slice.new (α : Type u): Slice α := ⟨ [], by apply Scalar.cMax_suffices . -- TODO: very annoying that the α is an explicit parameter def Slice.len (α : Type u) (v : Slice α) : Usize := - Usize.ofIntCore v.val.len (by scalar_tac) (by scalar_tac) + Usize.ofIntCore v.val.len (by constructor <;> scalar_tac) @[simp] theorem Slice.len_val {α : Type u} (v : Slice α) : (Slice.len α v).val = v.length := |