Skip to content

Commit d43470f

Browse files
committed
uses lean 4.22
1 parent 59a2c8d commit d43470f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

HumanEvalLean/HumanEval75.lean

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Std.Tactic.Do
2+
13
def isPrime (n : Nat) : Bool := Id.run do
24
let mut i := 2
35
while i * i ≤ n do
@@ -40,8 +42,7 @@ example : isMultiplyPrime (9 * 9 * 9) = false := by native_decide
4042
def Nat.IsPrime (n : Nat) : Prop :=
4143
n > 1 ∧ ∀ m, m ∣ n → m = 1 ∨ m = n
4244

43-
theorem isPrime_is_correct (n : Nat) : isPrime n ↔ Nat.IsPrime n := by
44-
sorry
45+
theorem isPrime_is_correct (n : Nat) : isPrime n ↔ Nat.IsPrime n := by sorry
4546

4647
def IsMultiplyPrimeIff (solution : Nat → Bool) : Prop :=
4748
(a : Nat) → solution a ↔ ∃ (p₁ p₂ p₃ : Nat), p₁ * p₂ * p₃ = a ∧ Nat.IsPrime p₁ ∧ Nat.IsPrime p₂ ∧ Nat.IsPrime p₃

lean-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
leanprover/lean4:v4.21.0
1+
leanprover/lean4:v4.22.0-rc1

0 commit comments

Comments
 (0)