Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion HumanEvalLean/HumanEval15.lean
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Std.Data.Iterators.Producers.Range
import Std

def stringSequence (n : Nat) : String :=
Std.Iter.intercalateString.{0} " " ((0...=n).iter.map (String.toSlice ∘ Nat.repr))
Std.Iter.intercalateString " " ((0...=n).iter.map (String.toSlice ∘ Nat.repr))

example : stringSequence 0 = "0" := by native_decide
example : stringSequence 3 = "0 1 2 3" := by native_decide
Expand Down
4 changes: 0 additions & 4 deletions HumanEvalLean/HumanEval27.lean
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ theorem toList_flipCase {string : String} : (flipCase string).toList = string.to

namespace Char

@[simp]
theorem toNat_mk {val : UInt32} {h} : (Char.mk val h).toNat = val.toNat := by
simp [← toNat_val]

theorem isUpper_flipCase {c : Char} : c.flipCase.isUpper ↔ c.isLower := by
grind [flipCase, isUpper, isLower, toUpper, toLower]

Expand Down
4 changes: 0 additions & 4 deletions HumanEvalLean/HumanEval50.lean
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ def encodeShift (s : String) : String :=
def decodeShift (s : String) : String :=
s.map Char.unshiftByFive

@[simp]
theorem Char.toNat_mk {val : UInt32} {h} : (Char.mk val h).toNat = val.toNat := by
simp [← toNat_val]

theorem Char.toNat_ofNat_of_isValidChar {n : Nat} (h : n.isValidChar) : (Char.ofNat n).toNat = n := by
simp [ofNat, h, ofNatAux]

Expand Down
2 changes: 1 addition & 1 deletion lean-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
leanprover/lean4:nightly-2026-03-24
leanprover/lean4:nightly-2026-03-25
Loading