There was an error while loading. Please reload this page.
1 parent 0aca2e3 commit ea1e22aCopy full SHA for ea1e22a
1 file changed
backends/lean/Aeneas/Std/Primitives.lean
@@ -126,11 +126,11 @@ def Result.ofOption {a : Type u} (x : Option a) (e : Error) : Result a :=
126
| div => div
127
128
-- Allows using Result in do-blocks
129
-@[expose] instance : Bind Result where
+instance : Bind Result where
130
bind := bind
131
132
-- Allows using pure x in do-blocks
133
-@[expose] instance : Pure Result where
+instance : Pure Result where
134
pure := fun x => ok x
135
136
@[simp] theorem bind_ok (x : α) (f : α → Result β) : bind (.ok x) f = f x := by simp [bind]
@@ -159,7 +159,7 @@ def bind_eq_iff (x : Result α) (y y' : α → Result β) :
159
∀ v, x = ok v → y v = y' v := by
160
cases x <;> simp_all
161
162
-@[expose] instance : Monad Result where
+instance : Monad Result where
163
164
/-!
165
# Partial Fixpoint
0 commit comments