Skip to content

Commit 162050b

Browse files
committed
fix: mark Intermediate.zip as noncomputable
1 parent bf86966 commit 162050b

File tree

1 file changed

+9
-1
lines changed
  • src/Std/Data/Iterators/Lemmas/Combinators

1 file changed

+9
-1
lines changed

src/Std/Data/Iterators/Lemmas/Combinators/Zip.lean

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@ namespace Std.Iterators
1515

1616
variable {α₁ α₂ β₁ β₂ : Type w} {m : Type w → Type w'}
1717

18-
def Iter.Intermediate.zip [Iterator α₁ Id β₁]
18+
/--
19+
Constructs intermediate states of an iterator created with the combinator `Iter.zip`.
20+
When `left.zip right` has already obtained a value from `left` but not yet from right,
21+
it remembers `left`'s value in a field of its internal state. This intermediate state
22+
cannot be created directly with `Iter.zip`.
23+
24+
`Intermediate.zip` is meant to be used only for verification purposes.
25+
-/
26+
noncomputable def Iter.Intermediate.zip [Iterator α₁ Id β₁]
1927
(it₁ : Iter (α := α₁) β₁)
2028
(memo : (Option { out : β₁ //
2129
∃ it : Iter (α := α₁) β₁, it.toIterM.IsPlausibleOutput out }))

0 commit comments

Comments
 (0)