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/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.c_eq_b_sub_one_mul_map_zero | [105, 1] | [108, 64] | have h3 := h 0 0 | b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
β’ c = (b - 1) * f 0 | b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h3 : f (0 + f 0) - f 0 = f (b * 0) - f 0 + c
β’ c = (b - 1) * f 0 | Please generate a tactic in lean4 to solve the state.
STATE:
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
β’ c = (b - 1) * f 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.c_eq_b_sub_one_mul_map_zero | [105, 1] | [108, 64] | rwa [zero_add, mul_zero, sub_self, zero_add,
map_is_linear h h0 h1, add_sub_cancel_right, eq_comm] at h3 | b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h3 : f (0 + f 0) - f 0 = f (b * 0) - f 0 + c
β’ c = (b - 1) * f 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h3 : f (0 + f 0) - f 0 = f (b * 0) - f 0 + c
β’ c = (b - 1) * f 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.final_solution_case2 | [125, 1] | [134, 35] | rcases h1 with β¨k, rflβ© | b c : β€
h : 1 < b.natAbs
h0 : c β 0
f : β€ β β€
h1 : b - 1 β£ c
h2 : good b c f
β’ f = fun x => (b - 1) * x + c / (b - 1) | case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
β’ f = fun x => (b - 1) * x + (b - 1) * k / (b - 1) | Please generate a tactic in lean4 to solve the state.
STATE:
b c : β€
h : 1 < b.natAbs
h0 : c β 0
f : β€ β β€
h1 : b - 1 β£ c
h2 : good b c f
β’ f = fun x => (b - 1) * x + c / (b - 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.final_solution_case2 | [125, 1] | [134, 35] | have h1 := c_eq_b_sub_one_mul_map_zero h2 h h0 | case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
β’ f = fun x => (b - 1) * x + (b - 1) * k / (b - 1) | case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : (b - 1) * k = (b - 1) * f 0
β’ f = fun x => (b - 1) * x + (b - 1) * k / (b - 1) | Please generate a tactic in lean4 to solve the state.
STATE:
case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
β’ f = fun x => (b - 1) * x + (b - 1) * k / (b - 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.final_solution_case2 | [125, 1] | [134, 35] | have h3 := (mul_ne_zero_iff.mp h0).1 | case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : (b - 1) * k = (b - 1) * f 0
β’ f = fun x => (b - 1) * x + (b - 1) * k / (b - 1) | case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : (b - 1) * k = (b - 1) * f 0
h3 : b - 1 β 0
β’ f = fun x => (b - 1) * x + (b - 1) * k / (b - 1) | Please generate a tactic in lean4 to solve the state.
STATE:
case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : (b - 1) * k = (b - 1) * f 0
β’ f = fun x => (b - 1) * x + (b - 1) * k / (b - 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.final_solution_case2 | [125, 1] | [134, 35] | rw [Int.mul_ediv_cancel_left _ h3] | case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : (b - 1) * k = (b - 1) * f 0
h3 : b - 1 β 0
β’ f = fun x => (b - 1) * x + (b - 1) * k / (b - 1) | case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : (b - 1) * k = (b - 1) * f 0
h3 : b - 1 β 0
β’ f = fun x => (b - 1) * x + k | Please generate a tactic in lean4 to solve the state.
STATE:
case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : (b - 1) * k = (b - 1) * f 0
h3 : b - 1 β 0
β’ f = fun x => (b - 1) * x + (b - 1) * k / (b - 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.final_solution_case2 | [125, 1] | [134, 35] | rw [mul_eq_mul_left_iff, or_iff_left h3] at h1 | case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : (b - 1) * k = (b - 1) * f 0
h3 : b - 1 β 0
β’ f = fun x => (b - 1) * x + k | case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : k = f 0
h3 : b - 1 β 0
β’ f = fun x => (b - 1) * x + k | Please generate a tactic in lean4 to solve the state.
STATE:
case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : (b - 1) * k = (b - 1) * f 0
h3 : b - 1 β 0
β’ f = fun x => (b - 1) * x + k
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.final_solution_case2 | [125, 1] | [134, 35] | rw [h1] | case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : k = f 0
h3 : b - 1 β 0
β’ f = fun x => (b - 1) * x + k | case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : k = f 0
h3 : b - 1 β 0
β’ f = fun x => (b - 1) * x + f 0 | Please generate a tactic in lean4 to solve the state.
STATE:
case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : k = f 0
h3 : b - 1 β 0
β’ f = fun x => (b - 1) * x + k
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.final_solution_case2 | [125, 1] | [134, 35] | exact funext (map_is_linear h2 h h0) | case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : k = f 0
h3 : b - 1 β 0
β’ f = fun x => (b - 1) * x + f 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case intro
b : β€
h : 1 < b.natAbs
f : β€ β β€
k : β€
h0 : (b - 1) * k β 0
h2 : good b ((b - 1) * k) f
h1 : k = f 0
h3 : b - 1 β 0
β’ f = fun x => (b - 1) * x + f 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond1 | [25, 1] | [32, 62] | rcases (x a).eq_or_eq_not (x b) with h6 | h6 | n a b c k l m : β
h : n β€ a
h0 : a < b
h1 : b < c
h2 : c β€ 2 * n
h3 : a + b = k ^ 2
h4 : a + c = l ^ 2
h5 : b + c = m ^ 2
x : β β Bool
β’ β a b, n β€ a β§ a < b β§ b β€ 2 * n β§ x a = x b β§ β k, a + b = k ^ 2 | case inl
n a b c k l m : β
h : n β€ a
h0 : a < b
h1 : b < c
h2 : c β€ 2 * n
h3 : a + b = k ^ 2
h4 : a + c = l ^ 2
h5 : b + c = m ^ 2
x : β β Bool
h6 : x a = x b
β’ β a b, n β€ a β§ a < b β§ b β€ 2 * n β§ x a = x b β§ β k, a + b = k ^ 2
case inr
n a b c k l m : β
h : n β€ a
h0 : a < b
h1 : b < c
h2 : c β€ 2 * n
h3 : a + b = k ^ 2
h4 : a + c = l ^ 2
h5 : b + c = m ^ 2
x : β β Bool
h6 : x a = !x b
β’ β a b, n β€ a β§ a < b β§ b β€ 2 * n β§ x a = x b β§ β k, a + b = k ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
n a b c k l m : β
h : n β€ a
h0 : a < b
h1 : b < c
h2 : c β€ 2 * n
h3 : a + b = k ^ 2
h4 : a + c = l ^ 2
h5 : b + c = m ^ 2
x : β β Bool
β’ β a b, n β€ a β§ a < b β§ b β€ 2 * n β§ x a = x b β§ β k, a + b = k ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond1 | [25, 1] | [32, 62] | rcases (x c).eq_or_eq_not (x b) with h7 | h7 | case inr
n a b c k l m : β
h : n β€ a
h0 : a < b
h1 : b < c
h2 : c β€ 2 * n
h3 : a + b = k ^ 2
h4 : a + c = l ^ 2
h5 : b + c = m ^ 2
x : β β Bool
h6 : x a = !x b
β’ β a b, n β€ a β§ a < b β§ b β€ 2 * n β§ x a = x b β§ β k, a + b = k ^ 2 | case inr.inl
n a b c k l m : β
h : n β€ a
h0 : a < b
h1 : b < c
h2 : c β€ 2 * n
h3 : a + b = k ^ 2
h4 : a + c = l ^ 2
h5 : b + c = m ^ 2
x : β β Bool
h6 : x a = !x b
h7 : x c = x b
β’ β a b, n β€ a β§ a < b β§ b β€ 2 * n β§ x a = x b β§ β k, a + b = k ^ 2
case inr.inr
n a b c k l m : β
h : n β€ a
h0 : a < b
h1 : b < c
h2 : c β€ 2 * n
h3 : a + b = k ^ 2
h4 : a + c = l ^ 2
h5 : b + c = m ^ 2
x : β β Bool
h6 : x a = !x b
h7 : x c = !x b
β’ β a b, n β€ a β§ a < b β§ b β€ 2 * n β§ x a = x b β§ β k, a + b = k ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
n a b c k l m : β
h : n β€ a
h0 : a < b
h1 : b < c
h2 : c β€ 2 * n
h3 : a + b = k ^ 2
h4 : a + c = l ^ 2
h5 : b + c = m ^ 2
x : β β Bool
h6 : x a = !x b
β’ β a b, n β€ a β§ a < b β§ b β€ 2 * n β§ x a = x b β§ β k, a + b = k ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond1 | [25, 1] | [32, 62] | exact β¨a, b, h, h0, h1.le.trans h2, h6, k, h3β© | case inl
n a b c k l m : β
h : n β€ a
h0 : a < b
h1 : b < c
h2 : c β€ 2 * n
h3 : a + b = k ^ 2
h4 : a + c = l ^ 2
h5 : b + c = m ^ 2
x : β β Bool
h6 : x a = x b
β’ β a b, n β€ a β§ a < b β§ b β€ 2 * n β§ x a = x b β§ β k, a + b = k ^ 2 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inl
n a b c k l m : β
h : n β€ a
h0 : a < b
h1 : b < c
h2 : c β€ 2 * n
h3 : a + b = k ^ 2
h4 : a + c = l ^ 2
h5 : b + c = m ^ 2
x : β β Bool
h6 : x a = x b
β’ β a b, n β€ a β§ a < b β§ b β€ 2 * n β§ x a = x b β§ β k, a + b = k ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond1 | [25, 1] | [32, 62] | exact β¨b, c, h.trans h0.le, h1, h2, h7.symm, m, h5β© | case inr.inl
n a b c k l m : β
h : n β€ a
h0 : a < b
h1 : b < c
h2 : c β€ 2 * n
h3 : a + b = k ^ 2
h4 : a + c = l ^ 2
h5 : b + c = m ^ 2
x : β β Bool
h6 : x a = !x b
h7 : x c = x b
β’ β a b, n β€ a β§ a < b β§ b β€ 2 * n β§ x a = x b β§ β k, a + b = k ^ 2 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inl
n a b c k l m : β
h : n β€ a
h0 : a < b
h1 : b < c
h2 : c β€ 2 * n
h3 : a + b = k ^ 2
h4 : a + c = l ^ 2
h5 : b + c = m ^ 2
x : β β Bool
h6 : x a = !x b
h7 : x c = x b
β’ β a b, n β€ a β§ a < b β§ b β€ 2 * n β§ x a = x b β§ β k, a + b = k ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond1 | [25, 1] | [32, 62] | exact β¨a, c, h, h0.trans h1, h2, h6.trans h7.symm, l, h4β© | case inr.inr
n a b c k l m : β
h : n β€ a
h0 : a < b
h1 : b < c
h2 : c β€ 2 * n
h3 : a + b = k ^ 2
h4 : a + c = l ^ 2
h5 : b + c = m ^ 2
x : β β Bool
h6 : x a = !x b
h7 : x c = !x b
β’ β a b, n β€ a β§ a < b β§ b β€ 2 * n β§ x a = x b β§ β k, a + b = k ^ 2 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr
n a b c k l m : β
h : n β€ a
h0 : a < b
h1 : b < c
h2 : c β€ 2 * n
h3 : a + b = k ^ 2
h4 : a + c = l ^ 2
h5 : b + c = m ^ 2
x : β β Bool
h6 : x a = !x b
h7 : x c = !x b
β’ β a b, n β€ a β§ a < b β§ b β€ 2 * n β§ x a = x b β§ β k, a + b = k ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2 | [34, 1] | [62, 8] | refine good_cond1 (b := 2 * k ^ 2 + 8 * k + 9) (k := 2 * k + 3)
(l := 2 * k + 4) (m := 2 * k + 5) h ?_ ?_
(Nat.mul_le_mul_left 2 h0) ?_ ?_ ?_ | n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ good n | case refine_1
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 4 * k < 2 * k ^ 2 + 8 * k + 9
case refine_2
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 8 * k + 9 < 2 * (k ^ 2 + 6 * k + 8)
case refine_3
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 4 * k + (2 * k ^ 2 + 8 * k + 9) = (2 * k + 3) ^ 2
case refine_4
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 4 * k + 2 * (k ^ 2 + 6 * k + 8) = (2 * k + 4) ^ 2
case refine_5
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 8 * k + 9 + 2 * (k ^ 2 + 6 * k + 8) = (2 * k + 5) ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ good n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2 | [34, 1] | [62, 8] | rw [Nat.add_assoc, Nat.add_lt_add_iff_left, Nat.lt_succ_iff] | case refine_1
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 4 * k < 2 * k ^ 2 + 8 * k + 9 | case refine_1
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 4 * k β€ 8 * k + 8 | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_1
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 4 * k < 2 * k ^ 2 + 8 * k + 9
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2 | [34, 1] | [62, 8] | refine (Nat.mul_le_mul_right k ?_).trans (Nat.le_add_right _ _) | case refine_1
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 4 * k β€ 8 * k + 8 | case refine_1
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 4 β€ 8 | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_1
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 4 * k β€ 8 * k + 8
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2 | [34, 1] | [62, 8] | exact Nat.le_mul_of_pos_left 4 (Nat.succ_pos 1) | case refine_1
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 4 β€ 8 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_1
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 4 β€ 8
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2 | [34, 1] | [62, 8] | rw [Nat.mul_add, Nat.mul_add, β Nat.mul_assoc,
Nat.lt_succ_iff, Nat.add_assoc, Nat.add_assoc,
Nat.add_le_add_iff_left, Nat.add_le_add_iff_right] | case refine_2
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 8 * k + 9 < 2 * (k ^ 2 + 6 * k + 8) | case refine_2
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 8 * k β€ 2 * 6 * k + 6 | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_2
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 8 * k + 9 < 2 * (k ^ 2 + 6 * k + 8)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2 | [34, 1] | [62, 8] | refine (Nat.mul_le_mul_right k ?_).trans (Nat.le_add_right _ _) | case refine_2
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 8 * k β€ 2 * 6 * k + 6 | case refine_2
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 8 β€ 2 * 6 | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_2
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 8 * k β€ 2 * 6 * k + 6
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2 | [34, 1] | [62, 8] | exact Nat.mul_le_mul_left 4 (Nat.le_succ 2) | case refine_2
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 8 β€ 2 * 6 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_2
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 8 β€ 2 * 6
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2 | [34, 1] | [62, 8] | rw [β Nat.add_assoc, Nat.add_add_add_comm, β Nat.add_mul, β Nat.add_mul,
add_sq, Nat.mul_pow, Nat.mul_right_comm, β Nat.mul_assoc] | case refine_3
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 4 * k + (2 * k ^ 2 + 8 * k + 9) = (2 * k + 3) ^ 2 | case refine_3
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ (2 + 2) * k ^ 2 + (4 + 8) * k + 9 = 2 ^ 2 * k ^ 2 + 2 * 3 * 2 * k + 3 ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_3
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 4 * k + (2 * k ^ 2 + 8 * k + 9) = (2 * k + 3) ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2 | [34, 1] | [62, 8] | rfl | case refine_3
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ (2 + 2) * k ^ 2 + (4 + 8) * k + 9 = 2 ^ 2 * k ^ 2 + 2 * 3 * 2 * k + 3 ^ 2 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_3
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ (2 + 2) * k ^ 2 + (4 + 8) * k + 9 = 2 ^ 2 * k ^ 2 + 2 * 3 * 2 * k + 3 ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2 | [34, 1] | [62, 8] | rw [Nat.mul_add, β Nat.add_assoc, Nat.mul_add, Nat.add_add_add_comm,
β Nat.add_mul, β Nat.mul_assoc, β Nat.add_mul, add_sq, Nat.mul_pow,
Nat.mul_right_comm, β Nat.mul_assoc] | case refine_4
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 4 * k + 2 * (k ^ 2 + 6 * k + 8) = (2 * k + 4) ^ 2 | case refine_4
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ (2 + 2) * k ^ 2 + (4 + 2 * 6) * k + 2 * 8 = 2 ^ 2 * k ^ 2 + 2 * 4 * 2 * k + 4 ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_4
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 4 * k + 2 * (k ^ 2 + 6 * k + 8) = (2 * k + 4) ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2 | [34, 1] | [62, 8] | rfl | case refine_4
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ (2 + 2) * k ^ 2 + (4 + 2 * 6) * k + 2 * 8 = 2 ^ 2 * k ^ 2 + 2 * 4 * 2 * k + 4 ^ 2 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_4
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ (2 + 2) * k ^ 2 + (4 + 2 * 6) * k + 2 * 8 = 2 ^ 2 * k ^ 2 + 2 * 4 * 2 * k + 4 ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2 | [34, 1] | [62, 8] | rw [Nat.mul_add, Nat.add_add_add_comm, Nat.mul_add, β Nat.mul_assoc,
Nat.add_add_add_comm (2 * k ^ 2), β Nat.add_mul, β Nat.add_mul,
add_sq, Nat.mul_pow, Nat.mul_right_comm, β Nat.mul_assoc] | case refine_5
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 8 * k + 9 + 2 * (k ^ 2 + 6 * k + 8) = (2 * k + 5) ^ 2 | case refine_5
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ (2 + 2) * k ^ 2 + (8 + 2 * 6) * k + (9 + 2 * 8) = 2 ^ 2 * k ^ 2 + 2 * 5 * 2 * k + 5 ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_5
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ 2 * k ^ 2 + 8 * k + 9 + 2 * (k ^ 2 + 6 * k + 8) = (2 * k + 5) ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2 | [34, 1] | [62, 8] | rfl | case refine_5
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ (2 + 2) * k ^ 2 + (8 + 2 * 6) * k + (9 + 2 * 8) = 2 ^ 2 * k ^ 2 + 2 * 5 * 2 * k + 5 ^ 2 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_5
n k : β
h : n β€ 2 * k ^ 2 + 4 * k
h0 : k ^ 2 + 6 * k + 8 β€ n
β’ (2 + 2) * k ^ 2 + (8 + 2 * 6) * k + (9 + 2 * 8) = 2 ^ 2 * k ^ 2 + 2 * 5 * 2 * k + 5 ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | rcases h0 with β¨k, h0, h1β© | n : β
h : 99 β€ n
h0 : β k, n β€ 2 * k ^ 2 + 4 * k β§ k ^ 2 + 6 * k + 8 β€ n
β’ β k, n + 1 β€ 2 * k ^ 2 + 4 * k β§ k ^ 2 + 6 * k + 8 β€ n + 1 | case intro.intro
n : β
h : 99 β€ n
k : β
h0 : n β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ n
β’ β k, n + 1 β€ 2 * k ^ 2 + 4 * k β§ k ^ 2 + 6 * k + 8 β€ n + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
h : 99 β€ n
h0 : β k, n β€ 2 * k ^ 2 + 4 * k β§ k ^ 2 + 6 * k + 8 β€ n
β’ β k, n + 1 β€ 2 * k ^ 2 + 4 * k β§ k ^ 2 + 6 * k + 8 β€ n + 1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | rw [le_iff_lt_or_eq] at h0 | case intro.intro
n : β
h : 99 β€ n
k : β
h0 : n β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ n
β’ β k, n + 1 β€ 2 * k ^ 2 + 4 * k β§ k ^ 2 + 6 * k + 8 β€ n + 1 | case intro.intro
n : β
h : 99 β€ n
k : β
h0 : n < 2 * k ^ 2 + 4 * k β¨ n = 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ n
β’ β k, n + 1 β€ 2 * k ^ 2 + 4 * k β§ k ^ 2 + 6 * k + 8 β€ n + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro
n : β
h : 99 β€ n
k : β
h0 : n β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ n
β’ β k, n + 1 β€ 2 * k ^ 2 + 4 * k β§ k ^ 2 + 6 * k + 8 β€ n + 1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | rcases h0 with h0 | rfl | case intro.intro
n : β
h : 99 β€ n
k : β
h0 : n < 2 * k ^ 2 + 4 * k β¨ n = 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ n
β’ β k, n + 1 β€ 2 * k ^ 2 + 4 * k β§ k ^ 2 + 6 * k + 8 β€ n + 1 | case intro.intro.inl
n : β
h : 99 β€ n
k : β
h1 : k ^ 2 + 6 * k + 8 β€ n
h0 : n < 2 * k ^ 2 + 4 * k
β’ β k, n + 1 β€ 2 * k ^ 2 + 4 * k β§ k ^ 2 + 6 * k + 8 β€ n + 1
case intro.intro.inr
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ β k_1, 2 * k ^ 2 + 4 * k + 1 β€ 2 * k_1 ^ 2 + 4 * k_1 β§ k_1 ^ 2 + 6 * k_1 + 8 β€ 2 * k ^ 2 + 4 * k + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro
n : β
h : 99 β€ n
k : β
h0 : n < 2 * k ^ 2 + 4 * k β¨ n = 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ n
β’ β k, n + 1 β€ 2 * k ^ 2 + 4 * k β§ k ^ 2 + 6 * k + 8 β€ n + 1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | refine β¨k + 1, ?_, ?_β© | case intro.intro.inr
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ β k_1, 2 * k ^ 2 + 4 * k + 1 β€ 2 * k_1 ^ 2 + 4 * k_1 β§ k_1 ^ 2 + 6 * k_1 + 8 β€ 2 * k ^ 2 + 4 * k + 1 | case intro.intro.inr.refine_1
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ 2 * k ^ 2 + 4 * k + 1 β€ 2 * (k + 1) ^ 2 + 4 * (k + 1)
case intro.intro.inr.refine_2
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ (k + 1) ^ 2 + 6 * (k + 1) + 8 β€ 2 * k ^ 2 + 4 * k + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.inr
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ β k_1, 2 * k ^ 2 + 4 * k + 1 β€ 2 * k_1 ^ 2 + 4 * k_1 β§ k_1 ^ 2 + 6 * k_1 + 8 β€ 2 * k ^ 2 + 4 * k + 1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | exact β¨k, h0, Nat.le_succ_of_le h1β© | case intro.intro.inl
n : β
h : 99 β€ n
k : β
h1 : k ^ 2 + 6 * k + 8 β€ n
h0 : n < 2 * k ^ 2 + 4 * k
β’ β k, n + 1 β€ 2 * k ^ 2 + 4 * k β§ k ^ 2 + 6 * k + 8 β€ n + 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.inl
n : β
h : 99 β€ n
k : β
h1 : k ^ 2 + 6 * k + 8 β€ n
h0 : n < 2 * k ^ 2 + 4 * k
β’ β k, n + 1 β€ 2 * k ^ 2 + 4 * k β§ k ^ 2 + 6 * k + 8 β€ n + 1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | rw [Nat.mul_succ, β Nat.add_assoc] | case intro.intro.inr.refine_1
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ 2 * k ^ 2 + 4 * k + 1 β€ 2 * (k + 1) ^ 2 + 4 * (k + 1) | case intro.intro.inr.refine_1
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ 2 * k ^ 2 + 4 * k + 1 β€ 2 * (k + 1) ^ 2 + 4 * k + 4 | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.inr.refine_1
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ 2 * k ^ 2 + 4 * k + 1 β€ 2 * (k + 1) ^ 2 + 4 * (k + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | exact Nat.add_le_add (Nat.add_le_add_right (Nat.mul_le_mul_left 2 <|
Nat.pow_le_pow_of_le_left k.le_succ 2) _) (Nat.le_add_left 1 3) | case intro.intro.inr.refine_1
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ 2 * k ^ 2 + 4 * k + 1 β€ 2 * (k + 1) ^ 2 + 4 * k + 4 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.inr.refine_1
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ 2 * k ^ 2 + 4 * k + 1 β€ 2 * (k + 1) ^ 2 + 4 * k + 4
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | replace h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2 := by
rw [add_sq, Nat.mul_add, Nat.mul_add, Nat.mul_one, β Nat.mul_assoc]; rfl | case intro.intro.inr.refine_2
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ (k + 1) ^ 2 + 6 * (k + 1) + 8 β€ 2 * k ^ 2 + 4 * k + 1 | case intro.intro.inr.refine_2
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
β’ (k + 1) ^ 2 + 6 * (k + 1) + 8 β€ 2 * k ^ 2 + 4 * k + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.inr.refine_2
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ (k + 1) ^ 2 + 6 * (k + 1) + 8 β€ 2 * k ^ 2 + 4 * k + 1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | rw [β Nat.add_le_add_iff_right (n := 2), h1, Nat.succ_le_iff, Nat.mul_comm,
β Nat.div_lt_iff_lt_mul (Nat.succ_pos 1), β Nat.sqrt_lt'] at h | case intro.intro.inr.refine_2
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
β’ (k + 1) ^ 2 + 6 * (k + 1) + 8 β€ 2 * k ^ 2 + 4 * k + 1 | case intro.intro.inr.refine_2
k : β
h : ((99 + 1) / Nat.succ 1).sqrt < k + 1
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
β’ (k + 1) ^ 2 + 6 * (k + 1) + 8 β€ 2 * k ^ 2 + 4 * k + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.inr.refine_2
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
β’ (k + 1) ^ 2 + 6 * (k + 1) + 8 β€ 2 * k ^ 2 + 4 * k + 1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | change 8 β€ k + 1 at h | case intro.intro.inr.refine_2
k : β
h : ((99 + 1) / Nat.succ 1).sqrt < k + 1
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
β’ (k + 1) ^ 2 + 6 * (k + 1) + 8 β€ 2 * k ^ 2 + 4 * k + 1 | case intro.intro.inr.refine_2
k : β
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
h : 8 β€ k + 1
β’ (k + 1) ^ 2 + 6 * (k + 1) + 8 β€ 2 * k ^ 2 + 4 * k + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.inr.refine_2
k : β
h : ((99 + 1) / Nat.succ 1).sqrt < k + 1
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
β’ (k + 1) ^ 2 + 6 * (k + 1) + 8 β€ 2 * k ^ 2 + 4 * k + 1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | rw [β Nat.add_le_add_iff_right (n := 1), h1, Nat.two_mul,
Nat.add_assoc, Nat.add_assoc, Nat.add_le_add_iff_left, sq] | case intro.intro.inr.refine_2
k : β
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
h : 8 β€ k + 1
β’ (k + 1) ^ 2 + 6 * (k + 1) + 8 β€ 2 * k ^ 2 + 4 * k + 1 | case intro.intro.inr.refine_2
k : β
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
h : 8 β€ k + 1
β’ 6 * (k + 1) + (8 + 1) β€ (k + 1) * (k + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.inr.refine_2
k : β
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
h : 8 β€ k + 1
β’ (k + 1) ^ 2 + 6 * (k + 1) + 8 β€ 2 * k ^ 2 + 4 * k + 1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | apply (Nat.mul_le_mul_right _ h).trans' | case intro.intro.inr.refine_2
k : β
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
h : 8 β€ k + 1
β’ 6 * (k + 1) + (8 + 1) β€ (k + 1) * (k + 1) | case intro.intro.inr.refine_2
k : β
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
h : 8 β€ k + 1
β’ 6 * (k + 1) + (8 + 1) β€ 8 * (k + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.inr.refine_2
k : β
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
h : 8 β€ k + 1
β’ 6 * (k + 1) + (8 + 1) β€ (k + 1) * (k + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | rw [Nat.add_mul 6 2, Nat.add_le_add_iff_left, Nat.two_mul] | case intro.intro.inr.refine_2
k : β
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
h : 8 β€ k + 1
β’ 6 * (k + 1) + (8 + 1) β€ 8 * (k + 1) | case intro.intro.inr.refine_2
k : β
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
h : 8 β€ k + 1
β’ 8 + 1 β€ k + 1 + (k + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.inr.refine_2
k : β
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
h : 8 β€ k + 1
β’ 6 * (k + 1) + (8 + 1) β€ 8 * (k + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | exact Nat.add_le_add h (Nat.le_add_left 1 k) | case intro.intro.inr.refine_2
k : β
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
h : 8 β€ k + 1
β’ 8 + 1 β€ k + 1 + (k + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.inr.refine_2
k : β
h1 : 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
h : 8 β€ k + 1
β’ 8 + 1 β€ k + 1 + (k + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | rw [add_sq, Nat.mul_add, Nat.mul_add, Nat.mul_one, β Nat.mul_assoc] | k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2 | k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ 2 * k ^ 2 + 4 * k + 2 = 2 * k ^ 2 + 2 * 2 * k + 2 * 1 ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ 2 * k ^ 2 + 4 * k + 2 = 2 * (k + 1) ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/N2/N2.lean | IMOSL.IMO2021N2.good_cond2_k_witness | [64, 1] | [89, 51] | rfl | k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ 2 * k ^ 2 + 4 * k + 2 = 2 * k ^ 2 + 2 * 2 * k + 2 * 1 ^ 2 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
k : β
h : 99 β€ 2 * k ^ 2 + 4 * k
h1 : k ^ 2 + 6 * k + 8 β€ 2 * k ^ 2 + 4 * k
β’ 2 * k ^ 2 + 4 * k + 2 = 2 * k ^ 2 + 2 * 2 * k + 2 * 1 ^ 2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.apply_eq | [40, 1] | [42, 33] | rw [β zero_add c, h, zero_add] | R : Type u_1
S : Sort u_2
instβ : AddCommMonoid R
f : R β S
c d : R
h : (PeriodEquiv f) c d
β’ f c = f d | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Sort u_2
instβ : AddCommMonoid R
f : R β S
c d : R
h : (PeriodEquiv f) c d
β’ f c = f d
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.zero_right | [44, 1] | [46, 39] | rw [add_zero] | R : Type u_1
S : Sort u_2
instβ : AddCommMonoid R
f : R β S
c x : R
β’ f (x + c) = f (x + 0) β f (x + c) = f x | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Sort u_2
instβ : AddCommMonoid R
f : R β S
c x : R
β’ f (x + c) = f (x + 0) β f (x + c) = f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.zero_right' | [48, 1] | [50, 59] | rw [add_comm] | R : Type u_1
S : Sort u_2
instβ : AddCommMonoid R
f : R β S
c x : R
β’ f (x + c) = f x β f (c + x) = f x | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Sort u_2
instβ : AddCommMonoid R
f : R β S
c x : R
β’ f (x + c) = f x β f (c + x) = f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.iff_sub | [52, 1] | [55, 59] | rw [β add_comm_sub, h, sub_add_cancel, add_zero] | R : Type u_1
S : Sort u_2
instβ : AddCommGroup R
f : R β S
c d : R
h : (PeriodEquiv f) c d
x : R
β’ f (x + (c - d)) = f (x + 0) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Sort u_2
instβ : AddCommGroup R
f : R β S
c d : R
h : (PeriodEquiv f) c d
x : R
β’ f (x + (c - d)) = f (x + 0)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.iff_sub | [52, 1] | [55, 59] | rw [β add_add_sub_cancel x c d, h, add_zero] | R : Type u_1
S : Sort u_2
instβ : AddCommGroup R
f : R β S
c d : R
h : (PeriodEquiv f) (c - d) 0
x : R
β’ f (x + c) = f (x + d) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Sort u_2
instβ : AddCommGroup R
f : R β S
c d : R
h : (PeriodEquiv f) (c - d) 0
x : R
β’ f (x + c) = f (x + d)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.equiv_zero_iff | [61, 1] | [67, 31] | rw [zero_right, QuasiPeriodic.iff_right hf] | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
β’ (PeriodEquiv f) c 0 β QuasiPeriodic f c β§ f c = -1 | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
β’ (β (x : R), f (x + c) = f x) β (β (x : R), f (x + c) = f x * -f c) β§ f c = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
β’ (PeriodEquiv f) c 0 β QuasiPeriodic f c β§ f c = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.equiv_zero_iff | [61, 1] | [67, 31] | refine β¨Ξ» h β¦ ?_, Ξ» h x β¦ by rw [h.1, h.2, neg_neg, mul_one]β© | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
β’ (β (x : R), f (x + c) = f x) β (β (x : R), f (x + c) = f x * -f c) β§ f c = -1 | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : β (x : R), f (x + c) = f x
β’ (β (x : R), f (x + c) = f x * -f c) β§ f c = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
β’ (β (x : R), f (x + c) = f x) β (β (x : R), f (x + c) = f x * -f c) β§ f c = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.equiv_zero_iff | [61, 1] | [67, 31] | have h0 : f c = -1 := by rw [β zero_add c, h, hf.map_zero] | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : β (x : R), f (x + c) = f x
β’ (β (x : R), f (x + c) = f x * -f c) β§ f c = -1 | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : β (x : R), f (x + c) = f x
h0 : f c = -1
β’ (β (x : R), f (x + c) = f x * -f c) β§ f c = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : β (x : R), f (x + c) = f x
β’ (β (x : R), f (x + c) = f x * -f c) β§ f c = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.equiv_zero_iff | [61, 1] | [67, 31] | refine β¨Ξ» x β¦ ?_, h0β© | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : β (x : R), f (x + c) = f x
h0 : f c = -1
β’ (β (x : R), f (x + c) = f x * -f c) β§ f c = -1 | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : β (x : R), f (x + c) = f x
h0 : f c = -1
x : R
β’ f (x + c) = f x * -f c | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : β (x : R), f (x + c) = f x
h0 : f c = -1
β’ (β (x : R), f (x + c) = f x * -f c) β§ f c = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.equiv_zero_iff | [61, 1] | [67, 31] | rw [h0, neg_neg, mul_one, h] | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : β (x : R), f (x + c) = f x
h0 : f c = -1
x : R
β’ f (x + c) = f x * -f c | 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βΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : β (x : R), f (x + c) = f x
h0 : f c = -1
x : R
β’ f (x + c) = f x * -f c
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.equiv_zero_iff | [61, 1] | [67, 31] | rw [h.1, h.2, neg_neg, mul_one] | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (β (x : R), f (x + c) = f x * -f c) β§ f c = -1
x : R
β’ f (x + c) = 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βΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (β (x : R), f (x + c) = f x * -f c) β§ f c = -1
x : R
β’ f (x + c) = f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.equiv_zero_iff | [61, 1] | [67, 31] | rw [β zero_add c, h, hf.map_zero] | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : β (x : R), f (x + c) = f x
β’ f c = -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βΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : β (x : R), f (x + c) = f x
β’ f c = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_left_equiv_zero | [69, 1] | [85, 58] | have h0 (d) : QuasiPeriodic f (d * c) :=
((equiv_zero_iff hf).mp h).1.mul_left hf d | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
β’ β (d : R), (PeriodEquiv f) (d * c) 0 | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
β’ β (d : R), (PeriodEquiv f) (d * c) 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
β’ β (d : R), (PeriodEquiv f) (d * c) 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_left_equiv_zero | [69, 1] | [85, 58] | have h1 := zero_right'.mp h | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
β’ β (d : R), (PeriodEquiv f) (d * c) 0 | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
β’ β (d : R), (PeriodEquiv f) (d * c) 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
β’ β (d : R), (PeriodEquiv f) (d * c) 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_left_equiv_zero | [69, 1] | [85, 58] | have h2 (d x) : f (d * c) = -1 β¨ f (d * x + 1) = 0 := by
rw [eq_neg_iff_add_eq_zero, β mul_eq_zero, add_one_mul (f _),
β neg_eq_iff_add_eq_zero, β neg_mul, β (h0 d).imp_left hf,
β add_assoc, β mul_add, hf.is_good, hf.is_good, h1, add_left_comm, h1] | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
β’ β (d : R), (PeriodEquiv f) (d * c) 0 | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
β’ β (d : R), (PeriodEquiv f) (d * c) 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
β’ β (d : R), (PeriodEquiv f) (d * c) 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_left_equiv_zero | [69, 1] | [85, 58] | refine Ξ» d β¦ (equiv_zero_iff hf).mpr β¨h0 d, (h2 d (-d)).elim id Ξ» h3 β¦ ?_β© | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
β’ β (d : R), (PeriodEquiv f) (d * c) 0 | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : f (d * -d + 1) = 0
β’ f (d * c) = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
β’ β (d : R), (PeriodEquiv f) (d * c) 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_left_equiv_zero | [69, 1] | [85, 58] | refine (h2 (d - 1) 1).elim (Ξ» h4 β¦ ?_) (Ξ» h4 β¦ ?_) | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : f (d * -d + 1) = 0
β’ f (d * c) = -1 | case refine_1
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : f (d * -d + 1) = 0
h4 : f ((d - 1) * c) = -1
β’ f (d * c) = -1
case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : f (d * -d + 1) = 0
h4 : f ((d - 1) * 1 + 1) = 0
β’ f (d * c) = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : f (d * -d + 1) = 0
β’ f (d * c) = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_left_equiv_zero | [69, 1] | [85, 58] | rw [eq_neg_iff_add_eq_zero, β mul_eq_zero, add_one_mul (f _),
β neg_eq_iff_add_eq_zero, β neg_mul, β (h0 d).imp_left hf,
β add_assoc, β mul_add, hf.is_good, hf.is_good, h1, add_left_comm, h1] | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
d x : R
β’ f (d * c) = -1 β¨ f (d * x + 1) = 0 | 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βΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
d x : R
β’ f (d * c) = -1 β¨ f (d * x + 1) = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_left_equiv_zero | [69, 1] | [85, 58] | rwa [β h1, β one_add_mul _ c, add_sub_cancel] at h4 | case refine_1
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : f (d * -d + 1) = 0
h4 : f ((d - 1) * c) = -1
β’ f (d * c) = -1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_1
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : f (d * -d + 1) = 0
h4 : f ((d - 1) * c) = -1
β’ f (d * c) = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_left_equiv_zero | [69, 1] | [85, 58] | rw [mul_one, sub_add_cancel] at h4 | case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : f (d * -d + 1) = 0
h4 : f ((d - 1) * 1 + 1) = 0
β’ f (d * c) = -1 | case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : f (d * -d + 1) = 0
h4 : f d = 0
β’ f (d * c) = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : f (d * -d + 1) = 0
h4 : f ((d - 1) * 1 + 1) = 0
β’ f (d * c) = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_left_equiv_zero | [69, 1] | [85, 58] | rw [hf.is_good, h4, zero_mul, zero_add, add_neg_self, hf.map_zero] at h3 | case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : f (d * -d + 1) = 0
h4 : f d = 0
β’ f (d * c) = -1 | case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : -1 = 0
h4 : f d = 0
β’ f (d * c) = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : f (d * -d + 1) = 0
h4 : f d = 0
β’ f (d * c) = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_left_equiv_zero | [69, 1] | [85, 58] | rw [h3, β neg_neg (f _), β neg_one_mul, h3, zero_mul] | case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : -1 = 0
h4 : f d = 0
β’ f (d * c) = -1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (d * c)
h1 : β (x : R), f (c + x) = f x
h2 : β (d x : R), f (d * c) = -1 β¨ f (d * x + 1) = 0
d : R
h3 : -1 = 0
h4 : f d = 0
β’ f (d * c) = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_right_equiv_zero | [87, 1] | [103, 58] | have h0 (d) : QuasiPeriodic f (c * d) :=
((equiv_zero_iff hf).mp h).1.mul_right hf d | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
β’ β (d : R), (PeriodEquiv f) (c * d) 0 | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
β’ β (d : R), (PeriodEquiv f) (c * d) 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
β’ β (d : R), (PeriodEquiv f) (c * d) 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_right_equiv_zero | [87, 1] | [103, 58] | have h1 := zero_right.mp h | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
β’ β (d : R), (PeriodEquiv f) (c * d) 0 | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
β’ β (d : R), (PeriodEquiv f) (c * d) 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
β’ β (d : R), (PeriodEquiv f) (c * d) 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_right_equiv_zero | [87, 1] | [103, 58] | have h2 (d x) : f (c * d) = -1 β¨ f (x * d + 1) = 0 := by
rw [eq_neg_iff_add_eq_zero, or_comm, β mul_eq_zero, mul_add_one (f _),
β neg_eq_iff_add_eq_zero, β mul_neg, β (h0 d).imp_right hf,
add_right_comm, β add_mul, hf.is_good, hf.is_good, h1, add_right_comm, h1] | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
β’ β (d : R), (PeriodEquiv f) (c * d) 0 | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
β’ β (d : R), (PeriodEquiv f) (c * d) 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
β’ β (d : R), (PeriodEquiv f) (c * d) 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_right_equiv_zero | [87, 1] | [103, 58] | refine Ξ» d β¦ (equiv_zero_iff hf).mpr β¨h0 d, (h2 d (-d)).elim id Ξ» h3 β¦ ?_β© | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
β’ β (d : R), (PeriodEquiv f) (c * d) 0 | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : f (-d * d + 1) = 0
β’ f (c * d) = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
β’ β (d : R), (PeriodEquiv f) (c * d) 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_right_equiv_zero | [87, 1] | [103, 58] | refine (h2 (d - 1) 1).elim (Ξ» h4 β¦ ?_) (Ξ» h4 β¦ ?_) | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : f (-d * d + 1) = 0
β’ f (c * d) = -1 | case refine_1
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : f (-d * d + 1) = 0
h4 : f (c * (d - 1)) = -1
β’ f (c * d) = -1
case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : f (-d * d + 1) = 0
h4 : f (1 * (d - 1) + 1) = 0
β’ f (c * d) = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : f (-d * d + 1) = 0
β’ f (c * d) = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_right_equiv_zero | [87, 1] | [103, 58] | rw [eq_neg_iff_add_eq_zero, or_comm, β mul_eq_zero, mul_add_one (f _),
β neg_eq_iff_add_eq_zero, β mul_neg, β (h0 d).imp_right hf,
add_right_comm, β add_mul, hf.is_good, hf.is_good, h1, add_right_comm, h1] | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
d x : R
β’ f (c * d) = -1 β¨ f (x * d + 1) = 0 | 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βΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
d x : R
β’ f (c * d) = -1 β¨ f (x * d + 1) = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_right_equiv_zero | [87, 1] | [103, 58] | rwa [β h1, β mul_add_one c, sub_add_cancel] at h4 | case refine_1
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : f (-d * d + 1) = 0
h4 : f (c * (d - 1)) = -1
β’ f (c * d) = -1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_1
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : f (-d * d + 1) = 0
h4 : f (c * (d - 1)) = -1
β’ f (c * d) = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_right_equiv_zero | [87, 1] | [103, 58] | rw [one_mul, sub_add_cancel] at h4 | case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : f (-d * d + 1) = 0
h4 : f (1 * (d - 1) + 1) = 0
β’ f (c * d) = -1 | case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : f (-d * d + 1) = 0
h4 : f d = 0
β’ f (c * d) = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : f (-d * d + 1) = 0
h4 : f (1 * (d - 1) + 1) = 0
β’ f (c * d) = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_right_equiv_zero | [87, 1] | [103, 58] | rw [hf.is_good, h4, mul_zero, zero_add, neg_add_self, hf.map_zero] at h3 | case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : f (-d * d + 1) = 0
h4 : f d = 0
β’ f (c * d) = -1 | case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : -1 = 0
h4 : f d = 0
β’ f (c * d) = -1 | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : f (-d * d + 1) = 0
h4 : f d = 0
β’ f (c * d) = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_right_equiv_zero | [87, 1] | [103, 58] | rw [h3, β neg_neg (f _), β neg_one_mul, h3, zero_mul] | case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : -1 = 0
h4 : f d = 0
β’ f (c * d) = -1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case refine_2
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c : R
h : (PeriodEquiv f) c 0
h0 : β (d : R), QuasiPeriodic f (c * d)
h1 : β (x : R), f (x + c) = f x
h2 : β (d x : R), f (c * d) = -1 β¨ f (x * d + 1) = 0
d : R
h3 : -1 = 0
h4 : f d = 0
β’ f (c * d) = -1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_left_equiv | [105, 1] | [108, 48] | rw [iff_sub, β mul_sub] | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c d : R
h : (PeriodEquiv f) c d
a : R
β’ (PeriodEquiv f) (a * c) (a * d) | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c d : R
h : (PeriodEquiv f) c d
a : R
β’ (PeriodEquiv f) (a * (c - d)) 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c d : R
h : (PeriodEquiv f) c d
a : R
β’ (PeriodEquiv f) (a * c) (a * d)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_left_equiv | [105, 1] | [108, 48] | exact mul_left_equiv_zero hf (iff_sub.mp h) a | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c d : R
h : (PeriodEquiv f) c d
a : R
β’ (PeriodEquiv f) (a * (c - d)) 0 | 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βΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c d : R
h : (PeriodEquiv f) c d
a : R
β’ (PeriodEquiv f) (a * (c - d)) 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_right_equiv | [110, 1] | [113, 49] | rw [iff_sub, β sub_mul] | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c d : R
h : (PeriodEquiv f) c d
a : R
β’ (PeriodEquiv f) (c * a) (d * a) | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c d : R
h : (PeriodEquiv f) c d
a : R
β’ (PeriodEquiv f) ((c - d) * a) 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c d : R
h : (PeriodEquiv f) c d
a : R
β’ (PeriodEquiv f) (c * a) (d * a)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5General/A5Periodic.lean | IMOSL.IMO2012A5.PeriodEquiv.mul_right_equiv | [110, 1] | [113, 49] | exact mul_right_equiv_zero hf (iff_sub.mp h) a | R : Type u_1
S : Type u_2
instβΒ² : Ring R
instβΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c d : R
h : (PeriodEquiv f) c d
a : R
β’ (PeriodEquiv f) ((c - d) * a) 0 | 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βΒΉ : NonAssocRing S
instβ : NoZeroDivisors S
f : R β S
hf : NontrivialGood f
c d : R
h : (PeriodEquiv f) c d
a : R
β’ (PeriodEquiv f) ((c - d) * a) 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/SquareLike.lean | IMOSL.Extra.SquareLike.map_zero | [27, 1] | [30, 45] | specialize h 0 0 | G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : β (x y : G), f (x + y) + f (x - y) = 2 β’ (f x + f y)
β’ f 0 = 0 | G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : f (0 + 0) + f (0 - 0) = 2 β’ (f 0 + f 0)
β’ f 0 = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : β (x y : G), f (x + y) + f (x - y) = 2 β’ (f x + f y)
β’ f 0 = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/SquareLike.lean | IMOSL.Extra.SquareLike.map_zero | [27, 1] | [30, 45] | rw [add_zero, sub_zero, two_nsmul, self_eq_add_right, β two_nsmul] at h | G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : f (0 + 0) + f (0 - 0) = 2 β’ (f 0 + f 0)
β’ f 0 = 0 | G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : 2 β’ f 0 = 0
β’ f 0 = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : f (0 + 0) + f (0 - 0) = 2 β’ (f 0 + f 0)
β’ f 0 = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/SquareLike.lean | IMOSL.Extra.SquareLike.map_zero | [27, 1] | [30, 45] | exact hH _ _ (h.trans (nsmul_zero 2).symm) | G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : 2 β’ f 0 = 0
β’ f 0 = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : 2 β’ f 0 = 0
β’ f 0 = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/SquareLike.lean | IMOSL.Extra.SquareLike.map_even | [32, 1] | [34, 84] | have h0 := h 0 x | G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : β (x y : G), f (x + y) + f (x - y) = 2 β’ (f x + f y)
x : G
β’ f (-x) = f x | G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : β (x y : G), f (x + y) + f (x - y) = 2 β’ (f x + f y)
x : G
h0 : f (0 + x) + f (0 - x) = 2 β’ (f 0 + f x)
β’ f (-x) = f x | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : β (x y : G), f (x + y) + f (x - y) = 2 β’ (f x + f y)
x : G
β’ f (-x) = f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/SquareLike.lean | IMOSL.Extra.SquareLike.map_even | [32, 1] | [34, 84] | rwa [zero_add, zero_sub, map_zero hH h, zero_add, two_nsmul, add_right_inj] at h0 | G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : β (x y : G), f (x + y) + f (x - y) = 2 β’ (f x + f y)
x : G
h0 : f (0 + x) + f (0 - x) = 2 β’ (f 0 + f x)
β’ f (-x) = f x | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : β (x y : G), f (x + y) + f (x - y) = 2 β’ (f x + f y)
x : G
h0 : f (0 + x) + f (0 - x) = 2 β’ (f 0 + f x)
β’ f (-x) = f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/SquareLike.lean | IMOSL.Extra.SquareLike.map_triple | [36, 1] | [40, 77] | rw [nsmul_add, β h, β h, add_add_add_comm, add_assoc x, add_sub_cancel_left,
add_comm (f (y + z)), add_add_add_comm, β two_nsmul, nsmul_add, add_left_inj, β h,
add_sub_add_left_eq_sub, add_left_inj, add_right_comm, add_add_add_comm] | G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : β (x y : G), f (x + y) + f (x - y) = 2 β’ (f x + f y)
x y z : G
β’ 2 β’ (f (x + y + z) + f x + (f y + f z)) = 2 β’ (f (x + y) + f (x + z) + f (y + z)) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCancelCommMonoid H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : β (x y : G), f (x + y) + f (x - y) = 2 β’ (f x + f y)
x y z : G
β’ 2 β’ (f (x + y + z) + f x + (f y + f z)) = 2 β’ (f (x + y) + f (x + z) + f (y + z))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/SquareLike.lean | IMOSL.Extra.SquareLike.BilinMap_eq_two_nsmul | [75, 1] | [77, 58] | rw [two_nsmul, β neg_inj, β map_neg, BilinMap_def,
add_neg_self, map_zero hH h, map_even hH h, zero_sub] | G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCommGroup H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : β (x y : G), f (x + y) + f (x - y) = 2 β’ (f x + f y)
x : G
β’ ((BilinMap hH h) x) x = 2 β’ f x | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCommGroup H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : β (x y : G), f (x + y) + f (x - y) = 2 β’ (f x + f y)
x : G
β’ ((BilinMap hH h) x) x = 2 β’ f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/SquareLike.lean | IMOSL.Extra.SquareLike.two_nsmul_BilinMap_eq | [79, 1] | [81, 72] | rw [BilinMap_def, nsmul_sub, β h, two_nsmul, add_sub_add_left_eq_sub] | G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCommGroup H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : β (x y : G), f (x + y) + f (x - y) = 2 β’ (f x + f y)
x y : G
β’ 2 β’ ((BilinMap hH h) x) y = f (x + y) - f (x - y) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_2
H : Type u_1
instβΒΉ : AddCommGroup G
instβ : AddCommGroup H
hH : β (x y : H), 2 β’ x = 2 β’ y β x = y
f : G β H
h : β (x y : G), f (x + y) + f (x - y) = 2 β’ (f x + f y)
x y : G
β’ 2 β’ ((BilinMap hH h) x) y = f (x + y) - f (x - y)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | have h0 : β t x : R, f (f t) - f (f x) β€ (f t - x) * f x := Ξ» t x β¦ by
rw [sub_le_iff_le_add]
apply (h _ _).trans_eq'
rw [add_sub_cancel] | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
β’ β (x : R), x β€ 0 β f x = 0 | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (t x : R), f (f t) - f (f x) β€ (f t - x) * f x
β’ β (x : R), x β€ 0 β f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
β’ β (x : R), x β€ 0 β f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | replace h0 : β t x : R, 0 β€ (f t - x) * f x + (f x - t) * f t := Ξ» t x β¦ by
rw [β sub_self (f (f t)), β sub_add_sub_cancel _ (f (f x))]
exact add_le_add (h0 t x) (h0 x t) | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (t x : R), f (f t) - f (f x) β€ (f t - x) * f x
β’ β (x : R), x β€ 0 β f x = 0 | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (t x : R), 0 β€ (f t - x) * f x + (f x - t) * f t
β’ β (x : R), x β€ 0 β f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (t x : R), f (f t) - f (f x) β€ (f t - x) * f x
β’ β (x : R), x β€ 0 β f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | replace h0 : β x : R, x * f x β€ 0 := Ξ» x β¦ by
have h1 := h0 x (f x + f x)
rwa [sub_add_cancel_left, sub_mul, neg_mul, mul_comm,
β add_sub_assoc, neg_add_self, zero_sub, neg_nonneg] at h1 | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (t x : R), 0 β€ (f t - x) * f x + (f x - t) * f t
β’ β (x : R), x β€ 0 β f x = 0 | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (x : R), x * f x β€ 0
β’ β (x : R), x β€ 0 β f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (t x : R), 0 β€ (f t - x) * f x + (f x - t) * f t
β’ β (x : R), x β€ 0 β f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | have h1 : β x : R, f x β€ f (f x) := Ξ» x β¦ by
have h1 := h x 0
rwa [add_zero, zero_mul, zero_add] at h1 | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (x : R), x * f x β€ 0
β’ β (x : R), x β€ 0 β f x = 0 | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (x : R), x * f x β€ 0
h1 : β (x : R), f x β€ f (f x)
β’ β (x : R), x β€ 0 β f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (x : R), x * f x β€ 0
β’ β (x : R), x β€ 0 β f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | replace h1 : β x : R, f x β€ 0 := Ξ» x β¦
le_of_not_lt Ξ» h2 β¦ (h0 (f x)).not_lt <| mul_pos h2 (h2.trans_le (h1 x)) | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (x : R), x * f x β€ 0
h1 : β (x : R), f x β€ f (f x)
β’ β (x : R), x β€ 0 β f x = 0 | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (x : R), x * f x β€ 0
h1 : β (x : R), f x β€ 0
β’ β (x : R), x β€ 0 β f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (x : R), x * f x β€ 0
h1 : β (x : R), f x β€ f (f x)
β’ β (x : R), x β€ 0 β f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | replace h0 : β x : R, x < 0 β f x = 0 := Ξ» x h2 β¦
(h1 x).antisymm (nonneg_of_mul_nonpos_right (h0 x) h2) | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (x : R), x * f x β€ 0
h1 : β (x : R), f x β€ 0
β’ β (x : R), x β€ 0 β f x = 0 | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h1 : β (x : R), f x β€ 0
h0 : β (x : R), x < 0 β f x = 0
β’ β (x : R), x β€ 0 β f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (x : R), x * f x β€ 0
h1 : β (x : R), f x β€ 0
β’ β (x : R), x β€ 0 β f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | intros x h2 | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h1 : β (x : R), f x β€ 0
h0 : β (x : R), x < 0 β f x = 0
β’ β (x : R), x β€ 0 β f x = 0 | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h1 : β (x : R), f x β€ 0
h0 : β (x : R), x < 0 β f x = 0
x : R
h2 : x β€ 0
β’ f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h1 : β (x : R), f x β€ 0
h0 : β (x : R), x < 0 β f x = 0
β’ β (x : R), x β€ 0 β f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | rcases h2.lt_or_eq with h2 | rfl | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h1 : β (x : R), f x β€ 0
h0 : β (x : R), x < 0 β f x = 0
x : R
h2 : x β€ 0
β’ f x = 0 | case inl
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h1 : β (x : R), f x β€ 0
h0 : β (x : R), x < 0 β f x = 0
x : R
h2β : x β€ 0
h2 : x < 0
β’ f x = 0
case inr
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h1 : β (x : R), f x β€ 0
h0 : β (x : R), x < 0 β f x = 0
h2 : 0 β€ 0
β’ f 0 = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h1 : β (x : R), f x β€ 0
h0 : β (x : R), x < 0 β f x = 0
x : R
h2 : x β€ 0
β’ f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | rw [sub_le_iff_le_add] | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
t x : R
β’ f (f t) - f (f x) β€ (f t - x) * f x | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
t x : R
β’ f (f t) β€ (f t - x) * f x + f (f x) | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
t x : R
β’ f (f t) - f (f x) β€ (f t - x) * f x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | apply (h _ _).trans_eq' | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
t x : R
β’ f (f t) β€ (f t - x) * f x + f (f x) | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
t x : R
β’ f (f t) = f (x + (f t - x)) | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
t x : R
β’ f (f t) β€ (f t - x) * f x + f (f x)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | rw [add_sub_cancel] | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
t x : R
β’ f (f t) = f (x + (f t - x)) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
t x : R
β’ f (f t) = f (x + (f t - x))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | rw [β sub_self (f (f t)), β sub_add_sub_cancel _ (f (f x))] | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (t x : R), f (f t) - f (f x) β€ (f t - x) * f x
t x : R
β’ 0 β€ (f t - x) * f x + (f x - t) * f t | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (t x : R), f (f t) - f (f x) β€ (f t - x) * f x
t x : R
β’ f (f t) - f (f x) + (f (f x) - f (f t)) β€ (f t - x) * f x + (f x - t) * f t | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (t x : R), f (f t) - f (f x) β€ (f t - x) * f x
t x : R
β’ 0 β€ (f t - x) * f x + (f x - t) * f t
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | exact add_le_add (h0 t x) (h0 x t) | R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (t x : R), f (f t) - f (f x) β€ (f t - x) * f x
t x : R
β’ f (f t) - f (f x) + (f (f x) - f (f t)) β€ (f t - x) * f x + (f x - t) * f t | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h : β (x y : R), f (x + y) β€ y * f x + f (f x)
h0 : β (t x : R), f (f t) - f (f x) β€ (f t - x) * f x
t x : R
β’ f (f t) - f (f x) + (f (f x) - f (f t)) β€ (f t - x) * f x + (f x - t) * f t
TACTIC:
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.