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/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase21.solution | [273, 1] | [302, 78] | have h0 := hf.toGoodCase2.Eq6 (x + 1) | R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
x : R
⊢ f (x + 2) = -f x | R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
x : R
h0 : f (x + 1 + 1) + f (x + 1 - 1) = (f (x + 1) + 1) * (f 2 - 1)
⊢ f (x + 2) = -f x | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
x : R
⊢ f (x + 2) = -f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase21.solution | [273, 1] | [302, 78] | rw [h, sub_self, mul_zero, add_sub_cancel_right, add_assoc, one_add_one_eq_two] at h0 | R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
x : R
h0 : f (x + 1 + 1) + f (x + 1 - 1) = (f (x + 1) + 1) * (f 2 - 1)
⊢ f (x + 2) = -f x | R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
x : R
h0 : f (x + 2) + f x = 0
⊢ f (x + 2) = -f x | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
x : R
h0 : f (x + 1 + 1) + f (x + 1 - 1) = (f (x + 1) + 1) * (f 2 - 1)
⊢ f (x + 2) = -f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase21.solution | [273, 1] | [302, 78] | exact eq_neg_iff_add_eq_zero.mpr h0 | R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
x : R
h0 : f (x + 2) + f x = 0
⊢ f (x + 2) = -f x | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
x : R
h0 : f (x + 2) + f x = 0
⊢ f (x + 2) = -f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase21.solution | [273, 1] | [302, 78] | have h1 : (2 : R) + 2 = 4 := by norm_num | R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
x : R
⊢ f (x + 4) = f x | R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
x : R
h1 : 2 + 2 = 4
⊢ f (x + 4) = f x | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
x : R
⊢ f (x + 4) = f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase21.solution | [273, 1] | [302, 78] | rw [← h1, ← add_assoc, h0, h0, neg_neg] | R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
x : R
h1 : 2 + 2 = 4
⊢ f (x + 4) = f x | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
x : R
h1 : 2 + 2 = 4
⊢ f (x + 4) = f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase21.solution | [273, 1] | [302, 78] | norm_num | R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
x : R
⊢ 2 + 2 = 4 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
x : R
⊢ 2 + 2 = 4
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase21.solution | [273, 1] | [302, 78] | rw [h0, h, mul_neg_one] | R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
h1 : 4 = 0
hInj : Function.Injective ℤ₄.cast
x : R
⊢ f (x + 2) = f x * -f 2 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
h1 : 4 = 0
hInj : Function.Injective ℤ₄.cast
x : R
⊢ f (x + 2) = f x * -f 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase21.solution | [273, 1] | [302, 78] | rwa [two_add_one_eq_three, eq_neg_iff_add_eq_zero, three_add_one_eq_four] | R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
h1 : 4 = 0
hInj : Function.Injective ℤ₄.cast
h2 : QuasiPeriodic f 2
⊢ 2 + 1 = -1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
h1 : 4 = 0
hInj : Function.Injective ℤ₄.cast
h2 : QuasiPeriodic f 2
⊢ 2 + 1 = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase21.solution | [273, 1] | [302, 78] | change f 0 = ((-1 : ℤ) : S) | R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
h1 : 4 = 0
hInj : Function.Injective ℤ₄.cast
hSurj : Function.Surjective ℤ₄.cast
h2 : Function.Bijective ℤ₄.cast
⊢ f ℤ₄.ℤ₄0.cast = ↑(ℤ₄Map ℤ₄.ℤ₄0) | R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
h1 : 4 = 0
hInj : Function.Injective ℤ₄.cast
hSurj : Function.Surjective ℤ₄.cast
h2 : Function.Bijective ℤ₄.cast
⊢ f 0 = ↑(-1) | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
h1 : 4 = 0
hInj : Function.Injective ℤ₄.cast
hSurj : Function.Surjective ℤ₄.cast
h2 : Function.Bijective ℤ₄.cast
⊢ f ℤ₄.ℤ₄0.cast = ↑(ℤ₄Map ℤ₄.ℤ₄0)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase21.solution | [273, 1] | [302, 78] | rw [hf.map_zero, Int.cast_neg, Int.cast_one] | R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
h1 : 4 = 0
hInj : Function.Injective ℤ₄.cast
hSurj : Function.Surjective ℤ₄.cast
h2 : Function.Bijective ℤ₄.cast
⊢ f 0 = ↑(-1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 1
h0 : ∀ (x : R), f (x + 2) = -f x
h1 : 4 = 0
hInj : Function.Injective ℤ₄.cast
hSurj : Function.Surjective ℤ₄.cast
h2 : Function.Bijective ℤ₄.cast
⊢ f 0 = ↑(-1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.Eq1 | [316, 1] | [317, 87] | rw [hf.toGoodCase2.Eq6, h, zero_sub, mul_neg_one, neg_add_rev, neg_add_cancel_right] | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
⊢ f (x + 1) + f (x - 1) + f x = -1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
⊢ f (x + 1) + f (x - 1) + f x = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.Rchar | [319, 1] | [324, 69] | rw [← two_add_one_eq_three, ← eq_neg_iff_add_eq_zero] | R : Type u_1
S : Type ?u.109330
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
⊢ 3 = 0 | R : Type u_1
S : Type ?u.109330
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
⊢ 2 = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type ?u.109330
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
⊢ 3 = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.Rchar | [319, 1] | [324, 69] | refine hf.period_imp_eq _ _ λ x ↦ ?_ | R : Type u_1
S : Type ?u.109330
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
⊢ 2 = -1 | R : Type u_1
S : Type ?u.109330
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
⊢ f (x + 2) = f (x + -1) | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type ?u.109330
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
⊢ 2 = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.Rchar | [319, 1] | [324, 69] | have h0 := Eq1 hf h (x + 1) | R : Type u_1
S : Type ?u.109330
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
⊢ f (x + 2) = f (x + -1) | R : Type u_1
S : Type ?u.109330
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f (x + 1 + 1) + f (x + 1 - 1) + f (x + 1) = -1
⊢ f (x + 2) = f (x + -1) | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type ?u.109330
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
⊢ f (x + 2) = f (x + -1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.Rchar | [319, 1] | [324, 69] | rwa [add_sub_cancel_right, add_assoc x, one_add_one_eq_two, ← Eq1 hf h x,
← add_rotate, add_left_inj, add_right_inj, sub_eq_add_neg] at h0 | R : Type u_1
S : Type ?u.109330
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f (x + 1 + 1) + f (x + 1 - 1) + f (x + 1) = -1
⊢ f (x + 2) = f (x + -1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type ?u.109330
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f (x + 1 + 1) + f (x + 1 - 1) + f (x + 1) = -1
⊢ f (x + 2) = f (x + -1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.Rchar' | [326, 1] | [327, 64] | rw [eq_neg_iff_add_eq_zero, two_add_one_eq_three, Rchar hf h] | R : Type u_1
S : Type ?u.112996
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
⊢ 2 = -1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type ?u.112996
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
⊢ 2 = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.Eq2 | [330, 1] | [334, 70] | have h0 : f 2 ≠ 1 := λ h0 ↦ hf.map_two_ne_neg_one <| by rw [h, zero_eq_neg, ← h, ← h0] | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
⊢ f (x + 1) * f (x - 1) = (f x + 1) * f x | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f 2 ≠ 1
⊢ f (x + 1) * f (x - 1) = (f x + 1) * f x | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
⊢ f (x + 1) * f (x - 1) = (f x + 1) * f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.Eq2 | [330, 1] | [334, 70] | rw [add_one_mul (f x), ← sq, ← hf.toGoodCase2.Eq7 h0, add_one_mul (f _),
mul_add_one (f _), add_assoc, add_assoc, self_eq_add_right,
add_right_comm, ← add_assoc, ← add_assoc, Eq1 hf h, neg_add_self] | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f 2 ≠ 1
⊢ f (x + 1) * f (x - 1) = (f x + 1) * f x | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f 2 ≠ 1
⊢ f (x + 1) * f (x - 1) = (f x + 1) * f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.Eq2 | [330, 1] | [334, 70] | rw [h, zero_eq_neg, ← h, ← h0] | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f 2 = 1
⊢ f 2 = -1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f 2 = 1
⊢ f 2 = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_imp | [336, 1] | [349, 86] | rw [sub_eq_add_neg, ← Rchar' hf h, ← one_add_one_eq_two, ← add_assoc] at h1 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) = 0 ∧ f (x - 1) = 0
⊢ x = 0 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) = 0 ∧ f (x + 1 + 1) = 0
⊢ x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) = 0 ∧ f (x - 1) = 0
⊢ x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_imp | [336, 1] | [349, 86] | replace h1 := hf.toReducedGood.period_imp_zero
(Eq5 hf.toNontrivialGood hf.map_even h1.1 h1.2) | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) = 0 ∧ f (x + 1 + 1) = 0
⊢ x = 0 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : 2 * (x + 1) + 1 = 0
⊢ x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) = 0 ∧ f (x + 1 + 1) = 0
⊢ x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_imp | [336, 1] | [349, 86] | rwa [Rchar' hf h, neg_one_mul, neg_add_rev, neg_add_cancel_comm, neg_eq_zero] at h1 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : 2 * (x + 1) + 1 = 0
⊢ x = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : 2 * (x + 1) + 1 = 0
⊢ x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_imp | [336, 1] | [349, 86] | have h1 : f (x + 1) + f (x - 1) = 0 := by
rw [eq_sub_of_add_eq (Eq1 hf h x), h0, sub_self] | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) + f (x - 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_imp | [336, 1] | [349, 86] | obtain h2 | h2 : f (x + 1) = 0 ∨ f (x - 1) = 0 := by
rw [← mul_eq_zero, Eq2 hf h, h0, neg_add_self, zero_mul] | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) + f (x - 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0 | case inl
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) + f (x - 1) = 0
h2 : f (x + 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0
case inr
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) + f (x - 1) = 0
h2 : f (x - 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) + f (x - 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_imp | [336, 1] | [349, 86] | rw [eq_sub_of_add_eq (Eq1 hf h x), h0, sub_self] | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
⊢ f (x + 1) + f (x - 1) = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
⊢ f (x + 1) + f (x - 1) = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_imp | [336, 1] | [349, 86] | rw [← mul_eq_zero, Eq2 hf h, h0, neg_add_self, zero_mul] | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) + f (x - 1) = 0
⊢ f (x + 1) = 0 ∨ f (x - 1) = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) + f (x - 1) = 0
⊢ f (x + 1) = 0 ∨ f (x - 1) = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_imp | [336, 1] | [349, 86] | rw [h2, zero_add] at h1 | case inl
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) + f (x - 1) = 0
h2 : f (x + 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0 | case inl
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x - 1) = 0
h2 : f (x + 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
case inl
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) + f (x - 1) = 0
h2 : f (x + 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_imp | [336, 1] | [349, 86] | exact ⟨h2, h1⟩ | case inl
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x - 1) = 0
h2 : f (x + 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inl
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x - 1) = 0
h2 : f (x + 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_imp | [336, 1] | [349, 86] | rw [h2, add_zero] at h1 | case inr
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) + f (x - 1) = 0
h2 : f (x - 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0 | case inr
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) = 0
h2 : f (x - 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) + f (x - 1) = 0
h2 : f (x - 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_imp | [336, 1] | [349, 86] | exact ⟨h1, h2⟩ | case inr
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) = 0
h2 : f (x - 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
x : R
h0 : f x = -1
h1 : f (x + 1) = 0
h2 : f (x - 1) = 0
⊢ f (x + 1) = 0 ∧ f (x - 1) = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | have Rchar' := Rchar' hf h | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
⊢ f x = -1 ∨ f x = 0 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
⊢ f x = -1 ∨ f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
⊢ f x = -1 ∨ f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | have h1 : f (x * x + 1) = (f x + 1) * f x := by
rw [hf.is_good, ← two_mul, Rchar', neg_one_mul, hf.map_even, add_one_mul (f x)] | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
⊢ f x = -1 ∨ f x = 0 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
⊢ f x = -1 ∨ f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
⊢ f x = -1 ∨ f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | have h2 : f (x * x - 1) = f x * f x - 1 := by
rw [Case2.Eq1 hf.toNontrivialGood hf.map_even, sub_self, hf.map_zero, sub_eq_add_neg] | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
⊢ f x = -1 ∨ f x = 0 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2 : f (x * x - 1) = f x * f x - 1
⊢ f x = -1 ∨ f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
⊢ f x = -1 ∨ f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | have h3 : f (x * x) = (f x + 1 + 1) * f x := by
have h2 := hf.is_good (x + 1) (x - 1)
rw [Eq2 hf h, add_one_mul x, mul_sub_one, sub_add_sub_cancel, sub_add_cancel,
add_add_sub_cancel, ← two_mul, Rchar', neg_one_mul, hf.map_even] at h2
exact h2.trans (add_one_mul _ (f x)).symm | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2 : f (x * x - 1) = f x * f x - 1
⊢ f x = -1 ∨ f x = 0 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2 : f (x * x - 1) = f x * f x - 1
h3 : f (x * x) = (f x + 1 + 1) * f x
⊢ f x = -1 ∨ f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2 : f (x * x - 1) = f x * f x - 1
⊢ f x = -1 ∨ f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | have h4 := Eq1 hf h (x * x) | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2 : f (x * x - 1) = f x * f x - 1
h3 : f (x * x) = (f x + 1 + 1) * f x
⊢ f x = -1 ∨ f x = 0 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2 : f (x * x - 1) = f x * f x - 1
h3 : f (x * x) = (f x + 1 + 1) * f x
h4 : f (x * x + 1) + f (x * x - 1) + f (x * x) = -1
⊢ f x = -1 ∨ f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2 : f (x * x - 1) = f x * f x - 1
h3 : f (x * x) = (f x + 1 + 1) * f x
⊢ f x = -1 ∨ f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | rw [h1, h2, h3, ← add_sub_assoc, ← add_mul, ← add_sub_right_comm,
sub_eq_neg_self, ← add_mul, mul_eq_zero, add_add_add_comm] at h4 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2 : f (x * x - 1) = f x * f x - 1
h3 : f (x * x) = (f x + 1 + 1) * f x
h4 : f (x * x + 1) + f (x * x - 1) + f (x * x) = -1
⊢ f x = -1 ∨ f x = 0 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2 : f (x * x - 1) = f x * f x - 1
h3 : f (x * x) = (f x + 1 + 1) * f x
h4 : f x + 1 + (f x + 1) + (f x + 1) = 0 ∨ f x = 0
⊢ f x = -1 ∨ f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2 : f (x * x - 1) = f x * f x - 1
h3 : f (x * x) = (f x + 1 + 1) * f x
h4 : f (x * x + 1) + f (x * x - 1) + f (x * x) = -1
⊢ f x = -1 ∨ f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | clear h1 h2 h3 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2 : f (x * x - 1) = f x * f x - 1
h3 : f (x * x) = (f x + 1 + 1) * f x
h4 : f x + 1 + (f x + 1) + (f x + 1) = 0 ∨ f x = 0
⊢ f x = -1 ∨ f x = 0 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h4 : f x + 1 + (f x + 1) + (f x + 1) = 0 ∨ f x = 0
⊢ f x = -1 ∨ f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2 : f (x * x - 1) = f x * f x - 1
h3 : f (x * x) = (f x + 1 + 1) * f x
h4 : f x + 1 + (f x + 1) + (f x + 1) = 0 ∨ f x = 0
⊢ f x = -1 ∨ f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | revert h4 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h4 : f x + 1 + (f x + 1) + (f x + 1) = 0 ∨ f x = 0
⊢ f x = -1 ∨ f x = 0 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
⊢ f x + 1 + (f x + 1) + (f x + 1) = 0 ∨ f x = 0 → f x = -1 ∨ f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h4 : f x + 1 + (f x + 1) + (f x + 1) = 0 ∨ f x = 0
⊢ f x = -1 ∨ f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | refine Or.imp_left λ h1 ↦ ?_ | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
⊢ f x + 1 + (f x + 1) + (f x + 1) = 0 ∨ f x = 0 → f x = -1 ∨ f x = 0 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f x + 1 + (f x + 1) + (f x + 1) = 0
⊢ f x = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
⊢ f x + 1 + (f x + 1) + (f x + 1) = 0 ∨ f x = 0 → f x = -1 ∨ f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | rw [← two_mul, ← add_one_mul 2 (f x + 1), mul_eq_zero, two_add_one_eq_three] at h1 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f x + 1 + (f x + 1) + (f x + 1) = 0
⊢ f x = -1 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : 3 = 0 ∨ f x + 1 = 0
⊢ f x = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f x + 1 + (f x + 1) + (f x + 1) = 0
⊢ f x = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | exact eq_neg_of_add_eq_zero_left (h1.resolve_left h0) | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : 3 = 0 ∨ f x + 1 = 0
⊢ f x = -1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : 3 = 0 ∨ f x + 1 = 0
⊢ f x = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | rw [hf.is_good, ← two_mul, Rchar', neg_one_mul, hf.map_even, add_one_mul (f x)] | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
⊢ f (x * x + 1) = (f x + 1) * f x | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
⊢ f (x * x + 1) = (f x + 1) * f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | rw [Case2.Eq1 hf.toNontrivialGood hf.map_even, sub_self, hf.map_zero, sub_eq_add_neg] | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
⊢ f (x * x - 1) = f x * f x - 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
⊢ f (x * x - 1) = f x * f x - 1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | have h2 := hf.is_good (x + 1) (x - 1) | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2 : f (x * x - 1) = f x * f x - 1
⊢ f (x * x) = (f x + 1 + 1) * f x | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2✝ : f (x * x - 1) = f x * f x - 1
h2 : f ((x + 1) * (x - 1) + 1) = f (x + 1) * f (x - 1) + f (x + 1 + (x - 1))
⊢ f (x * x) = (f x + 1 + 1) * f x | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2 : f (x * x - 1) = f x * f x - 1
⊢ f (x * x) = (f x + 1 + 1) * f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | rw [Eq2 hf h, add_one_mul x, mul_sub_one, sub_add_sub_cancel, sub_add_cancel,
add_add_sub_cancel, ← two_mul, Rchar', neg_one_mul, hf.map_even] at h2 | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2✝ : f (x * x - 1) = f x * f x - 1
h2 : f ((x + 1) * (x - 1) + 1) = f (x + 1) * f (x - 1) + f (x + 1 + (x - 1))
⊢ f (x * x) = (f x + 1 + 1) * f x | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2✝ : f (x * x - 1) = f x * f x - 1
h2 : f (x * x) = (f x + 1) * f x + f x
⊢ f (x * x) = (f x + 1 + 1) * f x | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2✝ : f (x * x - 1) = f x * f x - 1
h2 : f ((x + 1) * (x - 1) + 1) = f (x + 1) * f (x - 1) + f (x + 1 + (x - 1))
⊢ f (x * x) = (f x + 1 + 1) * f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.map_eq_neg_one_or_zero | [351, 1] | [370, 56] | exact h2.trans (add_one_mul _ (f x)).symm | R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2✝ : f (x * x - 1) = f x * f x - 1
h2 : f (x * x) = (f x + 1) * f x + f x
⊢ f (x * x) = (f x + 1 + 1) * f x | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.124008
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
Rchar' : 2 = -1
h1 : f (x * x + 1) = (f x + 1) * f x
h2✝ : f (x * x - 1) = f x * f x - 1
h2 : f (x * x) = (f x + 1) * f x + f x
⊢ f (x * x) = (f x + 1 + 1) * f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.value_bash | [372, 1] | [380, 22] | have h1 (x) : x = 0 ∨ f x = 0 :=
(map_eq_neg_one_or_zero hf h h0 x).imp_left (map_eq_neg_one_imp hf h) | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
⊢ x = 0 ∨ x = 1 ∨ x = -1 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
⊢ x = 0 ∨ x = 1 ∨ x = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
⊢ x = 0 ∨ x = 1 ∨ x = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.value_bash | [372, 1] | [380, 22] | refine (h1 x).imp_right λ h2 ↦ (h1 (x - 1)).imp eq_of_sub_eq_zero λ h3 ↦
(h1 (x + 1)).elim eq_neg_of_add_eq_zero_left λ h4 ↦ ?_ | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
⊢ x = 0 ∨ x = 1 ∨ x = -1 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
h2 : f x = 0
h3 : f (x - 1) = 0
h4 : f (x + 1) = 0
⊢ x = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
⊢ x = 0 ∨ x = 1 ∨ x = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.value_bash | [372, 1] | [380, 22] | have h5 := Eq1 hf h x | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
h2 : f x = 0
h3 : f (x - 1) = 0
h4 : f (x + 1) = 0
⊢ x = -1 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
h2 : f x = 0
h3 : f (x - 1) = 0
h4 : f (x + 1) = 0
h5 : f (x + 1) + f (x - 1) + f x = -1
⊢ x = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
h2 : f x = 0
h3 : f (x - 1) = 0
h4 : f (x + 1) = 0
⊢ x = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.value_bash | [372, 1] | [380, 22] | rw [h2, h3, h4, add_zero, add_zero, eq_comm, neg_eq_zero] at h5 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
h2 : f x = 0
h3 : f (x - 1) = 0
h4 : f (x + 1) = 0
h5 : f (x + 1) + f (x - 1) + f x = -1
⊢ x = -1 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
h2 : f x = 0
h3 : f (x - 1) = 0
h4 : f (x + 1) = 0
h5 : 1 = 0
⊢ x = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
h2 : f x = 0
h3 : f (x - 1) = 0
h4 : f (x + 1) = 0
h5 : f (x + 1) + f (x - 1) + f x = -1
⊢ x = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.value_bash | [372, 1] | [380, 22] | rw [← mul_one 3, h5, mul_zero] at h0 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
h2 : f x = 0
h3 : f (x - 1) = 0
h4 : f (x + 1) = 0
h5 : 1 = 0
⊢ x = -1 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 0 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
h2 : f x = 0
h3 : f (x - 1) = 0
h4 : f (x + 1) = 0
h5 : 1 = 0
⊢ x = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
h2 : f x = 0
h3 : f (x - 1) = 0
h4 : f (x + 1) = 0
h5 : 1 = 0
⊢ x = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.value_bash | [372, 1] | [380, 22] | exact absurd rfl h0 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 0 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
h2 : f x = 0
h3 : f (x - 1) = 0
h4 : f (x + 1) = 0
h5 : 1 = 0
⊢ x = -1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 0 ≠ 0
x : R
h1 : ∀ (x : R), x = 0 ∨ f x = 0
h2 : f x = 0
h3 : f (x - 1) = 0
h4 : f (x + 1) = 0
h5 : 1 = 0
⊢ x = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.solution | [382, 1] | [396, 78] | have h0 := hf.map_one | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h✝ : f 2 = 0
h0 : 3 ≠ 0
h : 1 = 0
⊢ 3 = 0 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h✝ : f 2 = 0
h0✝ : 3 ≠ 0
h : 1 = 0
h0 : f 1 = 0
⊢ 3 = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h✝ : f 2 = 0
h0 : 3 ≠ 0
h : 1 = 0
⊢ 3 = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.solution | [382, 1] | [396, 78] | rw [h, hf.map_zero, neg_eq_zero] at h0 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h✝ : f 2 = 0
h0✝ : 3 ≠ 0
h : 1 = 0
h0 : f 1 = 0
⊢ 3 = 0 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h✝ : f 2 = 0
h0✝ : 3 ≠ 0
h : 1 = 0
h0 : 1 = 0
⊢ 3 = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h✝ : f 2 = 0
h0✝ : 3 ≠ 0
h : 1 = 0
h0 : f 1 = 0
⊢ 3 = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.solution | [382, 1] | [396, 78] | rw [← mul_one 3, h0, mul_zero] | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h✝ : f 2 = 0
h0✝ : 3 ≠ 0
h : 1 = 0
h0 : 1 = 0
⊢ 3 = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h✝ : f 2 = 0
h0✝ : 3 ≠ 0
h : 1 = 0
h0 : 1 = 0
⊢ 3 = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.solution | [382, 1] | [396, 78] | change f 0 = ((-1 : ℤ) : S) | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
h1 : Function.Bijective 𝔽₃.cast
⊢ f 𝔽₃.𝔽₃0.cast = ↑(𝔽₃Map2 𝔽₃.𝔽₃0) | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
h1 : Function.Bijective 𝔽₃.cast
⊢ f 0 = ↑(-1) | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
h1 : Function.Bijective 𝔽₃.cast
⊢ f 𝔽₃.𝔽₃0.cast = ↑(𝔽₃Map2 𝔽₃.𝔽₃0)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RGoodSubcase22.solution | [382, 1] | [396, 78] | rw [hf.map_zero, Int.cast_neg, Int.cast_one] | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
h1 : Function.Bijective 𝔽₃.cast
⊢ f 0 = ↑(-1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
f : R → S
hf : RGoodCase2 f
h : f 2 = 0
h0 : 3 ≠ 0
h1 : Function.Bijective 𝔽₃.cast
⊢ f 0 = ↑(-1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.oneVarLift_exists | [414, 1] | [430, 73] | rcases hg.shift_good.oneVarLift_exists c with
⟨R', R'comm, φ, hφ, ⟨x, rfl⟩, S', S'comm, S'nzd, ρ, hρ, f', h0, hf'⟩ | R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
c : R
⊢ ∃ R' x φ,
∃ (_ : Function.Injective ⇑φ) (_ : c ∈ Set.range ⇑φ),
∃ S' x_3,
∃ (_ : NoZeroDivisors S'),
∃ ρ, ∃ (_ : Function.Injective ⇑ρ), ∃ g', ∃ (_ : ∀ (a : R'), g (φ a) = ρ (g' a)), ShiftGood23 g' | case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
⊢ ∃ R'_1 x_1 φ_1,
∃ (_ : Function.Injective ⇑φ_1) (_ : φ x ∈ Set.range ⇑φ_1),
∃ S' x,
∃ (_ : NoZeroDivisors S'),
∃ ρ, ∃ (_ : Function.Injective ⇑ρ), ∃ g', ∃ (_ : ∀ (a : R'_1), g (φ_1 a) = ρ (g' a)), ShiftGood23 g' | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
c : R
⊢ ∃ R' x φ,
∃ (_ : Function.Injective ⇑φ) (_ : c ∈ Set.range ⇑φ),
∃ S' x_3,
∃ (_ : NoZeroDivisors S'),
∃ ρ, ∃ (_ : Function.Injective ⇑ρ), ∃ g', ∃ (_ : ∀ (a : R'), g (φ a) = ρ (g' a)), ShiftGood23 g'
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.oneVarLift_exists | [414, 1] | [430, 73] | refine ⟨R', R'comm, φ, hφ, ⟨x, rfl⟩, S', S'comm, S'nzd, ρ, hρ, f' + 1, ?_, ?_⟩ | case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
⊢ ∃ R'_1 x_1 φ_1,
∃ (_ : Function.Injective ⇑φ_1) (_ : φ x ∈ Set.range ⇑φ_1),
∃ S' x,
∃ (_ : NoZeroDivisors S'),
∃ ρ, ∃ (_ : Function.Injective ⇑ρ), ∃ g', ∃ (_ : ∀ (a : R'_1), g (φ_1 a) = ρ (g' a)), ShiftGood23 g' | case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
⊢ ∀ (a : R'), g (φ a) = ρ ((f' + 1) a)
case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_2
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
⊢ ShiftGood23 (f' + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
⊢ ∃ R'_1 x_1 φ_1,
∃ (_ : Function.Injective ⇑φ_1) (_ : φ x ∈ Set.range ⇑φ_1),
∃ S' x,
∃ (_ : NoZeroDivisors S'),
∃ ρ, ∃ (_ : Function.Injective ⇑ρ), ∃ g', ∃ (_ : ∀ (a : R'_1), g (φ_1 a) = ρ (g' a)), ShiftGood23 g'
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.oneVarLift_exists | [414, 1] | [430, 73] | intro x | case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
⊢ ∀ (a : R'), g (φ a) = ρ ((f' + 1) a) | case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x✝ : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
x : R'
⊢ g (φ x) = ρ ((f' + 1) x) | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
⊢ ∀ (a : R'), g (φ a) = ρ ((f' + 1) a)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.oneVarLift_exists | [414, 1] | [430, 73] | rw [Pi.add_apply, Pi.one_apply, ρ.map_add, ← h0, ρ.map_one] | case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x✝ : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
x : R'
⊢ g (φ x) = ρ ((f' + 1) x) | case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x✝ : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
x : R'
⊢ g (φ x) = (g - 1) (φ x) + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x✝ : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
x : R'
⊢ g (φ x) = ρ ((f' + 1) x)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.oneVarLift_exists | [414, 1] | [430, 73] | exact (sub_add_cancel _ _).symm | case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x✝ : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
x : R'
⊢ g (φ x) = (g - 1) (φ x) + 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x✝ : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
x : R'
⊢ g (φ x) = (g - 1) (φ x) + 1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.oneVarLift_exists | [414, 1] | [430, 73] | refine ⟨by rwa [add_sub_cancel_right], hρ ?_⟩ | case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_2
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
⊢ ShiftGood23 (f' + 1) | case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_2
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
⊢ ρ ((f' + 1) 2) = ρ 4 | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_2
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
⊢ ShiftGood23 (f' + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.oneVarLift_exists | [414, 1] | [430, 73] | rw [Pi.add_apply, Pi.one_apply, ρ.map_add, ρ.map_one, ← h0, map_ofNat,
map_ofNat, Pi.sub_apply, Pi.one_apply, hg.map_two, sub_add_cancel] | case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_2
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
⊢ ρ ((f' + 1) 2) = ρ 4 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.refine_2
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
⊢ ρ ((f' + 1) 2) = ρ 4
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.oneVarLift_exists | [414, 1] | [430, 73] | rwa [add_sub_cancel_right] | R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
⊢ GoodCase2 (f' + 1 - 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u
S : Type v
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u
R'comm : CommRing R'
φ : R' →+* R
hφ : Function.Injective ⇑φ
x : R'
S' : Type v
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
hρ : Function.Injective ⇑ρ
f' : R' → S'
h0 : ∀ (a : R'), (g - 1) (φ a) = ρ (f' a)
hf' : GoodCase2 f'
⊢ GoodCase2 (f' + 1 - 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.shift_mk_iff | [440, 1] | [442, 42] | rw [mk_iff, add_sub_cancel_right, ← three_add_one_eq_four] | R : Type u_1
S : Type u_2
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
f : R → S
⊢ ShiftGood23 (f + 1) ↔ GoodCase2 f ∧ f 2 = 3 | R : Type u_1
S : Type u_2
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
f : R → S
⊢ GoodCase2 f ∧ (f + 1) 2 = 3 + 1 ↔ GoodCase2 f ∧ f 2 = 3 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
f : R → S
⊢ ShiftGood23 (f + 1) ↔ GoodCase2 f ∧ f 2 = 3
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.shift_mk_iff | [440, 1] | [442, 42] | exact and_congr_right' (add_left_inj _) | R : Type u_1
S : Type u_2
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
f : R → S
⊢ GoodCase2 f ∧ (f + 1) 2 = 3 + 1 ↔ GoodCase2 f ∧ f 2 = 3 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
f : R → S
⊢ GoodCase2 f ∧ (f + 1) 2 = 3 + 1 ↔ GoodCase2 f ∧ f 2 = 3
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Schar_ne_two | [455, 1] | [458, 66] | rw [Pi.sub_apply, Pi.one_apply, sub_eq_neg_self, hg.map_two, ← three_add_one_eq_four,
← two_add_one_eq_three, h, zero_add, one_add_one_eq_two, h] | R : Type ?u.155749
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
h : 2 = 0
⊢ (g - 1) 2 = -1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type ?u.155749
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
h : 2 = 0
⊢ (g - 1) 2 = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.is_good | [460, 1] | [463, 43] | have h := hg.shift_good.is_good x y | R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
x y : R
⊢ g (x * y + 1) = (g x - 1) * (g y - 1) + g (x + y) | R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
x y : R
h : (g - 1) (x * y + 1) = (g - 1) x * (g - 1) y + (g - 1) (x + y)
⊢ g (x * y + 1) = (g x - 1) * (g y - 1) + g (x + y) | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
x y : R
⊢ g (x * y + 1) = (g x - 1) * (g y - 1) + g (x + y)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.is_good | [460, 1] | [463, 43] | simp only [Pi.sub_apply, Pi.one_apply] at h | R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
x y : R
h : (g - 1) (x * y + 1) = (g - 1) x * (g - 1) y + (g - 1) (x + y)
⊢ g (x * y + 1) = (g x - 1) * (g y - 1) + g (x + y) | R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
x y : R
h : g (x * y + 1) - 1 = (g x - 1) * (g y - 1) + (g (x + y) - 1)
⊢ g (x * y + 1) = (g x - 1) * (g y - 1) + g (x + y) | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
x y : R
h : (g - 1) (x * y + 1) = (g - 1) x * (g - 1) y + (g - 1) (x + y)
⊢ g (x * y + 1) = (g x - 1) * (g y - 1) + g (x + y)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.is_good | [460, 1] | [463, 43] | rwa [← add_sub_assoc, sub_left_inj] at h | R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
x y : R
h : g (x * y + 1) - 1 = (g x - 1) * (g y - 1) + (g (x + y) - 1)
⊢ g (x * y + 1) = (g x - 1) * (g y - 1) + g (x + y) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
x y : R
h : g (x * y + 1) - 1 = (g x - 1) * (g y - 1) + (g (x + y) - 1)
⊢ g (x * y + 1) = (g x - 1) * (g y - 1) + g (x + y)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.alt_good | [465, 1] | [467, 92] | have h := hg.is_good x (-y) | R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
x y : R
⊢ g (x * y - 1) = (g x - 1) * (g y - 1) + g (x - y) | R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
x y : R
h : g (x * -y + 1) = (g x - 1) * (g (-y) - 1) + g (x + -y)
⊢ g (x * y - 1) = (g x - 1) * (g y - 1) + g (x - y) | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
x y : R
⊢ g (x * y - 1) = (g x - 1) * (g y - 1) + g (x - y)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.alt_good | [465, 1] | [467, 92] | rwa [hg.map_even, mul_neg, neg_add_eq_sub, ← neg_sub, hg.map_even, ← sub_eq_add_neg] at h | R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
x y : R
h : g (x * -y + 1) = (g x - 1) * (g (-y) - 1) + g (x + -y)
⊢ g (x * y - 1) = (g x - 1) * (g y - 1) + g (x - y) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : ShiftGood23 g
x y : R
h : g (x * -y + 1) = (g x - 1) * (g (-y) - 1) + g (x + -y)
⊢ g (x * y - 1) = (g x - 1) * (g y - 1) + g (x - y)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq1 | [476, 1] | [481, 83] | have h := hg.shift_good.Eq6 x | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
⊢ g (x + 1) + g (x - 1) = 2 * (g x + 1) | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : (g - 1) (x + 1) + (g - 1) (x - 1) = ((g - 1) x + 1) * ((g - 1) 2 - 1)
⊢ g (x + 1) + g (x - 1) = 2 * (g x + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
⊢ g (x + 1) + g (x - 1) = 2 * (g x + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq1 | [476, 1] | [481, 83] | simp only [Pi.sub_apply, Pi.one_apply] at h | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : (g - 1) (x + 1) + (g - 1) (x - 1) = ((g - 1) x + 1) * ((g - 1) 2 - 1)
⊢ g (x + 1) + g (x - 1) = 2 * (g x + 1) | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : g (x + 1) - 1 + (g (x - 1) - 1) = (g x - 1 + 1) * (g 2 - 1 - 1)
⊢ g (x + 1) + g (x - 1) = 2 * (g x + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : (g - 1) (x + 1) + (g - 1) (x - 1) = ((g - 1) x + 1) * ((g - 1) 2 - 1)
⊢ g (x + 1) + g (x - 1) = 2 * (g x + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq1 | [476, 1] | [481, 83] | rwa [sub_add_cancel, hg.map_two, sub_eq_of_eq_add three_add_one_eq_four.symm,
sub_eq_of_eq_add two_add_one_eq_three.symm, sub_add_sub_comm, mul_two,
sub_eq_iff_eq_add, one_add_one_eq_two, ← two_mul, ← mul_add_one (α := S)] at h | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : g (x + 1) - 1 + (g (x - 1) - 1) = (g x - 1 + 1) * (g 2 - 1 - 1)
⊢ g (x + 1) + g (x - 1) = 2 * (g x + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : g (x + 1) - 1 + (g (x - 1) - 1) = (g x - 1 + 1) * (g 2 - 1 - 1)
⊢ g (x + 1) + g (x - 1) = 2 * (g x + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq2 | [483, 1] | [485, 56] | rw [hg.is_good, hg.alt_good, add_sub_add_left_eq_sub] | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x y : R
⊢ g (x * y + 1) - g (x * y - 1) = g (x + y) - g (x - y) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x y : R
⊢ g (x * y + 1) - g (x * y - 1) = g (x + y) - g (x - y)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq3_1 | [487, 1] | [493, 71] | have h : (g - 1) 2 ≠ 1 := λ h0 ↦ by
rw [Pi.sub_apply, hg.map_two, sub_eq_of_eq_add three_add_one_eq_four.symm,
← two_add_one_eq_three, add_left_eq_self] at h0
exact hg.Schar_ne_two h0 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
⊢ g (x + 1) * g (x - 1) = (g x - 1) ^ 2 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : (g - 1) 2 ≠ 1
⊢ g (x + 1) * g (x - 1) = (g x - 1) ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
⊢ g (x + 1) * g (x - 1) = (g x - 1) ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq3_1 | [487, 1] | [493, 71] | replace h := hg.shift_good.Eq7 h x | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : (g - 1) 2 ≠ 1
⊢ g (x + 1) * g (x - 1) = (g x - 1) ^ 2 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : ((g - 1) (x + 1) + 1) * ((g - 1) (x - 1) + 1) = (g - 1) x ^ 2
⊢ g (x + 1) * g (x - 1) = (g x - 1) ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : (g - 1) 2 ≠ 1
⊢ g (x + 1) * g (x - 1) = (g x - 1) ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq3_1 | [487, 1] | [493, 71] | simp only [Pi.sub_apply, Pi.one_apply, sub_add_cancel] at h | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : ((g - 1) (x + 1) + 1) * ((g - 1) (x - 1) + 1) = (g - 1) x ^ 2
⊢ g (x + 1) * g (x - 1) = (g x - 1) ^ 2 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : g (x + 1) * g (x - 1) = (g x - 1) ^ 2
⊢ g (x + 1) * g (x - 1) = (g x - 1) ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : ((g - 1) (x + 1) + 1) * ((g - 1) (x - 1) + 1) = (g - 1) x ^ 2
⊢ g (x + 1) * g (x - 1) = (g x - 1) ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq3_1 | [487, 1] | [493, 71] | exact h | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : g (x + 1) * g (x - 1) = (g x - 1) ^ 2
⊢ g (x + 1) * g (x - 1) = (g x - 1) ^ 2 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : g (x + 1) * g (x - 1) = (g x - 1) ^ 2
⊢ g (x + 1) * g (x - 1) = (g x - 1) ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq3_1 | [487, 1] | [493, 71] | rw [Pi.sub_apply, hg.map_two, sub_eq_of_eq_add three_add_one_eq_four.symm,
← two_add_one_eq_three, add_left_eq_self] at h0 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h0 : (g - 1) 2 = 1
⊢ False | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h0 : 2 = 0
⊢ False | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h0 : (g - 1) 2 = 1
⊢ False
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq3_1 | [487, 1] | [493, 71] | exact hg.Schar_ne_two h0 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h0 : 2 = 0
⊢ False | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h0 : 2 = 0
⊢ False
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.CommCase.Eq3_2 | [495, 1] | [500, 7] | rw [sub_sq', ← sub_eq_of_eq_add (add_sq' (g _) _),
Eq1 hg, mul_assoc, Eq3_1 hg] | R : Type u_2
S✝ : Type ?u.184718
inst✝⁴ : Ring R
inst✝³ : Ring S✝
inst✝² : NoZeroDivisors S✝
g✝ : R → S✝
hg✝ : ShiftGood23 g✝
S : Type u_1
inst✝¹ : CommRing S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
⊢ (g (x + 1) - g (x - 1)) ^ 2 = 2 ^ 4 * g x | R : Type u_2
S✝ : Type ?u.184718
inst✝⁴ : Ring R
inst✝³ : Ring S✝
inst✝² : NoZeroDivisors S✝
g✝ : R → S✝
hg✝ : ShiftGood23 g✝
S : Type u_1
inst✝¹ : CommRing S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
⊢ (2 * (g x + 1)) ^ 2 - 2 * (g x - 1) ^ 2 - 2 * (g x - 1) ^ 2 = 2 ^ 4 * g x | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S✝ : Type ?u.184718
inst✝⁴ : Ring R
inst✝³ : Ring S✝
inst✝² : NoZeroDivisors S✝
g✝ : R → S✝
hg✝ : ShiftGood23 g✝
S : Type u_1
inst✝¹ : CommRing S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
⊢ (g (x + 1) - g (x - 1)) ^ 2 = 2 ^ 4 * g x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.CommCase.Eq3_2 | [495, 1] | [500, 7] | ring | R : Type u_2
S✝ : Type ?u.184718
inst✝⁴ : Ring R
inst✝³ : Ring S✝
inst✝² : NoZeroDivisors S✝
g✝ : R → S✝
hg✝ : ShiftGood23 g✝
S : Type u_1
inst✝¹ : CommRing S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
⊢ (2 * (g x + 1)) ^ 2 - 2 * (g x - 1) ^ 2 - 2 * (g x - 1) ^ 2 = 2 ^ 4 * g x | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S✝ : Type ?u.184718
inst✝⁴ : Ring R
inst✝³ : Ring S✝
inst✝² : NoZeroDivisors S✝
g✝ : R → S✝
hg✝ : ShiftGood23 g✝
S : Type u_1
inst✝¹ : CommRing S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
⊢ (2 * (g x + 1)) ^ 2 - 2 * (g x - 1) ^ 2 - 2 * (g x - 1) ^ 2 = 2 ^ 4 * g x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq3_2 | [502, 1] | [506, 61] | rcases oneVarLift_exists hg x with
⟨R', R'comm, φ, -, ⟨x, rfl⟩, S', S'comm, S'nzd, ρ, -, g', h0, hg'⟩ | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
⊢ (g (x + 1) - g (x - 1)) ^ 2 = 2 ^ 4 * g x | case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u_2
R'comm : CommRing R'
φ : R' →+* R
x : R'
S' : Type u_1
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
g' : R' → S'
h0 : ∀ (a : R'), g (φ a) = ρ (g' a)
hg' : ShiftGood23 g'
⊢ (g (φ x + 1) - g (φ x - 1)) ^ 2 = 2 ^ 4 * g (φ x) | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
⊢ (g (x + 1) - g (x - 1)) ^ 2 = 2 ^ 4 * g x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq3_2 | [502, 1] | [506, 61] | rw [← φ.map_one, ← φ.map_add, ← φ.map_sub, h0, h0, ← ρ.map_sub, ← ρ.map_pow,
CommCase.Eq3_2 hg', h0, ρ.map_mul, ρ.map_pow, map_ofNat] | case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u_2
R'comm : CommRing R'
φ : R' →+* R
x : R'
S' : Type u_1
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
g' : R' → S'
h0 : ∀ (a : R'), g (φ a) = ρ (g' a)
hg' : ShiftGood23 g'
⊢ (g (φ x + 1) - g (φ x - 1)) ^ 2 = 2 ^ 4 * g (φ x) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro.intro
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
R' : Type u_2
R'comm : CommRing R'
φ : R' →+* R
x : R'
S' : Type u_1
S'comm : CommRing S'
S'nzd : NoZeroDivisors S'
ρ : S' →+* S
g' : R' → S'
h0 : ∀ (a : R'), g (φ a) = ρ (g' a)
hg' : ShiftGood23 g'
⊢ (g (φ x + 1) - g (φ x - 1)) ^ 2 = 2 ^ 4 * g (φ x)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq4 | [512, 1] | [518, 84] | rw [Eq1 hg, add_add_add_comm, ← two_mul, ← sub_eq_iff_eq_add', ← mul_sub] at h | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x y : R
h : g (x * y + 1) + g (x * y - 1) = (g x - 1) * (g y - 1) + g (x + y) + ((g x - 1) * (g y - 1) + g (x - y))
⊢ 2 * (g (x * y) - g x * g y) = g (x + y) + g (x - y) - 2 * (g x + g y) | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x y : R
h : 2 * (g (x * y) + 1 - (g x - 1) * (g y - 1)) = g (x + y) + g (x - y)
⊢ 2 * (g (x * y) - g x * g y) = g (x + y) + g (x - y) - 2 * (g x + g y) | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x y : R
h : g (x * y + 1) + g (x * y - 1) = (g x - 1) * (g y - 1) + g (x + y) + ((g x - 1) * (g y - 1) + g (x - y))
⊢ 2 * (g (x * y) - g x * g y) = g (x + y) + g (x - y) - 2 * (g x + g y)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq4 | [512, 1] | [518, 84] | rw [← h, ← mul_sub, sub_sub, sub_one_mul, mul_sub_one, sub_sub, sub_add,
← add_sub_assoc, sub_sub_cancel_left, sub_neg_eq_add, add_sub_add_right_eq_sub] | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x y : R
h : 2 * (g (x * y) + 1 - (g x - 1) * (g y - 1)) = g (x + y) + g (x - y)
⊢ 2 * (g (x * y) - g x * g y) = g (x + y) + g (x - y) - 2 * (g x + g y) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x y : R
h : 2 * (g (x * y) + 1 - (g x - 1) * (g y - 1)) = g (x + y) + g (x - y)
⊢ 2 * (g (x * y) - g x * g y) = g (x + y) + g (x - y) - 2 * (g x + g y)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq5 | [520, 1] | [529, 59] | simp only [Pi.sub_apply, Pi.one_apply] at h | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h :
(g - 1) (x * 2 + 1) + (g - 1) (x * 2 - 1) =
(g - 1) (x + 1) * (g - 1) 2 + (g - 1) (x - 1) + ((g - 1) (x - 1) * (g - 1) 2 + (g - 1) (x + 1))
⊢ g (x * 2) = g x * 4 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h :
g (x * 2 + 1) - 1 + (g (x * 2 - 1) - 1) =
(g (x + 1) - 1) * (g 2 - 1) + (g (x - 1) - 1) + ((g (x - 1) - 1) * (g 2 - 1) + (g (x + 1) - 1))
⊢ g (x * 2) = g x * 4 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h :
(g - 1) (x * 2 + 1) + (g - 1) (x * 2 - 1) =
(g - 1) (x + 1) * (g - 1) 2 + (g - 1) (x - 1) + ((g - 1) (x - 1) * (g - 1) 2 + (g - 1) (x + 1))
⊢ g (x * 2) = g x * 4
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq5 | [520, 1] | [529, 59] | rw [← add_sub_add_comm, Eq1 hg, add_add_add_comm, ← add_mul,
add_comm (g (x - 1) - 1), mul_sub_one, sub_add_cancel, ← add_sub_add_comm,
Eq1 hg, one_add_one_eq_two, mul_add_one (α := S), add_sub_cancel_right,
mul_add_one (α := S), add_sub_cancel_right, hg.map_two, mul_assoc,
← sub_eq_zero, ← mul_sub, mul_eq_zero] at h | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h :
g (x * 2 + 1) - 1 + (g (x * 2 - 1) - 1) =
(g (x + 1) - 1) * (g 2 - 1) + (g (x - 1) - 1) + ((g (x - 1) - 1) * (g 2 - 1) + (g (x + 1) - 1))
⊢ g (x * 2) = g x * 4 | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : 2 = 0 ∨ g (x * 2) - g x * 4 = 0
⊢ g (x * 2) = g x * 4 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h :
g (x * 2 + 1) - 1 + (g (x * 2 - 1) - 1) =
(g (x + 1) - 1) * (g 2 - 1) + (g (x - 1) - 1) + ((g (x - 1) - 1) * (g 2 - 1) + (g (x + 1) - 1))
⊢ g (x * 2) = g x * 4
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.ShiftGood23.Eq5 | [520, 1] | [529, 59] | exact eq_of_sub_eq_zero (h.resolve_left hg.Schar_ne_two) | R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : 2 = 0 ∨ g (x * 2) - g x * 4 = 0
⊢ g (x * 2) = g x * 4 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : ShiftGood23 g
x : R
h : 2 = 0 ∨ g (x * 2) - g x * 4 = 0
⊢ g (x * 2) = g x * 4
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RShiftGood23.shift_mk_iff | [550, 1] | [552, 42] | rw [mk_iff, add_sub_cancel_right, ← three_add_one_eq_four] | R : Type u_1
S : Type u_2
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
f : R → S
⊢ RShiftGood23 (f + 1) ↔ RGoodCase2 f ∧ f 2 = 3 | R : Type u_1
S : Type u_2
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
f : R → S
⊢ RGoodCase2 f ∧ (f + 1) 2 = 3 + 1 ↔ RGoodCase2 f ∧ f 2 = 3 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
f : R → S
⊢ RShiftGood23 (f + 1) ↔ RGoodCase2 f ∧ f 2 = 3
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RShiftGood23.shift_mk_iff | [550, 1] | [552, 42] | exact and_congr_right' (add_left_inj _) | R : Type u_1
S : Type u_2
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
f : R → S
⊢ RGoodCase2 f ∧ (f + 1) 2 = 3 + 1 ↔ RGoodCase2 f ∧ f 2 = 3 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
f : R → S
⊢ RGoodCase2 f ∧ (f + 1) 2 = 3 + 1 ↔ RGoodCase2 f ∧ f 2 = 3
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RShiftGood23.period_imp_zero₀ | [559, 1] | [560, 50] | rw [h, add_zero] | R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : RShiftGood23 g
c : R
h : ∀ (x : R), g (x + c) = g x
x : R
⊢ g (x + c) = g (x + 0) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
inst✝¹ : NonAssocRing R
inst✝ : NonAssocRing S
g : R → S
hg : RShiftGood23 g
c : R
h : ∀ (x : R), g (x + c) = g x
x : R
⊢ g (x + c) = g (x + 0)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RShiftGood23.Eq6 | [570, 1] | [607, 75] | have h0 := hg.Eq3 x 1 | S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
⊢ x = 0 | S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
h0 : (g (x + 1) - g (x - 1)) ^ 2 = 2 ^ 4 * g (x * 1)
⊢ x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
⊢ x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RShiftGood23.Eq6 | [570, 1] | [607, 75] | rw [mul_one, h, mul_zero, sq_eq_zero_iff, sub_eq_zero] at h0 | S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
h0 : (g (x + 1) - g (x - 1)) ^ 2 = 2 ^ 4 * g (x * 1)
⊢ x = 0 | S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
h0 : g (x + 1) = g (x - 1)
⊢ x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
h0 : (g (x + 1) - g (x - 1)) ^ 2 = 2 ^ 4 * g (x * 1)
⊢ x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RShiftGood23.Eq6 | [570, 1] | [607, 75] | have h1 := hg.Eq1 x | S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
h0 : g (x + 1) = g (x - 1)
⊢ x = 0 | S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
h0 : g (x + 1) = g (x - 1)
h1 : g (x + 1) + g (x - 1) = 2 * (g x + 1)
⊢ x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
h0 : g (x + 1) = g (x - 1)
⊢ x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RShiftGood23.Eq6 | [570, 1] | [607, 75] | rw [h, zero_add, h0, ← two_mul, ← sub_eq_zero, ← mul_sub,
mul_eq_zero, or_iff_right hg.Schar_ne_two, sub_eq_zero] at h1 | S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
h0 : g (x + 1) = g (x - 1)
h1 : g (x + 1) + g (x - 1) = 2 * (g x + 1)
⊢ x = 0 | S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
h0 : g (x + 1) = g (x - 1)
h1 : g (x - 1) = 1
⊢ x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
h0 : g (x + 1) = g (x - 1)
h1 : g (x + 1) + g (x - 1) = 2 * (g x + 1)
⊢ x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Cases/Case2.lean | IMOSL.IMO2012A5.Case2.RShiftGood23.Eq6 | [570, 1] | [607, 75] | rw [h1] at h0 | S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
h0 : g (x + 1) = g (x - 1)
h1 : g (x - 1) = 1
⊢ x = 0 | S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
h0 : g (x + 1) = 1
h1 : g (x - 1) = 1
⊢ x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
S : Type u_1
R : Type u
inst✝² : Ring R
inst✝¹ : Ring S
inst✝ : NoZeroDivisors S
g : R → S
hg : RShiftGood23 g
x : R
h : g x = 0
h0 : g (x + 1) = g (x - 1)
h1 : g (x - 1) = 1
⊢ x = 0
TACTIC:
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.