summaryrefslogtreecommitdiff
path: root/Common/Parsing.lean
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2025-10-10 00:30:19 +0200
committerAndreas Grois <andi@grois.info>2025-10-10 00:30:19 +0200
commit2a9261d1ba962deff9fcc1784be44563af513af5 (patch)
treee6c805e970924027723a159aa751e9aa0269ce7b /Common/Parsing.lean
parent671ccf18e506398fd8eb65ebac92ec6d2fd03ccd (diff)
Lean 4.18
Diffstat (limited to 'Common/Parsing.lean')
-rw-r--r--Common/Parsing.lean2
1 files changed, 1 insertions, 1 deletions
diff --git a/Common/Parsing.lean b/Common/Parsing.lean
index b1ee779..8237613 100644
--- a/Common/Parsing.lean
+++ b/Common/Parsing.lean
@@ -103,7 +103,7 @@ instance [ToString Element] : ToString (MaybeEmptyRectangularGrid Element) where
have : x + e.width *y < e.elements.size := by
simp[Membership.mem, inferInstance, Std.instMembershipNatRange] at h₁ h₂
rw[e.size_valid]
- exact Nat.two_d_coordinate_to_index_lt_size h₁.right.left h₂.right.left
+ exact Nat.two_d_coordinate_to_index_lt_size h₁.left h₂.left
r := r ++ (ToString.toString e.elements[x+e.width*y])
r