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/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_mul_const
[36, 1]
[54, 53]
ring
case h.e'_2 s : β„• β†’ ℝ a c : ℝ cs : ConvergesTo s a h : c = 0 ⊒ 0 * a = 0
no goals
Please generate a tactic in lean4 to solve the state. STATE: case h.e'_2 s : β„• β†’ ℝ a c : ℝ cs : ConvergesTo s a h : c = 0 ⊒ 0 * a = 0 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_mul_const
[36, 1]
[54, 53]
rw [h]
case h.e'_1.h s : β„• β†’ ℝ a c : ℝ cs : ConvergesTo s a h : c = 0 x✝ : β„• ⊒ c * s x✝ = 0
case h.e'_1.h s : β„• β†’ ℝ a c : ℝ cs : ConvergesTo s a h : c = 0 x✝ : β„• ⊒ 0 * s x✝ = 0
Please generate a tactic in lean4 to solve the state. STATE: case h.e'_1.h s : β„• β†’ ℝ a c : ℝ cs : ConvergesTo s a h : c = 0 x✝ : β„• ⊒ c * s x✝ = 0 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_mul_const
[36, 1]
[54, 53]
ring
case h.e'_1.h s : β„• β†’ ℝ a c : ℝ cs : ConvergesTo s a h : c = 0 x✝ : β„• ⊒ 0 * s x✝ = 0
no goals
Please generate a tactic in lean4 to solve the state. STATE: case h.e'_1.h s : β„• β†’ ℝ a c : ℝ cs : ConvergesTo s a h : c = 0 x✝ : β„• ⊒ 0 * s x✝ = 0 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_mul_const
[36, 1]
[54, 53]
apply div_pos Ξ΅pos acpos
s : β„• β†’ ℝ a c : ℝ cs : ConvergesTo s a h : Β¬c = 0 acpos : 0 < |c| Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 ⊒ 0 < Ξ΅ / |c|
no goals
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a c : ℝ cs : ConvergesTo s a h : Β¬c = 0 acpos : 0 < |c| Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 ⊒ 0 < Ξ΅ / |c| TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_mul_const
[36, 1]
[54, 53]
rw [← abs_mul, mul_sub]
s : β„• β†’ ℝ a c : ℝ cs : ConvergesTo s a h : Β¬c = 0 acpos : 0 < |c| Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Ξ΅cpos : 0 < Ξ΅ / |c| Ns : β„• hs : βˆ€ n β‰₯ Ns, |s n - a| < Ξ΅ / |c| n : β„• ngt : n β‰₯ Ns ⊒ |c * s n - c * a| = |c| * |s n - a|
no goals
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a c : ℝ cs : ConvergesTo s a h : Β¬c = 0 acpos : 0 < |c| Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Ξ΅cpos : 0 < Ξ΅ / |c| Ns : β„• hs : βˆ€ n β‰₯ Ns, |s n - a| < Ξ΅ / |c| n : β„• ngt : n β‰₯ Ns ⊒ |c * s n - c * a| = |c| * |s n - a| TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.exists_abs_le_of_convergesTo
[56, 1]
[66, 41]
rcases cs 1 zero_lt_one with ⟨N, h⟩
s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ⊒ βˆƒ N b, βˆ€ (n : β„•), N ≀ n β†’ |s n| < b
case intro s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 ⊒ βˆƒ N b, βˆ€ (n : β„•), N ≀ n β†’ |s n| < b
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ⊒ βˆƒ N b, βˆ€ (n : β„•), N ≀ n β†’ |s n| < b TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.exists_abs_le_of_convergesTo
[56, 1]
[66, 41]
use N, |a| + 1
case intro s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 ⊒ βˆƒ N b, βˆ€ (n : β„•), N ≀ n β†’ |s n| < b
case h s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 ⊒ βˆ€ (n : β„•), N ≀ n β†’ |s n| < |a| + 1
Please generate a tactic in lean4 to solve the state. STATE: case intro s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 ⊒ βˆƒ N b, βˆ€ (n : β„•), N ≀ n β†’ |s n| < b TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.exists_abs_le_of_convergesTo
[56, 1]
[66, 41]
intro n ngt
case h s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 ⊒ βˆ€ (n : β„•), N ≀ n β†’ |s n| < |a| + 1
case h s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 n : β„• ngt : N ≀ n ⊒ |s n| < |a| + 1
Please generate a tactic in lean4 to solve the state. STATE: case h s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 ⊒ βˆ€ (n : β„•), N ≀ n β†’ |s n| < |a| + 1 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.exists_abs_le_of_convergesTo
[56, 1]
[66, 41]
calc |s n| = |s n - a + a| := by congr abel _ ≀ |s n - a| + |a| := (abs_add _ _) _ < |a| + 1 := by linarith [h n ngt]
case h s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 n : β„• ngt : N ≀ n ⊒ |s n| < |a| + 1
no goals
Please generate a tactic in lean4 to solve the state. STATE: case h s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 n : β„• ngt : N ≀ n ⊒ |s n| < |a| + 1 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.exists_abs_le_of_convergesTo
[56, 1]
[66, 41]
congr
s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 n : β„• ngt : N ≀ n ⊒ |s n| = |s n - a + a|
case e_a s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 n : β„• ngt : N ≀ n ⊒ s n = s n - a + a
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 n : β„• ngt : N ≀ n ⊒ |s n| = |s n - a + a| TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.exists_abs_le_of_convergesTo
[56, 1]
[66, 41]
abel
case e_a s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 n : β„• ngt : N ≀ n ⊒ s n = s n - a + a
no goals
Please generate a tactic in lean4 to solve the state. STATE: case e_a s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 n : β„• ngt : N ≀ n ⊒ s n = s n - a + a TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.exists_abs_le_of_convergesTo
[56, 1]
[66, 41]
linarith [h n ngt]
s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 n : β„• ngt : N ≀ n ⊒ |s n - a| + |a| < |a| + 1
no goals
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a N : β„• h : βˆ€ n β‰₯ N, |s n - a| < 1 n : β„• ngt : N ≀ n ⊒ |s n - a| + |a| < |a| + 1 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.aux
[68, 1]
[83, 52]
intro Ξ΅ Ξ΅pos
s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 ⊒ ConvergesTo (fun n => s n * t n) 0
s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 ⊒ βˆƒ N, βˆ€ n β‰₯ N, |(fun n => s n * t n) n - 0| < Ξ΅
Please generate a tactic in lean4 to solve the state. STATE: s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 ⊒ ConvergesTo (fun n => s n * t n) 0 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.aux
[68, 1]
[83, 52]
dsimp
s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 ⊒ βˆƒ N, βˆ€ n β‰₯ N, |(fun n => s n * t n) n - 0| < Ξ΅
s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅
Please generate a tactic in lean4 to solve the state. STATE: s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 ⊒ βˆƒ N, βˆ€ n β‰₯ N, |(fun n => s n * t n) n - 0| < Ξ΅ TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.aux
[68, 1]
[83, 52]
rcases exists_abs_le_of_convergesTo cs with ⟨Nβ‚€, B, hβ‚€βŸ©
s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅
case intro.intro s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅
Please generate a tactic in lean4 to solve the state. STATE: s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅ TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.aux
[68, 1]
[83, 52]
have Bpos : 0 < B := lt_of_le_of_lt (abs_nonneg _) (hβ‚€ Nβ‚€ (le_refl _))
case intro.intro s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅
case intro.intro s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅
Please generate a tactic in lean4 to solve the state. STATE: case intro.intro s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅ TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.aux
[68, 1]
[83, 52]
have posβ‚€ : Ξ΅ / B > 0 := div_pos Ξ΅pos Bpos
case intro.intro s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅
case intro.intro s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅
Please generate a tactic in lean4 to solve the state. STATE: case intro.intro s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅ TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.aux
[68, 1]
[83, 52]
rcases ct _ posβ‚€ with ⟨N₁, hβ‚βŸ©
case intro.intro s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅
case intro.intro.intro s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅
Please generate a tactic in lean4 to solve the state. STATE: case intro.intro s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅ TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.aux
[68, 1]
[83, 52]
use max Nβ‚€ N₁
case intro.intro.intro s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅
case h s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B ⊒ βˆ€ n β‰₯ max Nβ‚€ N₁, |s n * t n - 0| < Ξ΅
Please generate a tactic in lean4 to solve the state. STATE: case intro.intro.intro s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B ⊒ βˆƒ N, βˆ€ n β‰₯ N, |s n * t n - 0| < Ξ΅ TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.aux
[68, 1]
[83, 52]
intro n ngt
case h s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B ⊒ βˆ€ n β‰₯ max Nβ‚€ N₁, |s n * t n - 0| < Ξ΅
case h s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B n : β„• ngt : n β‰₯ max Nβ‚€ N₁ ⊒ |s n * t n - 0| < Ξ΅
Please generate a tactic in lean4 to solve the state. STATE: case h s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B ⊒ βˆ€ n β‰₯ max Nβ‚€ N₁, |s n * t n - 0| < Ξ΅ TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.aux
[68, 1]
[83, 52]
have ngeNβ‚€ : n β‰₯ Nβ‚€ := le_of_max_le_left ngt
case h s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B n : β„• ngt : n β‰₯ max Nβ‚€ N₁ ⊒ |s n * t n - 0| < Ξ΅
case h s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B n : β„• ngt : n β‰₯ max Nβ‚€ N₁ ngeNβ‚€ : n β‰₯ Nβ‚€ ⊒ |s n * t n - 0| < Ξ΅
Please generate a tactic in lean4 to solve the state. STATE: case h s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B n : β„• ngt : n β‰₯ max Nβ‚€ N₁ ⊒ |s n * t n - 0| < Ξ΅ TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.aux
[68, 1]
[83, 52]
have ngeN₁ : n β‰₯ N₁ := le_of_max_le_right ngt
case h s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B n : β„• ngt : n β‰₯ max Nβ‚€ N₁ ngeNβ‚€ : n β‰₯ Nβ‚€ ⊒ |s n * t n - 0| < Ξ΅
case h s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B n : β„• ngt : n β‰₯ max Nβ‚€ N₁ ngeNβ‚€ : n β‰₯ Nβ‚€ ngeN₁ : n β‰₯ N₁ ⊒ |s n * t n - 0| < Ξ΅
Please generate a tactic in lean4 to solve the state. STATE: case h s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B n : β„• ngt : n β‰₯ max Nβ‚€ N₁ ngeNβ‚€ : n β‰₯ Nβ‚€ ⊒ |s n * t n - 0| < Ξ΅ TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.aux
[68, 1]
[83, 52]
calc |s n * t n - 0| = |s n| * |t n - 0| := by rw [sub_zero, abs_mul, sub_zero] _ < B * (Ξ΅ / B) := (mul_lt_mul'' (hβ‚€ n ngeNβ‚€) (h₁ n ngeN₁) (abs_nonneg _) (abs_nonneg _)) _ = Ξ΅ := mul_div_cancel' _ (ne_of_lt Bpos).symm
case h s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B n : β„• ngt : n β‰₯ max Nβ‚€ N₁ ngeNβ‚€ : n β‰₯ Nβ‚€ ngeN₁ : n β‰₯ N₁ ⊒ |s n * t n - 0| < Ξ΅
no goals
Please generate a tactic in lean4 to solve the state. STATE: case h s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B n : β„• ngt : n β‰₯ max Nβ‚€ N₁ ngeNβ‚€ : n β‰₯ Nβ‚€ ngeN₁ : n β‰₯ N₁ ⊒ |s n * t n - 0| < Ξ΅ TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.aux
[68, 1]
[83, 52]
rw [sub_zero, abs_mul, sub_zero]
s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B n : β„• ngt : n β‰₯ max Nβ‚€ N₁ ngeNβ‚€ : n β‰₯ Nβ‚€ ngeN₁ : n β‰₯ N₁ ⊒ |s n * t n - 0| = |s n| * |t n - 0|
no goals
Please generate a tactic in lean4 to solve the state. STATE: s t : β„• β†’ ℝ a : ℝ cs : ConvergesTo s a ct : ConvergesTo t 0 Ξ΅ : ℝ Ξ΅pos : Ξ΅ > 0 Nβ‚€ : β„• B : ℝ hβ‚€ : βˆ€ (n : β„•), Nβ‚€ ≀ n β†’ |s n| < B Bpos : 0 < B posβ‚€ : Ξ΅ / B > 0 N₁ : β„• h₁ : βˆ€ n β‰₯ N₁, |t n - 0| < Ξ΅ / B n : β„• ngt : n β‰₯ max Nβ‚€ N₁ ngeNβ‚€ : n β‰₯ Nβ‚€ ngeN₁ : n β‰₯ N₁ ⊒ |s n * t n - 0| = |s n| * |t n - 0| TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_mul
[85, 1]
[95, 7]
have h₁ : ConvergesTo (fun n ↦ s n * (t n + -b)) 0 := by apply aux cs convert convergesTo_add ct (convergesTo_const (-b)) ring
s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b ⊒ ConvergesTo (fun n => s n * t n) (a * b)
s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 ⊒ ConvergesTo (fun n => s n * t n) (a * b)
Please generate a tactic in lean4 to solve the state. STATE: s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b ⊒ ConvergesTo (fun n => s n * t n) (a * b) TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_mul
[85, 1]
[95, 7]
have := convergesTo_add h₁ (convergesTo_mul_const b cs)
s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 ⊒ ConvergesTo (fun n => s n * t n) (a * b)
s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 this : ConvergesTo (fun n => s n * (t n + -b) + b * s n) (0 + b * a) ⊒ ConvergesTo (fun n => s n * t n) (a * b)
Please generate a tactic in lean4 to solve the state. STATE: s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 ⊒ ConvergesTo (fun n => s n * t n) (a * b) TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_mul
[85, 1]
[95, 7]
convert convergesTo_add h₁ (convergesTo_mul_const b cs) using 1
s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 this : ConvergesTo (fun n => s n * (t n + -b) + b * s n) (0 + b * a) ⊒ ConvergesTo (fun n => s n * t n) (a * b)
case h.e'_1 s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 this : ConvergesTo (fun n => s n * (t n + -b) + b * s n) (0 + b * a) ⊒ (fun n => s n * t n) = fun n => s n * (t n + -b) + b * s n case h.e'_2 s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 this : ConvergesTo (fun n => s n * (t n + -b) + b * s n) (0 + b * a) ⊒ a * b = 0 + b * a
Please generate a tactic in lean4 to solve the state. STATE: s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 this : ConvergesTo (fun n => s n * (t n + -b) + b * s n) (0 + b * a) ⊒ ConvergesTo (fun n => s n * t n) (a * b) TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_mul
[85, 1]
[95, 7]
ring
case h.e'_2 s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 this : ConvergesTo (fun n => s n * (t n + -b) + b * s n) (0 + b * a) ⊒ a * b = 0 + b * a
no goals
Please generate a tactic in lean4 to solve the state. STATE: case h.e'_2 s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 this : ConvergesTo (fun n => s n * (t n + -b) + b * s n) (0 + b * a) ⊒ a * b = 0 + b * a TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_mul
[85, 1]
[95, 7]
apply aux cs
s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b ⊒ ConvergesTo (fun n => s n * (t n + -b)) 0
s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b ⊒ ConvergesTo (fun n => t n + -b) 0
Please generate a tactic in lean4 to solve the state. STATE: s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b ⊒ ConvergesTo (fun n => s n * (t n + -b)) 0 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_mul
[85, 1]
[95, 7]
convert convergesTo_add ct (convergesTo_const (-b))
s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b ⊒ ConvergesTo (fun n => t n + -b) 0
case h.e'_2 s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b ⊒ 0 = b + -b
Please generate a tactic in lean4 to solve the state. STATE: s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b ⊒ ConvergesTo (fun n => t n + -b) 0 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_mul
[85, 1]
[95, 7]
ring
case h.e'_2 s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b ⊒ 0 = b + -b
no goals
Please generate a tactic in lean4 to solve the state. STATE: case h.e'_2 s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b ⊒ 0 = b + -b TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_mul
[85, 1]
[95, 7]
ext
case h.e'_1 s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 this : ConvergesTo (fun n => s n * (t n + -b) + b * s n) (0 + b * a) ⊒ (fun n => s n * t n) = fun n => s n * (t n + -b) + b * s n
case h.e'_1.h s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 this : ConvergesTo (fun n => s n * (t n + -b) + b * s n) (0 + b * a) x✝ : β„• ⊒ s x✝ * t x✝ = s x✝ * (t x✝ + -b) + b * s x✝
Please generate a tactic in lean4 to solve the state. STATE: case h.e'_1 s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 this : ConvergesTo (fun n => s n * (t n + -b) + b * s n) (0 + b * a) ⊒ (fun n => s n * t n) = fun n => s n * (t n + -b) + b * s n TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_mul
[85, 1]
[95, 7]
ring
case h.e'_1.h s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 this : ConvergesTo (fun n => s n * (t n + -b) + b * s n) (0 + b * a) x✝ : β„• ⊒ s x✝ * t x✝ = s x✝ * (t x✝ + -b) + b * s x✝
no goals
Please generate a tactic in lean4 to solve the state. STATE: case h.e'_1.h s t : β„• β†’ ℝ a b : ℝ cs : ConvergesTo s a ct : ConvergesTo t b h₁ : ConvergesTo (fun n => s n * (t n + -b)) 0 this : ConvergesTo (fun n => s n * (t n + -b) + b * s n) (0 + b * a) x✝ : β„• ⊒ s x✝ * t x✝ = s x✝ * (t x✝ + -b) + b * s x✝ TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
by_contra abne
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b ⊒ a = b
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b ⊒ False
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b ⊒ a = b TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
let Ξ΅ := |a - b| / 2
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 ⊒ False
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 ⊒ False
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 ⊒ False TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
have Ξ΅pos : Ξ΅ > 0 := by change |a - b| / 2 > 0 linarith
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 ⊒ False
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 ⊒ False
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 ⊒ False TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
rcases sa Ρ Ρpos with ⟨Na, hNa⟩
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 ⊒ False
case intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ ⊒ False
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 ⊒ False TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
rcases sb Ρ Ρpos with ⟨Nb, hNb⟩
case intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ ⊒ False
case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ ⊒ False
Please generate a tactic in lean4 to solve the state. STATE: case intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ ⊒ False TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
let N := max Na Nb
case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ ⊒ False
case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb ⊒ False
Please generate a tactic in lean4 to solve the state. STATE: case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ ⊒ False TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
have absa : |s N - a| < Ξ΅ := by apply hNa apply le_max_left
case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb ⊒ False
case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ ⊒ False
Please generate a tactic in lean4 to solve the state. STATE: case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb ⊒ False TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
have absb : |s N - b| < Ξ΅ := by apply hNb apply le_max_right
case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ ⊒ False
case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ False
Please generate a tactic in lean4 to solve the state. STATE: case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ ⊒ False TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
have : |a - b| < |a - b|
case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ False
case this s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ |a - b| < |a - b| case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this✝ : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ this : |a - b| < |a - b| ⊒ False
Please generate a tactic in lean4 to solve the state. STATE: case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ False TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
calc |a - b| = |(-(s N - a)) + (s N - b)| := by congr ring _ ≀ |(-(s N - a))| + |s N - b| := (abs_add _ _) _ = |s N - a| + |s N - b| := by rw [abs_neg] _ < Ξ΅ + Ξ΅ := (add_lt_add absa absb) _ = |a - b| := by norm_num
case this s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ |a - b| < |a - b| case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this✝ : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ this : |a - b| < |a - b| ⊒ False
case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this✝ : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ this : |a - b| < |a - b| ⊒ False
Please generate a tactic in lean4 to solve the state. STATE: case this s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ |a - b| < |a - b| case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this✝ : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ this : |a - b| < |a - b| ⊒ False TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
exact lt_irrefl _ this
case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this✝ : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ this : |a - b| < |a - b| ⊒ False
no goals
Please generate a tactic in lean4 to solve the state. STATE: case intro.intro s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this✝ : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ this : |a - b| < |a - b| ⊒ False TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
apply lt_of_le_of_ne
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b ⊒ |a - b| > 0
case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b ⊒ 0 ≀ |a - b| case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b ⊒ 0 β‰  |a - b|
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b ⊒ |a - b| > 0 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
intro h''
case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b ⊒ 0 β‰  |a - b|
case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b h'' : 0 = |a - b| ⊒ False
Please generate a tactic in lean4 to solve the state. STATE: case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b ⊒ 0 β‰  |a - b| TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
apply abne
case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b h'' : 0 = |a - b| ⊒ False
case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b h'' : 0 = |a - b| ⊒ a = b
Please generate a tactic in lean4 to solve the state. STATE: case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b h'' : 0 = |a - b| ⊒ False TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
apply eq_of_abs_sub_eq_zero h''.symm
case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b h'' : 0 = |a - b| ⊒ a = b
no goals
Please generate a tactic in lean4 to solve the state. STATE: case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b h'' : 0 = |a - b| ⊒ a = b TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
apply abs_nonneg
case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b ⊒ 0 ≀ |a - b|
no goals
Please generate a tactic in lean4 to solve the state. STATE: case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b ⊒ 0 ≀ |a - b| TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
change |a - b| / 2 > 0
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 ⊒ Ξ΅ > 0
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 ⊒ |a - b| / 2 > 0
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 ⊒ Ξ΅ > 0 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
linarith
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 ⊒ |a - b| / 2 > 0
no goals
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 ⊒ |a - b| / 2 > 0 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
apply hNa
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb ⊒ |s N - a| < Ξ΅
case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb ⊒ N β‰₯ Na
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb ⊒ |s N - a| < Ξ΅ TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
apply le_max_left
case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb ⊒ N β‰₯ Na
no goals
Please generate a tactic in lean4 to solve the state. STATE: case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb ⊒ N β‰₯ Na TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
apply hNb
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ ⊒ |s N - b| < Ξ΅
case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ ⊒ N β‰₯ Nb
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ ⊒ |s N - b| < Ξ΅ TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
apply le_max_right
case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ ⊒ N β‰₯ Nb
no goals
Please generate a tactic in lean4 to solve the state. STATE: case a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ ⊒ N β‰₯ Nb TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
congr
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ |a - b| = |-(s N - a) + (s N - b)|
case e_a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ a - b = -(s N - a) + (s N - b)
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ |a - b| = |-(s N - a) + (s N - b)| TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
ring
case e_a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ a - b = -(s N - a) + (s N - b)
no goals
Please generate a tactic in lean4 to solve the state. STATE: case e_a s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ a - b = -(s N - a) + (s N - b) TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
rw [abs_neg]
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ |(-(s N - a))| + |s N - b| = |s N - a| + |s N - b|
no goals
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ |(-(s N - a))| + |s N - b| = |s N - a| + |s N - b| TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean
C03S06.convergesTo_unique
[97, 1]
[130, 25]
norm_num
s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ Ξ΅ + Ξ΅ = |a - b|
no goals
Please generate a tactic in lean4 to solve the state. STATE: s : β„• β†’ ℝ a b : ℝ sa : ConvergesTo s a sb : ConvergesTo s b abne : Β¬a = b this : |a - b| > 0 Ξ΅ : ℝ := |a - b| / 2 Ξ΅pos : Ξ΅ > 0 Na : β„• hNa : βˆ€ n β‰₯ Na, |s n - a| < Ξ΅ Nb : β„• hNb : βˆ€ n β‰₯ Nb, |s n - b| < Ξ΅ N : β„• := max Na Nb absa : |s N - a| < Ξ΅ absb : |s N - b| < Ξ΅ ⊒ Ξ΅ + Ξ΅ = |a - b| TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
Int.div'_add_mod'
[158, 1]
[160, 45]
rw [div', mod']
a b : β„€ ⊒ b * div' a b + mod' a b = a
a b : β„€ ⊒ b * ((a + b / 2) / b) + ((a + b / 2) % b - b / 2) = a
Please generate a tactic in lean4 to solve the state. STATE: a b : β„€ ⊒ b * div' a b + mod' a b = a TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
Int.div'_add_mod'
[158, 1]
[160, 45]
linarith [Int.ediv_add_emod (a + b / 2) b]
a b : β„€ ⊒ b * ((a + b / 2) / b) + ((a + b / 2) % b - b / 2) = a
no goals
Please generate a tactic in lean4 to solve the state. STATE: a b : β„€ ⊒ b * ((a + b / 2) / b) + ((a + b / 2) % b - b / 2) = a TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
Int.abs_mod'_le
[162, 1]
[170, 11]
rw [mod', abs_le]
a b : β„€ h : 0 < b ⊒ |mod' a b| ≀ b / 2
a b : β„€ h : 0 < b ⊒ -(b / 2) ≀ (a + b / 2) % b - b / 2 ∧ (a + b / 2) % b - b / 2 ≀ b / 2
Please generate a tactic in lean4 to solve the state. STATE: a b : β„€ h : 0 < b ⊒ |mod' a b| ≀ b / 2 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
Int.abs_mod'_le
[162, 1]
[170, 11]
constructor
a b : β„€ h : 0 < b ⊒ -(b / 2) ≀ (a + b / 2) % b - b / 2 ∧ (a + b / 2) % b - b / 2 ≀ b / 2
case left a b : β„€ h : 0 < b ⊒ -(b / 2) ≀ (a + b / 2) % b - b / 2 case right a b : β„€ h : 0 < b ⊒ (a + b / 2) % b - b / 2 ≀ b / 2
Please generate a tactic in lean4 to solve the state. STATE: a b : β„€ h : 0 < b ⊒ -(b / 2) ≀ (a + b / 2) % b - b / 2 ∧ (a + b / 2) % b - b / 2 ≀ b / 2 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
Int.abs_mod'_le
[162, 1]
[170, 11]
have := Int.emod_lt_of_pos (a + b / 2) h
case right a b : β„€ h : 0 < b ⊒ (a + b / 2) % b - b / 2 ≀ b / 2
case right a b : β„€ h : 0 < b this : (a + b / 2) % b < b ⊒ (a + b / 2) % b - b / 2 ≀ b / 2
Please generate a tactic in lean4 to solve the state. STATE: case right a b : β„€ h : 0 < b ⊒ (a + b / 2) % b - b / 2 ≀ b / 2 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
Int.abs_mod'_le
[162, 1]
[170, 11]
have := Int.ediv_add_emod b 2
case right a b : β„€ h : 0 < b this : (a + b / 2) % b < b ⊒ (a + b / 2) % b - b / 2 ≀ b / 2
case right a b : β„€ h : 0 < b this✝ : (a + b / 2) % b < b this : 2 * (b / 2) + b % 2 = b ⊒ (a + b / 2) % b - b / 2 ≀ b / 2
Please generate a tactic in lean4 to solve the state. STATE: case right a b : β„€ h : 0 < b this : (a + b / 2) % b < b ⊒ (a + b / 2) % b - b / 2 ≀ b / 2 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
Int.abs_mod'_le
[162, 1]
[170, 11]
have := Int.emod_lt_of_pos b zero_lt_two
case right a b : β„€ h : 0 < b this✝ : (a + b / 2) % b < b this : 2 * (b / 2) + b % 2 = b ⊒ (a + b / 2) % b - b / 2 ≀ b / 2
case right a b : β„€ h : 0 < b this✝¹ : (a + b / 2) % b < b this✝ : 2 * (b / 2) + b % 2 = b this : b % 2 < 2 ⊒ (a + b / 2) % b - b / 2 ≀ b / 2
Please generate a tactic in lean4 to solve the state. STATE: case right a b : β„€ h : 0 < b this✝ : (a + b / 2) % b < b this : 2 * (b / 2) + b % 2 = b ⊒ (a + b / 2) % b - b / 2 ≀ b / 2 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
Int.abs_mod'_le
[162, 1]
[170, 11]
revert this
case right a b : β„€ h : 0 < b this✝¹ : (a + b / 2) % b < b this✝ : 2 * (b / 2) + b % 2 = b this : b % 2 < 2 ⊒ (a + b / 2) % b - b / 2 ≀ b / 2
case right a b : β„€ h : 0 < b this✝ : (a + b / 2) % b < b this : 2 * (b / 2) + b % 2 = b ⊒ b % 2 < 2 β†’ (a + b / 2) % b - b / 2 ≀ b / 2
Please generate a tactic in lean4 to solve the state. STATE: case right a b : β„€ h : 0 < b this✝¹ : (a + b / 2) % b < b this✝ : 2 * (b / 2) + b % 2 = b this : b % 2 < 2 ⊒ (a + b / 2) % b - b / 2 ≀ b / 2 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
Int.abs_mod'_le
[162, 1]
[170, 11]
intro this
case right a b : β„€ h : 0 < b this✝ : (a + b / 2) % b < b this : 2 * (b / 2) + b % 2 = b ⊒ b % 2 < 2 β†’ (a + b / 2) % b - b / 2 ≀ b / 2
case right a b : β„€ h : 0 < b this✝¹ : (a + b / 2) % b < b this✝ : 2 * (b / 2) + b % 2 = b this : b % 2 < 2 ⊒ (a + b / 2) % b - b / 2 ≀ b / 2
Please generate a tactic in lean4 to solve the state. STATE: case right a b : β„€ h : 0 < b this✝ : (a + b / 2) % b < b this : 2 * (b / 2) + b % 2 = b ⊒ b % 2 < 2 β†’ (a + b / 2) % b - b / 2 ≀ b / 2 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
Int.abs_mod'_le
[162, 1]
[170, 11]
linarith
case right a b : β„€ h : 0 < b this✝¹ : (a + b / 2) % b < b this✝ : 2 * (b / 2) + b % 2 = b this : b % 2 < 2 ⊒ (a + b / 2) % b - b / 2 ≀ b / 2
no goals
Please generate a tactic in lean4 to solve the state. STATE: case right a b : β„€ h : 0 < b this✝¹ : (a + b / 2) % b < b this✝ : 2 * (b / 2) + b % 2 = b this : b % 2 < 2 ⊒ (a + b / 2) % b - b / 2 ≀ b / 2 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
Int.abs_mod'_le
[162, 1]
[170, 11]
linarith [Int.emod_nonneg (a + b / 2) h.ne']
case left a b : β„€ h : 0 < b ⊒ -(b / 2) ≀ (a + b / 2) % b - b / 2
no goals
Please generate a tactic in lean4 to solve the state. STATE: case left a b : β„€ h : 0 < b ⊒ -(b / 2) ≀ (a + b / 2) % b - b / 2 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
Int.mod'_eq
[172, 1]
[172, 91]
linarith [div'_add_mod' a b]
a b : β„€ ⊒ mod' a b = a - b * div' a b
no goals
Please generate a tactic in lean4 to solve the state. STATE: a b : β„€ ⊒ mod' a b = a - b * div' a b TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
sq_add_sq_eq_zero
[176, 1]
[178, 8]
sorry
Ξ± : Type u_1 inst✝ : LinearOrderedRing Ξ± x y : Ξ± ⊒ x ^ 2 + y ^ 2 = 0 ↔ x = 0 ∧ y = 0
no goals
Please generate a tactic in lean4 to solve the state. STATE: Ξ± : Type u_1 inst✝ : LinearOrderedRing Ξ± x y : Ξ± ⊒ x ^ 2 + y ^ 2 = 0 ↔ x = 0 ∧ y = 0 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_nonneg
[185, 1]
[186, 8]
sorry
x : gaussInt ⊒ 0 ≀ norm x
no goals
Please generate a tactic in lean4 to solve the state. STATE: x : gaussInt ⊒ 0 ≀ norm x TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_eq_zero
[187, 1]
[188, 8]
sorry
x : gaussInt ⊒ norm x = 0 ↔ x = 0
no goals
Please generate a tactic in lean4 to solve the state. STATE: x : gaussInt ⊒ norm x = 0 ↔ x = 0 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_pos
[189, 1]
[190, 8]
sorry
x : gaussInt ⊒ 0 < norm x ↔ x β‰  0
no goals
Please generate a tactic in lean4 to solve the state. STATE: x : gaussInt ⊒ 0 < norm x ↔ x β‰  0 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mul
[191, 1]
[192, 8]
sorry
x y : gaussInt ⊒ norm (x * y) = norm x * norm y
no goals
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt ⊒ norm (x * y) = norm x * norm y TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_conj
[204, 1]
[204, 76]
simp [norm]
x : gaussInt ⊒ norm (conj x) = norm x
no goals
Please generate a tactic in lean4 to solve the state. STATE: x : gaussInt ⊒ norm (conj x) = norm x TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
have norm_y_pos : 0 < norm y := by rwa [norm_pos]
x y : gaussInt hy : y β‰  0 ⊒ norm (x % y) < norm y
x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y ⊒ norm (x % y) < norm y
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt hy : y β‰  0 ⊒ norm (x % y) < norm y TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
have H1 : x % y * conj y = ⟨Int.mod' (x * conj y).re (norm y), Int.mod' (x * conj y).im (norm y)⟩
x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y ⊒ norm (x % y) < norm y
case H1 x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y ⊒ x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm (x % y) < norm y
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y ⊒ norm (x % y) < norm y TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
have H2 : norm (x % y) * norm y ≀ norm y / 2 * norm y
x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm (x % y) < norm y
case H2 x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm (x % y) * norm y ≀ norm y / 2 * norm y x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } H2 : norm (x % y) * norm y ≀ norm y / 2 * norm y ⊒ norm (x % y) < norm y
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm (x % y) < norm y TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
rwa [norm_pos]
x y : gaussInt hy : y β‰  0 ⊒ 0 < norm y
no goals
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt hy : y β‰  0 ⊒ 0 < norm y TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
ext <;> simp [Int.mod'_eq, mod_def, div_def, norm] <;> ring
case H1 x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y ⊒ x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) }
no goals
Please generate a tactic in lean4 to solve the state. STATE: case H1 x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y ⊒ x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
calc norm (x % y) * norm y = norm (x % y * conj y) := by simp only [norm_mul, norm_conj] _ = |Int.mod' (x.re * y.re + x.im * y.im) (norm y)| ^ 2 + |Int.mod' (-(x.re * y.im) + x.im * y.re) (norm y)| ^ 2 := by simp [H1, norm, sq_abs] _ ≀ (y.norm / 2) ^ 2 + (y.norm / 2) ^ 2 := by gcongr <;> apply Int.abs_mod'_le _ _ norm_y_pos _ = norm y / 2 * (norm y / 2 * 2) := by ring _ ≀ norm y / 2 * norm y := by gcongr; apply Int.ediv_mul_le; norm_num
case H2 x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm (x % y) * norm y ≀ norm y / 2 * norm y
no goals
Please generate a tactic in lean4 to solve the state. STATE: case H2 x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm (x % y) * norm y ≀ norm y / 2 * norm y TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
simp only [norm_mul, norm_conj]
x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm (x % y) * norm y = norm (x % y * conj y)
no goals
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm (x % y) * norm y = norm (x % y * conj y) TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
simp [H1, norm, sq_abs]
x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm (x % y * conj y) = |Int.mod' (x.re * y.re + x.im * y.im) (norm y)| ^ 2 + |Int.mod' (-(x.re * y.im) + x.im * y.re) (norm y)| ^ 2
no goals
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm (x % y * conj y) = |Int.mod' (x.re * y.re + x.im * y.im) (norm y)| ^ 2 + |Int.mod' (-(x.re * y.im) + x.im * y.re) (norm y)| ^ 2 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
gcongr <;> apply Int.abs_mod'_le _ _ norm_y_pos
x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ |Int.mod' (x.re * y.re + x.im * y.im) (norm y)| ^ 2 + |Int.mod' (-(x.re * y.im) + x.im * y.re) (norm y)| ^ 2 ≀ (norm y / 2) ^ 2 + (norm y / 2) ^ 2
no goals
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ |Int.mod' (x.re * y.re + x.im * y.im) (norm y)| ^ 2 + |Int.mod' (-(x.re * y.im) + x.im * y.re) (norm y)| ^ 2 ≀ (norm y / 2) ^ 2 + (norm y / 2) ^ 2 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
ring
x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ (norm y / 2) ^ 2 + (norm y / 2) ^ 2 = norm y / 2 * (norm y / 2 * 2)
no goals
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ (norm y / 2) ^ 2 + (norm y / 2) ^ 2 = norm y / 2 * (norm y / 2 * 2) TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
gcongr
x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm y / 2 * (norm y / 2 * 2) ≀ norm y / 2 * norm y
case h x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm y / 2 * 2 ≀ norm y
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm y / 2 * (norm y / 2 * 2) ≀ norm y / 2 * norm y TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
apply Int.ediv_mul_le
case h x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm y / 2 * 2 ≀ norm y
case h.H x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ 2 β‰  0
Please generate a tactic in lean4 to solve the state. STATE: case h x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ norm y / 2 * 2 ≀ norm y TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
norm_num
case h.H x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ 2 β‰  0
no goals
Please generate a tactic in lean4 to solve the state. STATE: case h.H x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } ⊒ 2 β‰  0 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
apply Int.ediv_lt_of_lt_mul
x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } H2 : norm (x % y) * norm y ≀ norm y / 2 * norm y ⊒ norm y / 2 < norm y
case H x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } H2 : norm (x % y) * norm y ≀ norm y / 2 * norm y ⊒ 0 < 2 case H' x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } H2 : norm (x % y) * norm y ≀ norm y / 2 * norm y ⊒ norm y < norm y * 2
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } H2 : norm (x % y) * norm y ≀ norm y / 2 * norm y ⊒ norm y / 2 < norm y TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
norm_num
case H x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } H2 : norm (x % y) * norm y ≀ norm y / 2 * norm y ⊒ 0 < 2
no goals
Please generate a tactic in lean4 to solve the state. STATE: case H x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } H2 : norm (x % y) * norm y ≀ norm y / 2 * norm y ⊒ 0 < 2 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.norm_mod_lt
[219, 1]
[236, 19]
linarith
case H' x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } H2 : norm (x % y) * norm y ≀ norm y / 2 * norm y ⊒ norm y < norm y * 2
no goals
Please generate a tactic in lean4 to solve the state. STATE: case H' x y : gaussInt hy : y β‰  0 norm_y_pos : 0 < norm y H1 : x % y * conj y = { re := Int.mod' (x * conj y).re (norm y), im := Int.mod' (x * conj y).im (norm y) } H2 : norm (x % y) * norm y ≀ norm y / 2 * norm y ⊒ norm y < norm y * 2 TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.natAbs_norm_mod_lt
[241, 1]
[245, 25]
apply Int.ofNat_lt.1
x y : gaussInt hy : y β‰  0 ⊒ Int.natAbs (norm (x % y)) < Int.natAbs (norm y)
x y : gaussInt hy : y β‰  0 ⊒ ↑(Int.natAbs (norm (x % y))) < ↑(Int.natAbs (norm y))
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt hy : y β‰  0 ⊒ Int.natAbs (norm (x % y)) < Int.natAbs (norm y) TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.natAbs_norm_mod_lt
[241, 1]
[245, 25]
simp only [Int.coe_natAbs, abs_of_nonneg, norm_nonneg]
x y : gaussInt hy : y β‰  0 ⊒ ↑(Int.natAbs (norm (x % y))) < ↑(Int.natAbs (norm y))
x y : gaussInt hy : y β‰  0 ⊒ norm (x % y) < norm y
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt hy : y β‰  0 ⊒ ↑(Int.natAbs (norm (x % y))) < ↑(Int.natAbs (norm y)) TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.natAbs_norm_mod_lt
[241, 1]
[245, 25]
apply norm_mod_lt x hy
x y : gaussInt hy : y β‰  0 ⊒ norm (x % y) < norm y
no goals
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt hy : y β‰  0 ⊒ norm (x % y) < norm y TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.not_norm_mul_left_lt_norm
[247, 1]
[254, 51]
apply not_lt_of_ge
x y : gaussInt hy : y β‰  0 ⊒ Β¬Int.natAbs (norm (x * y)) < Int.natAbs (norm x)
case h x y : gaussInt hy : y β‰  0 ⊒ Int.natAbs (norm (x * y)) β‰₯ Int.natAbs (norm x)
Please generate a tactic in lean4 to solve the state. STATE: x y : gaussInt hy : y β‰  0 ⊒ Β¬Int.natAbs (norm (x * y)) < Int.natAbs (norm x) TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.not_norm_mul_left_lt_norm
[247, 1]
[254, 51]
rw [norm_mul, Int.natAbs_mul]
case h x y : gaussInt hy : y β‰  0 ⊒ Int.natAbs (norm (x * y)) β‰₯ Int.natAbs (norm x)
case h x y : gaussInt hy : y β‰  0 ⊒ Int.natAbs (norm x) * Int.natAbs (norm y) β‰₯ Int.natAbs (norm x)
Please generate a tactic in lean4 to solve the state. STATE: case h x y : gaussInt hy : y β‰  0 ⊒ Int.natAbs (norm (x * y)) β‰₯ Int.natAbs (norm x) TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.not_norm_mul_left_lt_norm
[247, 1]
[254, 51]
apply le_mul_of_one_le_right (Nat.zero_le _)
case h x y : gaussInt hy : y β‰  0 ⊒ Int.natAbs (norm x) * Int.natAbs (norm y) β‰₯ Int.natAbs (norm x)
case h x y : gaussInt hy : y β‰  0 ⊒ 1 ≀ Int.natAbs (norm y)
Please generate a tactic in lean4 to solve the state. STATE: case h x y : gaussInt hy : y β‰  0 ⊒ Int.natAbs (norm x) * Int.natAbs (norm y) β‰₯ Int.natAbs (norm x) TACTIC:
https://github.com/fpvandoorn/LeanCourse23.git
7b0a3cf61b802764dc7baee9d9825e9c62cf9c5d
LeanCourse/MIL/C06_Structures/S03_Building_the_Gaussian_Integers.lean
gaussInt.not_norm_mul_left_lt_norm
[247, 1]
[254, 51]
apply Int.ofNat_le.1
case h x y : gaussInt hy : y β‰  0 ⊒ 1 ≀ Int.natAbs (norm y)
case h x y : gaussInt hy : y β‰  0 ⊒ ↑1 ≀ ↑(Int.natAbs (norm y))
Please generate a tactic in lean4 to solve the state. STATE: case h x y : gaussInt hy : y β‰  0 ⊒ 1 ≀ Int.natAbs (norm y) TACTIC: