diff options
author | Son Ho | 2024-04-04 15:48:25 +0200 |
---|---|---|
committer | Son Ho | 2024-04-04 15:48:25 +0200 |
commit | a882e28134dc6c44e7a2b5b82eb42041e9a1f342 (patch) | |
tree | 98a00a150d03b8088df62550a6d8ab0f23c0e779 /tests/lean/Paper.lean | |
parent | 1f3ce79023d902d0145da38e878d991a6ba29236 (diff) | |
parent | 7f7387c5519da00133ad557450695e6d6838f93c (diff) |
Merge remote-tracking branch 'origin/main' into escherichia/error_catching
Diffstat (limited to '')
-rw-r--r-- | tests/lean/Paper.lean | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/lean/Paper.lean b/tests/lean/Paper.lean index 924ff36c..5b00aa83 100644 --- a/tests/lean/Paper.lean +++ b/tests/lean/Paper.lean @@ -29,10 +29,10 @@ def choose Result (T × (T → Result (T × T))) := if b - then let back_'a := fun ret => Result.ret (ret, y) - Result.ret (x, back_'a) - else let back_'a := fun ret => Result.ret (x, ret) - Result.ret (y, back_'a) + then let back := fun ret => Result.ret (ret, y) + Result.ret (x, back) + else let back := fun ret => Result.ret (x, ret) + Result.ret (y, back) /- [paper::test_choose]: Source: 'src/paper.rs', lines 23:0-23:20 -/ @@ -68,18 +68,18 @@ divergent def list_nth_mut | List.Cons x tl => if i = 0#u32 then - let back_'a := fun ret => Result.ret (List.Cons ret tl) - Result.ret (x, back_'a) + let back := fun ret => Result.ret (List.Cons ret tl) + Result.ret (x, back) else do let i1 ← i - 1#u32 let (t, list_nth_mut_back) ← list_nth_mut T tl i1 - let back_'a := + let back := fun ret => do let tl1 ← list_nth_mut_back ret Result.ret (List.Cons x tl1) - Result.ret (t, back_'a) + Result.ret (t, back) | List.Nil => Result.fail .panic /- [paper::sum]: |