summaryrefslogtreecommitdiff
path: root/backends/lean
diff options
context:
space:
mode:
authorSon Ho2023-05-15 13:08:49 +0200
committerSon HO2023-06-04 21:44:33 +0200
commit72d35d4ce84a863bb4d96b844fb552028d94234a (patch)
tree5f1ac95a2a7600e95f375bf3e0c22edf06059192 /backends/lean
parent9f806e52580c806b1dc3e963c0dfdd1dbfed7263 (diff)
Add Result_Inhabited to Primitives.lean
Diffstat (limited to 'backends/lean')
-rw-r--r--backends/lean/Primitives.lean3
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/lean/Primitives.lean b/backends/lean/Primitives.lean
index 034f41b2..4a66a453 100644
--- a/backends/lean/Primitives.lean
+++ b/backends/lean/Primitives.lean
@@ -49,6 +49,9 @@ deriving Repr, BEq
open Result
+instance Result_Inhabited (α : Type u) : Inhabited (Result α) :=
+ Inhabited.mk (fail panic)
+
/- HELPERS -/
def ret? {α: Type} (r: Result α): Bool :=