File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -31,16 +31,13 @@ theorem largestDivisorSpec_go {n i : Nat} (hi : 2 ≤ i)
3131 (hi' : ∀ j, 2 ≤ j → j < i → n % j ≠ 0 ) : LargestDivisorSpec n (largestDivisor.go n i) := by
3232 fun_induction largestDivisor.go n i
3333 case case1 i hni =>
34- rw [largestDivisor.go, dif_pos hni]
3534 apply LargestDivisorSpec.one
3635 intro j hj hj'
3736 apply hi' _ hj
3837 exact Nat.mul_self_lt_mul_self_iff.1 (Nat.lt_of_le_of_lt hj' hni)
3938 case case2 i hni hni' =>
40- rw [largestDivisor.go, dif_neg hni, if_pos hni']
4139 exact LargestDivisorSpec.div hi' hi hni'
4240 case case3 i hni hni' ih =>
43- rw [largestDivisor.go, dif_neg hni, if_neg hni']
4441 apply ih (by omega)
4542 intro j hj hij
4643 by_cases hij' : j = i
Original file line number Diff line number Diff line change 1- leanprover/lean4:v4.20.1
1+ leanprover/lean4:nightly-2025-06-25
You can’t perform that action at this time.
0 commit comments