Skip to content

Commit 9d51f9d

Browse files
authored
chore: bump to nightly-2026-03-22 (#284)
1 parent 2a6c86d commit 9d51f9d

File tree

7 files changed

+7
-11
lines changed

7 files changed

+7
-11
lines changed

HumanEvalLean/Common/Brackets.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ theorem isBalanced_eq_true_iff {openBracket closeBracket : Char} {s : String} (h
262262
generalize hwp : isBalanced openBracket closeBracket s = w
263263
apply Std.Do.Id.of_wp_run_eq hwp
264264
mvcgen
265-
case inv =>
265+
case inv1 =>
266266
exact Std.Do.StringInvariant.withEarlyReturn
267267
(fun pos depth => ⌜∀ t₁ t₂, pos.Splits t₁ t₂ → minBalance (parens openBracket closeBracket t₁) = 0 ∧ depth = balance (parens openBracket closeBracket t₁)⌝)
268268
(fun res depth => ⌜res = false ∧ ¬ IsBalanced (parens openBracket closeBracket s)⌝)

HumanEvalLean/HumanEval1.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ theorem goal {s : String} {hbal : IsBalanced (parens '(' ')' s)} :
5353
generalize hwp : separateParenGroups s = w
5454
apply Std.Do.Id.of_wp_run_eq hwp
5555
mvcgen
56-
case vc1.inv => exact ⇓⟨pos, ⟨curr, depth, result⟩⟩ =>
56+
case inv1 => exact ⇓⟨pos, ⟨curr, depth, result⟩⟩ =>
5757
⌜∀ t₁ t₂, pos.Splits t₁ t₂ →
5858
result.toList.flatMap (parens '(' ')') ++ (parens '(' ')' curr) = parens '(' ')' t₁ ∧
5959
result.toList.flatMap String.toList ++ curr.toList = t₁.toList.filter (fun c => c = '(' ∨ c = ')') ∧

HumanEvalLean/HumanEval119.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ theorem computeBalance_eq {s : String.Slice} :
4141
generalize hwp : computeBalance s = w
4242
apply Std.Do.Id.of_wp_run_eq hwp
4343
mvcgen
44-
case inv => exact (⇓(pos, ⟨bal, minBal⟩) => ⌜∀ (t₁ t₂ : String), pos.Splits t₁ t₂ →
44+
case inv1 => exact (⇓(pos, ⟨bal, minBal⟩) => ⌜∀ (t₁ t₂ : String), pos.Splits t₁ t₂ →
4545
bal = balance (parens '(' ')' t₁) ∧ minBal = minBalance (parens '(' ')' t₁)⌝)
4646
next pos _ hp bal minBal h newBal newMinBal ih =>
4747
simp only [↓Char.isValue, SPred.down_pure] at ⊢ ih

HumanEvalLean/HumanEval128.lean

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,7 @@ theorem List.product_eq_zero_iff {xs : List Int} :
4141

4242
theorem Option.of_wp {α} {prog : Option α} (P : Option α → Prop) :
4343
(⊢ₛ wp⟦prog⟧ post⟨fun a => ⌜P (some a)⌝, fun _ => ⌜P none⌝⟩) → P prog := by
44-
intro hspec
45-
simp only [wp, PredTrans.apply_pushOption, PredTrans.apply_Pure_pure, SPred.entails_nil,
46-
SPred.down_pure, forall_const] at hspec
47-
split at hspec
48-
case h_1 a s' heq => rw [← heq] at hspec; exact hspec
49-
case h_2 s' heq => rw [← heq] at hspec; exact hspec
44+
cases prog <;> simp [wp, Option.instWP._aux_1, OptionT.run]
5045

5146
theorem Option.of_wp_eq {α : Type} {x : Option α} {prog : Option α} (h : prog = x) (P : Option α → Prop) :
5247
(⊢ₛ wp⟦prog⟧ post⟨fun a => ⌜P (some a)⌝, fun _ => ⌜P none⌝⟩) → P x := by

HumanEvalLean/HumanEval129.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module
22

33
import Std
44
import all Init.Data.Range.Polymorphic.RangeIterator
5+
public meta import Std.Tactic.Do.Syntax
56
open Std Std.Do
67

78
set_option mvcgen.warning false

HumanEvalLean/HumanEval6.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ theorem computeMaxDepth_eq {s : String.Slice} :
3030
generalize hwp : computeMaxDepth s = w
3131
apply Std.Do.Id.of_wp_run_eq hwp
3232
mvcgen
33-
case inv => exact (⇓(pos, ⟨bal, maxBal⟩) => ⌜∀ (t₁ t₂ : String), pos.Splits t₁ t₂ →
33+
case inv1 => exact (⇓(pos, ⟨bal, maxBal⟩) => ⌜∀ (t₁ t₂ : String), pos.Splits t₁ t₂ →
3434
bal = balance (parens '(' ')' t₁) ∧ maxBal = maxBalance (parens '(' ')' t₁)⌝)
3535
next pos _ hp bal minBal h newBal newMinBal ih =>
3636
simp only [↓Char.isValue, SPred.down_pure] at ⊢ ih

lean-toolchain

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

0 commit comments

Comments
 (0)