File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -31,18 +31,12 @@ 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- apply LargestDivisorSpec.one
35- intro j hj hj'
36- apply hi' _ hj
37- exact Nat.mul_self_lt_mul_self_iff.1 (Nat.lt_of_le_of_lt hj' hni)
34+ have := @Nat.mul_self_lt_mul_self_iff i
35+ grind [LargestDivisorSpec.one]
3836 case case2 i hni hni' =>
39- exact LargestDivisorSpec.div hi' hi hni'
37+ grind [ LargestDivisorSpec.div]
4038 case case3 i hni hni' ih =>
41- apply ih (by omega)
42- intro j hj hij
43- by_cases hij' : j = i
44- · exact hij' ▸ hni'
45- · exact hi' _ hj (by omega)
39+ grind
4640
4741theorem largestDivisorSpec_largestDivisor {n : Nat} :
4842 LargestDivisorSpec n (largestDivisor n) := by
You can’t perform that action at this time.
0 commit comments