Skip to content

Commit 75a2f1f

Browse files
committed
Fix build
1 parent e91c2b7 commit 75a2f1f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

HumanEvalLean/HumanEval139.lean

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,14 @@ theorem special_factorial_func_correct {n : Nat} :
4646
fun_induction special_factorial.go with
4747
| case1 fact brazil_fact curr h =>
4848
rw [h₂]
49-
unfold special_factorial.go
50-
simp [h]
5149
have : curr = n := by omega
5250
rw [this]
5351
| case2 fact brazilFact curr h fact' brazilFact' ih =>
5452
simp only [ge_iff_le, Nat.not_le] at h
5553
simp only [h₁, Nat.succ_eq_add_one, Nat.factorial_succ, h₂, Nat.brazilianFactorial_succ,
5654
Nat.succ_le_of_lt h, forall_const, fact', brazilFact'] at ih
5755
have : ¬ curr >= n := by omega
58-
unfold special_factorial.go
59-
simp [this, h₁, h₂, ih]
56+
grind
6057

6158
theorem test1 : special_factorial 4 = 288 := by native_decide
6259
theorem test2 : special_factorial 5 = 34560 := by native_decide

0 commit comments

Comments
 (0)