url stringclasses 147
values | commit stringclasses 147
values | file_path stringlengths 7 101 | full_name stringlengths 1 94 | start stringlengths 6 10 | end stringlengths 6 11 | tactic stringlengths 1 11.2k | state_before stringlengths 3 2.09M | state_after stringlengths 6 2.09M | input stringlengths 73 2.09M |
|---|---|---|---|---|---|---|---|---|---|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_4 | [70, 1] | [77, 7] | rw [hx] | case h
f g : β β β
xβ : β
hf : SurjectiveFunction f
y x : β
hx : f x = (y - 1) / 2
β’ 1 + f x * 2 = y | case h
f g : β β β
xβ : β
hf : SurjectiveFunction f
y x : β
hx : f x = (y - 1) / 2
β’ 1 + (y - 1) / 2 * 2 = y | Please generate a tactic in lean4 to solve the state.
STATE:
case h
f g : β β β
xβ : β
hf : SurjectiveFunction f
y x : β
hx : f x = (y - 1) / 2
β’ 1 + f x * 2 = y
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_4 | [70, 1] | [77, 7] | ring | case h
f g : β β β
xβ : β
hf : SurjectiveFunction f
y x : β
hx : f x = (y - 1) / 2
β’ 1 + (y - 1) / 2 * 2 = y | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h
f g : β β β
xβ : β
hf : SurjectiveFunction f
y x : β
hx : f x = (y - 1) / 2
β’ 1 + (y - 1) / 2 * 2 = y
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_5 | [97, 1] | [102, 9] | intro k | s t : β β β
k : β
β’ EventuallyGrowsFaster (fun n => n * s n) s | s t : β β β
kβ k : β
β’ β N, β n β₯ N, k * s n β€ (fun n => n * s n) n | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
k : β
β’ EventuallyGrowsFaster (fun n => n * s n) s
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_5 | [97, 1] | [102, 9] | use k | s t : β β β
kβ k : β
β’ β N, β n β₯ N, k * s n β€ (fun n => n * s n) n | case h
s t : β β β
kβ k : β
β’ β n β₯ k, k * s n β€ (fun n => n * s n) n | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
kβ k : β
β’ β N, β n β₯ N, k * s n β€ (fun n => n * s n) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_5 | [97, 1] | [102, 9] | intro n hnk | case h
s t : β β β
kβ k : β
β’ β n β₯ k, k * s n β€ (fun n => n * s n) n | case h
s t : β β β
kβ k n : β
hnk : n β₯ k
β’ k * s n β€ (fun n => n * s n) n | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ k : β
β’ β n β₯ k, k * s n β€ (fun n => n * s n) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_5 | [97, 1] | [102, 9] | simp | case h
s t : β β β
kβ k n : β
hnk : n β₯ k
β’ k * s n β€ (fun n => n * s n) n | case h
s t : β β β
kβ k n : β
hnk : n β₯ k
β’ k * s n β€ n * s n | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ k n : β
hnk : n β₯ k
β’ k * s n β€ (fun n => n * s n) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_5 | [97, 1] | [102, 9] | gcongr | case h
s t : β β β
kβ k n : β
hnk : n β₯ k
β’ k * s n β€ n * s n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ k n : β
hnk : n β₯ k
β’ k * s n β€ n * s n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | useful_fact | [106, 1] | [106, 71] | simp | s t : β β β
k a b c : β
β’ c β₯ max a b β c β₯ a β§ c β₯ b | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
k a b c : β
β’ c β₯ max a b β c β₯ a β§ c β₯ b
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_6 | [108, 1] | [123, 15] | intro k | s t : β β β
k : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
β’ EventuallyGrowsFaster (sβ + sβ) (tβ + tβ) | s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k : β
β’ β N, β n β₯ N, k * (tβ + tβ) n β€ (sβ + sβ) n | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
k : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
β’ EventuallyGrowsFaster (sβ + sβ) (tβ + tβ)
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_6 | [108, 1] | [123, 15] | obtain β¨Nβ, hNββ© := hβ k | s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k : β
β’ β N, β n β₯ N, k * (tβ + tβ) n β€ (sβ + sβ) n | case intro
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
β’ β N, β n β₯ N, k * (tβ + tβ) n β€ (sβ + sβ) n | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k : β
β’ β N, β n β₯ N, k * (tβ + tβ) n β€ (sβ + sβ) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_6 | [108, 1] | [123, 15] | obtain β¨Nβ, hNββ© := hβ k | case intro
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
β’ β N, β n β₯ N, k * (tβ + tβ) n β€ (sβ + sβ) n | case intro.intro
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
β’ β N, β n β₯ N, k * (tβ + tβ) n β€ (sβ + sβ) n | Please generate a tactic in lean4 to solve the state.
STATE:
case intro
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
β’ β N, β n β₯ N, k * (tβ + tβ) n β€ (sβ + sβ) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_6 | [108, 1] | [123, 15] | use max Nβ Nβ | case intro.intro
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
β’ β N, β n β₯ N, k * (tβ + tβ) n β€ (sβ + sβ) n | case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
β’ β n β₯ max Nβ Nβ, k * (tβ + tβ) n β€ (sβ + sβ) n | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
β’ β N, β n β₯ N, k * (tβ + tβ) n β€ (sβ + sβ) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_6 | [108, 1] | [123, 15] | intro n hn | case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
β’ β n β₯ max Nβ Nβ, k * (tβ + tβ) n β€ (sβ + sβ) n | case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ max Nβ Nβ
β’ k * (tβ + tβ) n β€ (sβ + sβ) n | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
β’ β n β₯ max Nβ Nβ, k * (tβ + tβ) n β€ (sβ + sβ) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_6 | [108, 1] | [123, 15] | rw [useful_fact] at hn | case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ max Nβ Nβ
β’ k * (tβ + tβ) n β€ (sβ + sβ) n | case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * (tβ + tβ) n β€ (sβ + sβ) n | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ max Nβ Nβ
β’ k * (tβ + tβ) n β€ (sβ + sβ) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_6 | [108, 1] | [123, 15] | simp | case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * (tβ + tβ) n β€ (sβ + sβ) n | case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * (tβ n + tβ n) β€ sβ n + sβ n | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * (tβ + tβ) n β€ (sβ + sβ) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_6 | [108, 1] | [123, 15] | rw [mul_add] | case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * (tβ n + tβ n) β€ sβ n + sβ n | case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * tβ n + k * tβ n β€ sβ n + sβ n | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * (tβ n + tβ n) β€ sβ n + sβ n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_6 | [108, 1] | [123, 15] | gcongr | case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * tβ n + k * tβ n β€ sβ n + sβ n | case h.hβ
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * tβ n β€ sβ n
case h.hβ
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * tβ n β€ sβ n | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * tβ n + k * tβ n β€ sβ n + sβ n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_6 | [108, 1] | [123, 15] | apply hNβ | case h.hβ
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * tβ n β€ sβ n | case h.hβ.a
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ n β₯ Nβ | Please generate a tactic in lean4 to solve the state.
STATE:
case h.hβ
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * tβ n β€ sβ n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_6 | [108, 1] | [123, 15] | exact hn.1 | case h.hβ.a
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ n β₯ Nβ | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h.hβ.a
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ n β₯ Nβ
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_6 | [108, 1] | [123, 15] | apply hNβ | case h.hβ
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * tβ n β€ sβ n | case h.hβ.a
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ n β₯ Nβ | Please generate a tactic in lean4 to solve the state.
STATE:
case h.hβ
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ k * tβ n β€ sβ n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_6 | [108, 1] | [123, 15] | exact hn.2 | case h.hβ.a
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ n β₯ Nβ | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h.hβ.a
s t : β β β
kβ : β
sβ sβ tβ tβ : β β β
hβ : EventuallyGrowsFaster sβ tβ
hβ : EventuallyGrowsFaster sβ tβ
k Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
Nβ : β
hNβ : β n β₯ Nβ, k * tβ n β€ sβ n
n : β
hn : n β₯ Nβ β§ n β₯ Nβ
β’ n β₯ Nβ
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7 | [127, 1] | [140, 27] | use fun n β¦ n ^ n | s t : β β β
k : β
β’ β s, EventuallyGrowsFaster (fun n => s (n + 1)) s β§ β (n : β), s n β 0 | case h
s t : β β β
k : β
β’ (EventuallyGrowsFaster (fun n => (n + 1) ^ (n + 1)) fun n => n ^ n) β§ β (n : β), n ^ n β 0 | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
k : β
β’ β s, EventuallyGrowsFaster (fun n => s (n + 1)) s β§ β (n : β), s n β 0
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7 | [127, 1] | [140, 27] | constructor | case h
s t : β β β
k : β
β’ (EventuallyGrowsFaster (fun n => (n + 1) ^ (n + 1)) fun n => n ^ n) β§ β (n : β), n ^ n β 0 | case h.left
s t : β β β
k : β
β’ EventuallyGrowsFaster (fun n => (n + 1) ^ (n + 1)) fun n => n ^ n
case h.right
s t : β β β
k : β
β’ β (n : β), n ^ n β 0 | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
k : β
β’ (EventuallyGrowsFaster (fun n => (n + 1) ^ (n + 1)) fun n => n ^ n) β§ β (n : β), n ^ n β 0
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7 | [127, 1] | [140, 27] | intro k | case h.left
s t : β β β
k : β
β’ EventuallyGrowsFaster (fun n => (n + 1) ^ (n + 1)) fun n => n ^ n | case h.left
s t : β β β
kβ k : β
β’ β N, β n β₯ N, k * (fun n => n ^ n) n β€ (fun n => (n + 1) ^ (n + 1)) n | Please generate a tactic in lean4 to solve the state.
STATE:
case h.left
s t : β β β
k : β
β’ EventuallyGrowsFaster (fun n => (n + 1) ^ (n + 1)) fun n => n ^ n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7 | [127, 1] | [140, 27] | use k | case h.left
s t : β β β
kβ k : β
β’ β N, β n β₯ N, k * (fun n => n ^ n) n β€ (fun n => (n + 1) ^ (n + 1)) n | case h
s t : β β β
kβ k : β
β’ β n β₯ k, k * (fun n => n ^ n) n β€ (fun n => (n + 1) ^ (n + 1)) n | Please generate a tactic in lean4 to solve the state.
STATE:
case h.left
s t : β β β
kβ k : β
β’ β N, β n β₯ N, k * (fun n => n ^ n) n β€ (fun n => (n + 1) ^ (n + 1)) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7 | [127, 1] | [140, 27] | intro n hn | case h
s t : β β β
kβ k : β
β’ β n β₯ k, k * (fun n => n ^ n) n β€ (fun n => (n + 1) ^ (n + 1)) n | case h
s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * (fun n => n ^ n) n β€ (fun n => (n + 1) ^ (n + 1)) n | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ k : β
β’ β n β₯ k, k * (fun n => n ^ n) n β€ (fun n => (n + 1) ^ (n + 1)) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7 | [127, 1] | [140, 27] | simp | case h
s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * (fun n => n ^ n) n β€ (fun n => (n + 1) ^ (n + 1)) n | case h
s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * n ^ n β€ (n + 1) ^ (n + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * (fun n => n ^ n) n β€ (fun n => (n + 1) ^ (n + 1)) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7 | [127, 1] | [140, 27] | calc k * n ^ n β€ n * n ^ n := by gcongr
_ = n ^ (n + 1) := by ring
_ β€ (n + 1) ^ (n + 1) := by
gcongr
simp | case h
s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * n ^ n β€ (n + 1) ^ (n + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * n ^ n β€ (n + 1) ^ (n + 1)
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7 | [127, 1] | [140, 27] | gcongr | s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * n ^ n β€ n * n ^ n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * n ^ n β€ n * n ^ n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7 | [127, 1] | [140, 27] | ring | s t : β β β
kβ k n : β
hn : n β₯ k
β’ n * n ^ n = n ^ (n + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
kβ k n : β
hn : n β₯ k
β’ n * n ^ n = n ^ (n + 1)
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7 | [127, 1] | [140, 27] | gcongr | s t : β β β
kβ k n : β
hn : n β₯ k
β’ n ^ (n + 1) β€ (n + 1) ^ (n + 1) | case hab
s t : β β β
kβ k n : β
hn : n β₯ k
β’ n β€ n + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
kβ k n : β
hn : n β₯ k
β’ n ^ (n + 1) β€ (n + 1) ^ (n + 1)
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7 | [127, 1] | [140, 27] | simp | case hab
s t : β β β
kβ k n : β
hn : n β₯ k
β’ n β€ n + 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case hab
s t : β β β
kβ k n : β
hn : n β₯ k
β’ n β€ n + 1
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7 | [127, 1] | [140, 27] | intro n | case h.right
s t : β β β
k : β
β’ β (n : β), n ^ n β 0 | case h.right
s t : β β β
k n : β
β’ n ^ n β 0 | Please generate a tactic in lean4 to solve the state.
STATE:
case h.right
s t : β β β
k : β
β’ β (n : β), n ^ n β 0
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7 | [127, 1] | [140, 27] | apply pow_self_ne_zero | case h.right
s t : β β β
k n : β
β’ n ^ n β 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h.right
s t : β β β
k n : β
β’ n ^ n β 0
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7' | [143, 1] | [156, 11] | use fun n β¦ n! | s t : β β β
k : β
β’ β s, EventuallyGrowsFaster (fun n => s (n + 1)) s β§ β (n : β), s n β 0 | case h
s t : β β β
k : β
β’ (EventuallyGrowsFaster (fun n => (n + 1)!) fun n => n !) β§ β (n : β), n ! β 0 | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
k : β
β’ β s, EventuallyGrowsFaster (fun n => s (n + 1)) s β§ β (n : β), s n β 0
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7' | [143, 1] | [156, 11] | constructor | case h
s t : β β β
k : β
β’ (EventuallyGrowsFaster (fun n => (n + 1)!) fun n => n !) β§ β (n : β), n ! β 0 | case h.left
s t : β β β
k : β
β’ EventuallyGrowsFaster (fun n => (n + 1)!) fun n => n !
case h.right
s t : β β β
k : β
β’ β (n : β), n ! β 0 | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
k : β
β’ (EventuallyGrowsFaster (fun n => (n + 1)!) fun n => n !) β§ β (n : β), n ! β 0
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7' | [143, 1] | [156, 11] | intro k | case h.left
s t : β β β
k : β
β’ EventuallyGrowsFaster (fun n => (n + 1)!) fun n => n ! | case h.left
s t : β β β
kβ k : β
β’ β N, β n β₯ N, k * (fun n => n !) n β€ (fun n => (n + 1)!) n | Please generate a tactic in lean4 to solve the state.
STATE:
case h.left
s t : β β β
k : β
β’ EventuallyGrowsFaster (fun n => (n + 1)!) fun n => n !
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7' | [143, 1] | [156, 11] | use k | case h.left
s t : β β β
kβ k : β
β’ β N, β n β₯ N, k * (fun n => n !) n β€ (fun n => (n + 1)!) n | case h
s t : β β β
kβ k : β
β’ β n β₯ k, k * (fun n => n !) n β€ (fun n => (n + 1)!) n | Please generate a tactic in lean4 to solve the state.
STATE:
case h.left
s t : β β β
kβ k : β
β’ β N, β n β₯ N, k * (fun n => n !) n β€ (fun n => (n + 1)!) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7' | [143, 1] | [156, 11] | intro n hn | case h
s t : β β β
kβ k : β
β’ β n β₯ k, k * (fun n => n !) n β€ (fun n => (n + 1)!) n | case h
s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * (fun n => n !) n β€ (fun n => (n + 1)!) n | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ k : β
β’ β n β₯ k, k * (fun n => n !) n β€ (fun n => (n + 1)!) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7' | [143, 1] | [156, 11] | simp | case h
s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * (fun n => n !) n β€ (fun n => (n + 1)!) n | case h
s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * n ! β€ (n + 1)! | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * (fun n => n !) n β€ (fun n => (n + 1)!) n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7' | [143, 1] | [156, 11] | calc k * n! β€ n * n! := by gcongr
_ β€ (n + 1) * n! := by
gcongr
exact?
_ = (n + 1)! := by rfl | case h
s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * n ! β€ (n + 1)! | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * n ! β€ (n + 1)!
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7' | [143, 1] | [156, 11] | gcongr | s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * n ! β€ n * n ! | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
kβ k n : β
hn : n β₯ k
β’ k * n ! β€ n * n !
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7' | [143, 1] | [156, 11] | gcongr | s t : β β β
kβ k n : β
hn : n β₯ k
β’ n * n ! β€ (n + 1) * n ! | case bc
s t : β β β
kβ k n : β
hn : n β₯ k
β’ n β€ n + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
kβ k n : β
hn : n β₯ k
β’ n * n ! β€ (n + 1) * n !
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7' | [143, 1] | [156, 11] | exact? | case bc
s t : β β β
kβ k n : β
hn : n β₯ k
β’ n β€ n + 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case bc
s t : β β β
kβ k n : β
hn : n β₯ k
β’ n β€ n + 1
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7' | [143, 1] | [156, 11] | rfl | s t : β β β
kβ k n : β
hn : n β₯ k
β’ (n + 1) * n ! = (n + 1)! | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
kβ k n : β
hn : n β₯ k
β’ (n + 1) * n ! = (n + 1)!
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7' | [143, 1] | [156, 11] | intro n | case h.right
s t : β β β
k : β
β’ β (n : β), n ! β 0 | case h.right
s t : β β β
k n : β
β’ n ! β 0 | Please generate a tactic in lean4 to solve the state.
STATE:
case h.right
s t : β β β
k : β
β’ β (n : β), n ! β 0
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_7' | [143, 1] | [156, 11] | exact? | case h.right
s t : β β β
k n : β
β’ n ! β 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h.right
s t : β β β
k n : β
β’ n ! β 0
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | useful_fact2 | [166, 1] | [171, 11] | use n - 1 | s t : β β β
k n m : β
hn : n β₯ m + 1
β’ β k β₯ m, k + 1 = n | case h
s t : β β β
k n m : β
hn : n β₯ m + 1
β’ n - 1 β₯ m β§ n - 1 + 1 = n | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
k n m : β
hn : n β₯ m + 1
β’ β k β₯ m, k + 1 = n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | useful_fact2 | [166, 1] | [171, 11] | constructor | case h
s t : β β β
k n m : β
hn : n β₯ m + 1
β’ n - 1 β₯ m β§ n - 1 + 1 = n | case h.left
s t : β β β
k n m : β
hn : n β₯ m + 1
β’ n - 1 β₯ m
case h.right
s t : β β β
k n m : β
hn : n β₯ m + 1
β’ n - 1 + 1 = n | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
k n m : β
hn : n β₯ m + 1
β’ n - 1 β₯ m β§ n - 1 + 1 = n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | useful_fact2 | [166, 1] | [171, 11] | exact? | case h.left
s t : β β β
k n m : β
hn : n β₯ m + 1
β’ n - 1 β₯ m | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h.left
s t : β β β
k n m : β
hn : n β₯ m + 1
β’ n - 1 β₯ m
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | useful_fact2 | [166, 1] | [171, 11] | have : 1 β€ n := by exact? | case h.right
s t : β β β
k n m : β
hn : n β₯ m + 1
β’ n - 1 + 1 = n | case h.right
s t : β β β
k n m : β
hn : n β₯ m + 1
this : 1 β€ n
β’ n - 1 + 1 = n | Please generate a tactic in lean4 to solve the state.
STATE:
case h.right
s t : β β β
k n m : β
hn : n β₯ m + 1
β’ n - 1 + 1 = n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | useful_fact2 | [166, 1] | [171, 11] | exact? | case h.right
s t : β β β
k n m : β
hn : n β₯ m + 1
this : 1 β€ n
β’ n - 1 + 1 = n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h.right
s t : β β β
k n m : β
hn : n β₯ m + 1
this : 1 β€ n
β’ n - 1 + 1 = n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | useful_fact2 | [166, 1] | [171, 11] | exact? | s t : β β β
k n m : β
hn : n β₯ m + 1
β’ 1 β€ n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
k n m : β
hn : n β₯ m + 1
β’ 1 β€ n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | have h3s : β n, 1 β€ s n := by
intro n
exact? | s t : β β β
k : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
β’ β (k : β), β N, β n β₯ N, s n β₯ k | s t : β β β
k : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
β’ β (k : β), β N, β n β₯ N, s n β₯ k | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
k : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
β’ β (k : β), β N, β n β₯ N, s n β₯ k
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | intro k | s t : β β β
k : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
β’ β (k : β), β N, β n β₯ N, s n β₯ k | s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k : β
β’ β N, β n β₯ N, s n β₯ k | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
k : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
β’ β (k : β), β N, β n β₯ N, s n β₯ k
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | obtain β¨N, hNβ© := hs k | s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k : β
β’ β N, β n β₯ N, s n β₯ k | case intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β n β₯ N, k * s n β€ (fun n => s (n + 1)) n
β’ β N, β n β₯ N, s n β₯ k | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k : β
β’ β N, β n β₯ N, s n β₯ k
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | simp at hN | case intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β n β₯ N, k * s n β€ (fun n => s (n + 1)) n
β’ β N, β n β₯ N, s n β₯ k | case intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β (n : β), N β€ n β k * s n β€ s (n + 1)
β’ β N, β n β₯ N, s n β₯ k | Please generate a tactic in lean4 to solve the state.
STATE:
case intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β n β₯ N, k * s n β€ (fun n => s (n + 1)) n
β’ β N, β n β₯ N, s n β₯ k
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | use N + 1 | case intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β (n : β), N β€ n β k * s n β€ s (n + 1)
β’ β N, β n β₯ N, s n β₯ k | case h
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β (n : β), N β€ n β k * s n β€ s (n + 1)
β’ β n β₯ N + 1, s n β₯ k | Please generate a tactic in lean4 to solve the state.
STATE:
case intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β (n : β), N β€ n β k * s n β€ s (n + 1)
β’ β N, β n β₯ N, s n β₯ k
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | intros n hn | case h
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β (n : β), N β€ n β k * s n β€ s (n + 1)
β’ β n β₯ N + 1, s n β₯ k | case h
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β (n : β), N β€ n β k * s n β€ s (n + 1)
n : β
hn : n β₯ N + 1
β’ s n β₯ k | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β (n : β), N β€ n β k * s n β€ s (n + 1)
β’ β n β₯ N + 1, s n β₯ k
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | obtain β¨n', hn'N, hn'nβ© := useful_fact2 hn | case h
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β (n : β), N β€ n β k * s n β€ s (n + 1)
n : β
hn : n β₯ N + 1
β’ s n β₯ k | case h.intro.intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β (n : β), N β€ n β k * s n β€ s (n + 1)
n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
β’ s n β₯ k | Please generate a tactic in lean4 to solve the state.
STATE:
case h
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β (n : β), N β€ n β k * s n β€ s (n + 1)
n : β
hn : n β₯ N + 1
β’ s n β₯ k
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | specialize hN n' hn'N | case h.intro.intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β (n : β), N β€ n β k * s n β€ s (n + 1)
n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
β’ s n β₯ k | case h.intro.intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s (n' + 1)
β’ s n β₯ k | Please generate a tactic in lean4 to solve the state.
STATE:
case h.intro.intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N : β
hN : β (n : β), N β€ n β k * s n β€ s (n + 1)
n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
β’ s n β₯ k
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | rw [hn'n] at hN | case h.intro.intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s (n' + 1)
β’ s n β₯ k | case h.intro.intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s n
β’ s n β₯ k | Please generate a tactic in lean4 to solve the state.
STATE:
case h.intro.intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s (n' + 1)
β’ s n β₯ k
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | calc k = k * 1 := by simp
_ β€ k * s n' := by
gcongr
apply h3s
_ β€ s n := by assumption | case h.intro.intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s n
β’ s n β₯ k | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h.intro.intro
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s n
β’ s n β₯ k
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | intro n | s t : β β β
k : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
β’ β (n : β), 1 β€ s n | s t : β β β
k : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
n : β
β’ 1 β€ s n | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
k : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
β’ β (n : β), 1 β€ s n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | exact? | s t : β β β
k : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
n : β
β’ 1 β€ s n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
k : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
n : β
β’ 1 β€ s n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | simp | s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s n
β’ k = k * 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s n
β’ k = k * 1
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | gcongr | s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s n
β’ k * 1 β€ k * s n' | case bc
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s n
β’ 1 β€ s n' | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s n
β’ k * 1 β€ k * s n'
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | apply h3s | case bc
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s n
β’ 1 β€ s n' | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case bc
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s n
β’ 1 β€ s n'
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Solutions/Solutions2.lean | exercise2_8 | [173, 1] | [190, 29] | assumption | s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s n
β’ k * s n' β€ s n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
s t : β β β
kβ : β
hs : EventuallyGrowsFaster (fun n => s (n + 1)) s
h2s : β (n : β), s n β 0
h3s : β (n : β), 1 β€ s n
k N n : β
hn : n β₯ N + 1
n' : β
hn'N : n' β₯ N
hn'n : n' + 1 = n
hN : k * s n' β€ s n
β’ k * s n' β€ s n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_1 | [25, 1] | [26, 86] | sorry | n : β
β’ β i in range (n + 1), β(i ^ 3) = (β i in range (n + 1), βi) ^ 2 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
β’ β i in range (n + 1), β(i ^ 3) = (β i in range (n + 1), βi) ^ 2
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_2 | [36, 1] | [39, 8] | have h := wf.wf.has_min | ΞΉ : Type u_1
Ξ± : Type u_2
instβ : LinearOrder ΞΉ
wf : WellFoundedLT ΞΉ
A C : ΞΉ β Set Ξ±
hC : β (i : ΞΉ), C i = A i \ β j, β (_ : j < i), A j
β’ Pairwise (Disjoint on C) β§ β i, C i = β i, A i | ΞΉ : Type u_1
Ξ± : Type u_2
instβ : LinearOrder ΞΉ
wf : WellFoundedLT ΞΉ
A C : ΞΉ β Set Ξ±
hC : β (i : ΞΉ), C i = A i \ β j, β (_ : j < i), A j
h : β (s : Set ΞΉ), Set.Nonempty s β β a β s, β x β s, Β¬x < a
β’ Pairwise (Disjoint on C) β§ β i, C i = β i, A i | Please generate a tactic in lean4 to solve the state.
STATE:
ΞΉ : Type u_1
Ξ± : Type u_2
instβ : LinearOrder ΞΉ
wf : WellFoundedLT ΞΉ
A C : ΞΉ β Set Ξ±
hC : β (i : ΞΉ), C i = A i \ β j, β (_ : j < i), A j
β’ Pairwise (Disjoint on C) β§ β i, C i = β i, A i
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_2 | [36, 1] | [39, 8] | sorry | ΞΉ : Type u_1
Ξ± : Type u_2
instβ : LinearOrder ΞΉ
wf : WellFoundedLT ΞΉ
A C : ΞΉ β Set Ξ±
hC : β (i : ΞΉ), C i = A i \ β j, β (_ : j < i), A j
h : β (s : Set ΞΉ), Set.Nonempty s β β a β s, β x β s, Β¬x < a
β’ Pairwise (Disjoint on C) β§ β i, C i = β i, A i | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
ΞΉ : Type u_1
Ξ± : Type u_2
instβ : LinearOrder ΞΉ
wf : WellFoundedLT ΞΉ
A C : ΞΉ β Set Ξ±
hC : β (i : ΞΉ), C i = A i \ β j, β (_ : j < i), A j
h : β (s : Set ΞΉ), Set.Nonempty s β β a β s, β x β s, Β¬x < a
β’ Pairwise (Disjoint on C) β§ β i, C i = β i, A i
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_4 | [62, 1] | [63, 85] | sorry | n : β
β’ Β¬Nat.Prime n β n = 0 β¨ n = 1 β¨ β a b, 2 β€ a β§ 2 β€ b β§ n = a * b | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
β’ Β¬Nat.Prime n β n = 0 β¨ n = 1 β¨ β a b, 2 β€ a β§ 2 β€ b β§ n = a * b
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | by_contra h2n | n : β
hn : Nat.Prime (2 ^ n - 1)
β’ Nat.Prime n | n : β
hn : Nat.Prime (2 ^ n - 1)
h2n : Β¬Nat.Prime n
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
hn : Nat.Prime (2 ^ n - 1)
β’ Nat.Prime n
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | rw [exercise4_4] at h2n | n : β
hn : Nat.Prime (2 ^ n - 1)
h2n : Β¬Nat.Prime n
β’ False | n : β
hn : Nat.Prime (2 ^ n - 1)
h2n : n = 0 β¨ n = 1 β¨ β a b, 2 β€ a β§ 2 β€ b β§ n = a * b
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
hn : Nat.Prime (2 ^ n - 1)
h2n : Β¬Nat.Prime n
β’ False
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | obtain rfl|rfl|β¨a, b, ha, hb, rflβ© := h2n | n : β
hn : Nat.Prime (2 ^ n - 1)
h2n : n = 0 β¨ n = 1 β¨ β a b, 2 β€ a β§ 2 β€ b β§ n = a * b
β’ False | case inl
hn : Nat.Prime (2 ^ 0 - 1)
β’ False
case inr.inl
hn : Nat.Prime (2 ^ 1 - 1)
β’ False
case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
hn : Nat.Prime (2 ^ n - 1)
h2n : n = 0 β¨ n = 1 β¨ β a b, 2 β€ a β§ 2 β€ b β§ n = a * b
β’ False
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | have h : (2 : β€) ^ a - 1 β£ (2 : β€) ^ (a * b) - 1 | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ False | case h
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ 2 ^ a - 1 β£ 2 ^ (a * b) - 1
case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ False
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | have h2 : 2 ^ 2 β€ 2 ^ a := by sorry | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
β’ False | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
β’ False
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | have h3 : 1 β€ 2 ^ a := by sorry | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
β’ False | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
β’ False
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | have h4 : 2 ^ a - 1 β 1 := by zify; simp [h3]; linarith | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
β’ False | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
β’ False
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | have h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1 := by
apply tsub_lt_tsub_right_of_le h3
sorry | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
β’ False | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
β’ False
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | have h6' : 2 ^ 0 β€ 2 ^ (a * b) := by sorry | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
β’ False | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
h6' : 2 ^ 0 β€ 2 ^ (a * b)
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
β’ False
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | have h6 : 1 β€ 2 ^ (a * b) := h6' | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
h6' : 2 ^ 0 β€ 2 ^ (a * b)
β’ False | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
h6' : 2 ^ 0 β€ 2 ^ (a * b)
h6 : 1 β€ 2 ^ (a * b)
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
h6' : 2 ^ 0 β€ 2 ^ (a * b)
β’ False
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | have h' : 2 ^ a - 1 β£ 2 ^ (a * b) - 1 | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
h6' : 2 ^ 0 β€ 2 ^ (a * b)
h6 : 1 β€ 2 ^ (a * b)
β’ False | case h'
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
h6' : 2 ^ 0 β€ 2 ^ (a * b)
h6 : 1 β€ 2 ^ (a * b)
β’ 2 ^ a - 1 β£ 2 ^ (a * b) - 1
case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
h6' : 2 ^ 0 β€ 2 ^ (a * b)
h6 : 1 β€ 2 ^ (a * b)
h' : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
h6' : 2 ^ 0 β€ 2 ^ (a * b)
h6 : 1 β€ 2 ^ (a * b)
β’ False
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | rw [Nat.prime_def_lt] at hn | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
h6' : 2 ^ 0 β€ 2 ^ (a * b)
h6 : 1 β€ 2 ^ (a * b)
h' : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
β’ False | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : 2 β€ 2 ^ (a * b) - 1 β§ β m < 2 ^ (a * b) - 1, m β£ 2 ^ (a * b) - 1 β m = 1
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
h6' : 2 ^ 0 β€ 2 ^ (a * b)
h6 : 1 β€ 2 ^ (a * b)
h' : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
h6' : 2 ^ 0 β€ 2 ^ (a * b)
h6 : 1 β€ 2 ^ (a * b)
h' : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
β’ False
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | sorry | case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : 2 β€ 2 ^ (a * b) - 1 β§ β m < 2 ^ (a * b) - 1, m β£ 2 ^ (a * b) - 1 β m = 1
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
h6' : 2 ^ 0 β€ 2 ^ (a * b)
h6 : 1 β€ 2 ^ (a * b)
h' : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
β’ False | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr.intro.intro.intro.intro
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : 2 β€ 2 ^ (a * b) - 1 β§ β m < 2 ^ (a * b) - 1, m β£ 2 ^ (a * b) - 1 β m = 1
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
h5 : 2 ^ a - 1 < 2 ^ (a * b) - 1
h6' : 2 ^ 0 β€ 2 ^ (a * b)
h6 : 1 β€ 2 ^ (a * b)
h' : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
β’ False
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | sorry | case inl
hn : Nat.Prime (2 ^ 0 - 1)
β’ False | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inl
hn : Nat.Prime (2 ^ 0 - 1)
β’ False
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | sorry | case inr.inl
hn : Nat.Prime (2 ^ 1 - 1)
β’ False | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inl
hn : Nat.Prime (2 ^ 1 - 1)
β’ False
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | rw [β Int.modEq_zero_iff_dvd] | case h
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ 2 ^ a - 1 β£ 2 ^ (a * b) - 1 | case h
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ 2 ^ (a * b) - 1 β‘ 0 [ZMOD 2 ^ a - 1] | Please generate a tactic in lean4 to solve the state.
STATE:
case h
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ 2 ^ a - 1 β£ 2 ^ (a * b) - 1
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | calc (2 : β€) ^ (a * b) - 1
β‘ ((2 : β€) ^ a) ^ b - 1 [ZMOD (2 : β€) ^ a - 1] := by sorry
_ β‘ (1 : β€) ^ b - 1 [ZMOD (2 : β€) ^ a - 1] := by sorry
_ β‘ 0 [ZMOD (2 : β€) ^ a - 1] := by sorry | case h
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ 2 ^ (a * b) - 1 β‘ 0 [ZMOD 2 ^ a - 1] | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ 2 ^ (a * b) - 1 β‘ 0 [ZMOD 2 ^ a - 1]
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | sorry | a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ 2 ^ (a * b) - 1 β‘ (2 ^ a) ^ b - 1 [ZMOD 2 ^ a - 1] | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ 2 ^ (a * b) - 1 β‘ (2 ^ a) ^ b - 1 [ZMOD 2 ^ a - 1]
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | sorry | a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ (2 ^ a) ^ b - 1 β‘ 1 ^ b - 1 [ZMOD 2 ^ a - 1] | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ (2 ^ a) ^ b - 1 β‘ 1 ^ b - 1 [ZMOD 2 ^ a - 1]
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | sorry | a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ 1 ^ b - 1 β‘ 0 [ZMOD 2 ^ a - 1] | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
β’ 1 ^ b - 1 β‘ 0 [ZMOD 2 ^ a - 1]
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | sorry | a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
β’ 2 ^ 2 β€ 2 ^ a | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
β’ 2 ^ 2 β€ 2 ^ a
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | sorry | a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
β’ 1 β€ 2 ^ a | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
β’ 1 β€ 2 ^ a
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | zify | a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
β’ 2 ^ a - 1 β 1 | a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
β’ β(2 ^ a - 1) β 1 | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
β’ 2 ^ a - 1 β 1
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | simp [h3] | a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
β’ β(2 ^ a - 1) β 1 | a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
β’ Β¬2 ^ a - 1 = 1 | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
β’ β(2 ^ a - 1) β 1
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | linarith | a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
β’ Β¬2 ^ a - 1 = 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
β’ Β¬2 ^ a - 1 = 1
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | apply tsub_lt_tsub_right_of_le h3 | a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
β’ 2 ^ a - 1 < 2 ^ (a * b) - 1 | a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
β’ 2 ^ a < 2 ^ (a * b) | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
β’ 2 ^ a - 1 < 2 ^ (a * b) - 1
TACTIC:
|
https://github.com/fpvandoorn/LeanCourse23.git | 7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d | LeanCourse/Assignments/Assignment4.lean | exercise4_5 | [66, 1] | [89, 8] | sorry | a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
β’ 2 ^ a < 2 ^ (a * b) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β
ha : 2 β€ a
hb : 2 β€ b
hn : Nat.Prime (2 ^ (a * b) - 1)
h : 2 ^ a - 1 β£ 2 ^ (a * b) - 1
h2 : 2 ^ 2 β€ 2 ^ a
h3 : 1 β€ 2 ^ a
h4 : 2 ^ a - 1 β 1
β’ 2 ^ a < 2 ^ (a * b)
TACTIC:
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.