Skip to content

Commit b7ed6f4

Browse files
authored
chore: bump toolchain to 2026-07-08 (#885)
Remove Char.utf16Size because it got moved into the `Lean` namespace in leanprover/lean4#14307, and modify the example for "Missing `WPMonad` Instance" to avoid problems with implicit_reducible changes.
1 parent 0255755 commit b7ed6f4

4 files changed

Lines changed: 9 additions & 12 deletions

File tree

Manual/BasicTypes/Char.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,3 @@ tag := "char-api-classes"
180180
## Unicode
181181

182182
{docstring Char.utf8Size}
183-
184-
{docstring Char.utf16Size}

Manual/VCGen.lean

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -444,25 +444,24 @@ set_option mvcgen.warning false
444444

445445
```
446446

447-
This reimplementation of {name}`Id` has a {name}`WP` instance, but no {name}`WPMonad` instance:
447+
The single-field structure {name}`Identity` acts like the identity monad {name}`Id`. It has a {name}`WP` instance, but no {name}`WPMonad` instance:
448448
```lean
449-
def Identity (α : Type u) : Type u := α
449+
structure Identity (α : Type u) where
450+
run : α
450451

451452
variable {α : Type u}
452453

453-
def Identity.run (act : Identity α) : α := act
454-
455454
instance : Monad Identity where
456-
pure x := x
457-
bind x f := f x
455+
pure x := ⟨x⟩
456+
bind x f := f x.run
458457

459458
instance : WP Identity .pure where
460-
wp x := PredTrans.pure x
459+
wp x := PredTrans.pure x.run
461460

462461
theorem Identity.of_wp_run_eq {x : α} {prog : Identity α}
463462
(h : Identity.run prog = x) (P : α → Prop) :
464463
(⊢ₛ wp⟦prog⟧ (⇓ a => ⟨P a⟩)) → P x := by
465-
simp_all [WP.wp, Identity.run, ← h]
464+
simp_all [WP.wp, ← h]
466465
```
467466

468467
```lean -show

lake-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"name": "illuminate",
2020
"manifestFile": "lake-manifest.json",
2121
"inputRev": "main",
22-
"inherited": true,
22+
"inherited": false,
2323
"configFile": "lakefile.lean"},
2424
{"url": "https://github.com/leanprover/verso-web-components",
2525
"type": "git",

lean-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
leanprover/lean4:nightly-2026-07-03
1+
leanprover/lean4:nightly-2026-07-08

0 commit comments

Comments
 (0)