From 019a99821b0b1287f265287fb5e5f855dcf627e0 Mon Sep 17 00:00:00 2001 From: Alessandro Sosso Date: Sat, 28 Mar 2026 13:39:17 +0100 Subject: [PATCH 1/3] fixed test case in problem_103.lean --- src/lean4/human_eval/problem_103.lean | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lean4/human_eval/problem_103.lean b/src/lean4/human_eval/problem_103.lean index 16c191b..37cc1d8 100644 --- a/src/lean4/human_eval/problem_103.lean +++ b/src/lean4/human_eval/problem_103.lean @@ -82,7 +82,7 @@ else -- #test implementation 7 13 = some "0b1010" -- #test implementation 964 977 = some "0b1111001010" -- #test implementation 996 997 = some "0b1111100100" --- #test implementation 185 546 = some "0b101101110" +-- #test implementation 185 546 = some "0b101101101" -- #test implementation 362 496 = some "0b110101101" -- #test implementation 350 902 = some "0b1001110010" -- #test implementation 197 233 = some "0b11010111" From 1fb6e4ff6c5d233f7bffaf4afc99858330717066 Mon Sep 17 00:00:00 2001 From: Alessandro Sosso Date: Sat, 28 Mar 2026 13:40:01 +0100 Subject: [PATCH 2/3] added missing generated_spec_body section in problem 3 and 5 in sample_examples --- src/lean4/sample_examples/problem_3.lean | 4 +++- src/lean4/sample_examples/problem_5.lean | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lean4/sample_examples/problem_3.lean b/src/lean4/sample_examples/problem_3.lean index e8b8ff0..9c00ebf 100644 --- a/src/lean4/sample_examples/problem_3.lean +++ b/src/lean4/sample_examples/problem_3.lean @@ -53,6 +53,8 @@ def generated_spec (impl: Nat → Nat) -- inputs (n: Nat) : Prop := +--end_def generated_spec +--start_def generated_spec_body -- spec let spec (result: Nat) := match n with @@ -62,7 +64,7 @@ match n with -- return value satisfies spec ∃ result, impl n = result ∧ spec result --- end_def generated_spec +-- end_def generated_spec_body -- start_def iso_helper_lemmas lemma fib0_unique (n : ℕ) (h : fibonacci_non_computable 0 n) : n = 0 := diff --git a/src/lean4/sample_examples/problem_5.lean b/src/lean4/sample_examples/problem_5.lean index 9d87c71..b6a6ab9 100644 --- a/src/lean4/sample_examples/problem_5.lean +++ b/src/lean4/sample_examples/problem_5.lean @@ -50,9 +50,11 @@ def generated_spec (impl: Nat → Nat) -- inputs (n: Nat) : Prop := +--end_def generated_spec +--start_def generated_spec_body -- spec sorry --- end_def generated_spec +-- end_def generated_spec_body -- start_def spec_isomorphism theorem spec_isomorphism: From 6a2917aa4593bf7415e623ac3931998facb2807a Mon Sep 17 00:00:00 2001 From: Alessandro Sosso Date: Sat, 28 Mar 2026 13:40:33 +0100 Subject: [PATCH 3/3] removed inconsistent by at the end of spec_isomorphism section in sample_examples/problem_1.lean --- src/lean4/sample_examples/problem_1.lean | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lean4/sample_examples/problem_1.lean b/src/lean4/sample_examples/problem_1.lean index 5b7644f..2dfc690 100644 --- a/src/lean4/sample_examples/problem_1.lean +++ b/src/lean4/sample_examples/problem_1.lean @@ -413,7 +413,7 @@ linarith theorem spec_isomorphism: ∀ impl, (∀ score_changes threshold, problem_spec impl score_changes threshold) ↔ -(∀ score_changes threshold, generated_spec impl score_changes threshold) := by +(∀ score_changes threshold, generated_spec impl score_changes threshold) := -- end_def spec_isomorphism -- start_def spec_isomorphism_proof sorry