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/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.c_bdd | [87, 1] | [92, 69] | suffices b K = b (K + 1) from
β¨this.symm, (h0 K h2).trans_eq (this βΈ max_eq_right h3)β© | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : D β€ K
h3 : c K β€ 2 β’ b K
β’ b (K + 1) = b K β§ c (K + 1) β€ 2 β’ b (K + 1) | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : D β€ K
h3 : c K β€ 2 β’ b K
β’ b K = b (K + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : D β€ K
h3 : c K β€ 2 β’ b K
β’ b (K + 1) = b K β§ c (K + 1) β€ 2 β’ b (K + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.c_bdd | [87, 1] | [92, 69] | rw [two_nsmul, β sub_le_iff_le_add] at h3 | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : D β€ K
h3 : c K β€ 2 β’ b K
β’ b K = b (K + 1) | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : D β€ K
h3 : c K - b K β€ b K
β’ b K = b (K + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : D β€ K
h3 : c K β€ 2 β’ b K
β’ b K = b (K + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.c_bdd | [87, 1] | [92, 69] | exact (h1 K.le_succ).antisymm ((h K h2).trans_eq (max_eq_left h3)) | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : D β€ K
h3 : c K - b K β€ b K
β’ b K = b (K + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : D β€ K
h3 : c K - b K β€ b K
β’ b K = b (K + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.c_succ_eq_D_of_b_bdd | [94, 1] | [100, 67] | have X {M : β} : D β€ M β 2 β’ b M < c M β c (M + 1) = c M := Ξ» h3 h4 β¦
((h0 M h3).trans_eq (max_eq_left_of_lt h4)).antisymm (h2 M.le_succ) | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : Monotone c
h3 : D β€ K
β’ 2 β’ b K < c K β c (K + 1) = c D | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : Monotone c
h3 : D β€ K
X : β {M : β}, D β€ M β 2 β’ b M < c M β c (M + 1) = c M
β’ 2 β’ b K < c K β c (K + 1) = c D | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : Monotone c
h3 : D β€ K
β’ 2 β’ b K < c K β c (K + 1) = c D
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.c_succ_eq_D_of_b_bdd | [94, 1] | [100, 67] | refine Nat.le_induction (X D.le_refl) (Ξ» n h4 h5 h6 β¦ ?_) K h3 | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : Monotone c
h3 : D β€ K
X : β {M : β}, D β€ M β 2 β’ b M < c M β c (M + 1) = c M
β’ 2 β’ b K < c K β c (K + 1) = c D | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : Monotone c
h3 : D β€ K
X : β {M : β}, D β€ M β 2 β’ b M < c M β c (M + 1) = c M
n : β
h4 : D β€ n
h5 : 2 β’ b n < c n β c (n + 1) = c D
h6 : 2 β’ b (n + 1) < c (n + 1)
β’ c (n + 1 + 1) = c D | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : Monotone c
h3 : D β€ K
X : β {M : β}, D β€ M β 2 β’ b M < c M β c (M + 1) = c M
β’ 2 β’ b K < c K β c (K + 1) = c D
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.c_succ_eq_D_of_b_bdd | [94, 1] | [100, 67] | rw [X (Nat.le_step h4) h6] | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : Monotone c
h3 : D β€ K
X : β {M : β}, D β€ M β 2 β’ b M < c M β c (M + 1) = c M
n : β
h4 : D β€ n
h5 : 2 β’ b n < c n β c (n + 1) = c D
h6 : 2 β’ b (n + 1) < c (n + 1)
β’ c (n + 1 + 1) = c D | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : Monotone c
h3 : D β€ K
X : β {M : β}, D β€ M β 2 β’ b M < c M β c (M + 1) = c M
n : β
h4 : D β€ n
h5 : 2 β’ b n < c n β c (n + 1) = c D
h6 : 2 β’ b (n + 1) < c (n + 1)
β’ c n.succ = c D | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : Monotone c
h3 : D β€ K
X : β {M : β}, D β€ M β 2 β’ b M < c M β c (M + 1) = c M
n : β
h4 : D β€ n
h5 : 2 β’ b n < c n β c (n + 1) = c D
h6 : 2 β’ b (n + 1) < c (n + 1)
β’ c (n + 1 + 1) = c D
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.c_succ_eq_D_of_b_bdd | [94, 1] | [100, 67] | exact h5 (lt_of_not_le Ξ» h7 β¦ h6.not_le (c_bdd h h0 h1 h4 h7).2) | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : Monotone c
h3 : D β€ K
X : β {M : β}, D β€ M β 2 β’ b M < c M β c (M + 1) = c M
n : β
h4 : D β€ n
h5 : 2 β’ b n < c n β c (n + 1) = c D
h6 : 2 β’ b (n + 1) < c (n + 1)
β’ c n.succ = c D | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
K : β
h2 : Monotone c
h3 : D β€ K
X : β {M : β}, D β€ M β 2 β’ b M < c M β c (M + 1) = c M
n : β
h4 : D β€ n
h5 : 2 β’ b n < c n β c (n + 1) = c D
h6 : 2 β’ b (n + 1) < c (n + 1)
β’ c n.succ = c D
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.max_two_nsmul_b_and_c_bdd | [102, 1] | [120, 44] | have h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D)) := by
refine max_le (le_max_of_two_nsmul_le_add ?_) (le_max_left _ _)
rw [β nsmul_add, add_sub_cancel] | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
n : β
β’ max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D)) | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
n : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
β’ max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D)) | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
n : β
β’ max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.max_two_nsmul_b_and_c_bdd | [102, 1] | [120, 44] | refine (le_total n D).elim (Ξ» h4 β¦ h3.trans' (max_le_max (h2 h4) (nsmul_le_nsmul_right (h1 h4) 2)))
(Nat.le_induction h3 (Ξ» n h4 h5 β¦ ?_) n) | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
n : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
β’ max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D)) | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D)) | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
n : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
β’ max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.max_two_nsmul_b_and_c_bdd | [102, 1] | [120, 44] | rcases le_or_lt (c n) (2 β’ b n) with h6 | h6 | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D)) | case inl
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : c n β€ 2 β’ b n
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D))
case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : 2 β’ b n < c n
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D)) | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.max_two_nsmul_b_and_c_bdd | [102, 1] | [120, 44] | refine max_le (le_max_of_two_nsmul_le_add ?_) (le_max_left _ _) | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
n : β
β’ max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D)) | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
n : β
β’ 2 β’ c D β€ 2 β’ b D + 2 β’ (c D - b D) | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
n : β
β’ max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.max_two_nsmul_b_and_c_bdd | [102, 1] | [120, 44] | rw [β nsmul_add, add_sub_cancel] | G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
n : β
β’ 2 β’ c D β€ 2 β’ b D + 2 β’ (c D - b D) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
n : β
β’ 2 β’ c D β€ 2 β’ b D + 2 β’ (c D - b D)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.max_two_nsmul_b_and_c_bdd | [102, 1] | [120, 44] | rcases c_bdd h h0 h1 h4 h6 with β¨h7, h8β© | case inl
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : c n β€ 2 β’ b n
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D)) | case inl.intro
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : c n β€ 2 β’ b n
h7 : b (n + 1) = b n
h8 : c (n + 1) β€ 2 β’ b (n + 1)
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D)) | Please generate a tactic in lean4 to solve the state.
STATE:
case inl
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : c n β€ 2 β’ b n
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.max_two_nsmul_b_and_c_bdd | [102, 1] | [120, 44] | rwa [max_eq_right h8, h7, β max_eq_right h6] | case inl.intro
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : c n β€ 2 β’ b n
h7 : b (n + 1) = b n
h8 : c (n + 1) β€ 2 β’ b (n + 1)
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D)) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inl.intro
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : c n β€ 2 β’ b n
h7 : b (n + 1) = b n
h8 : c (n + 1) β€ 2 β’ b (n + 1)
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.max_two_nsmul_b_and_c_bdd | [102, 1] | [120, 44] | have h7 := c_succ_eq_D_of_b_bdd h h0 h1 h2 h4 h6 | case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : 2 β’ b n < c n
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D)) | case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : 2 β’ b n < c n
h7 : c (n + 1) = c D
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D)) | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : 2 β’ b n < c n
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.max_two_nsmul_b_and_c_bdd | [102, 1] | [120, 44] | refine max_le (h7 βΈ h3.trans' (le_max_left _ _))
(le_max_of_le_right <| nsmul_le_nsmul_right ((h _ h4).trans ?_) 2) | case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : 2 β’ b n < c n
h7 : c (n + 1) = c D
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D)) | case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : 2 β’ b n < c n
h7 : c (n + 1) = c D
β’ max (b n) (c n - b n) β€ c D - b D | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : 2 β’ b n < c n
h7 : c (n + 1) = c D
β’ max (c (n + 1)) (2 β’ b (n + 1)) β€ max (2 β’ b D) (2 β’ (c D - b D))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.max_two_nsmul_b_and_c_bdd | [102, 1] | [120, 44] | rw [two_nsmul, β lt_sub_iff_add_lt] at h6 | case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : 2 β’ b n < c n
h7 : c (n + 1) = c D
β’ max (b n) (c n - b n) β€ c D - b D | case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : b n < c n - b n
h7 : c (n + 1) = c D
β’ max (b n) (c n - b n) β€ c D - b D | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : 2 β’ b n < c n
h7 : c (n + 1) = c D
β’ max (b n) (c n - b n) β€ c D - b D
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.max_two_nsmul_b_and_c_bdd | [102, 1] | [120, 44] | rw [max_eq_right h6.le, β h7] | case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : b n < c n - b n
h7 : c (n + 1) = c D
β’ max (b n) (c n - b n) β€ c D - b D | case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : b n < c n - b n
h7 : c (n + 1) = c D
β’ c n - b n β€ c (n + 1) - b D | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : b n < c n - b n
h7 : c (n + 1) = c D
β’ max (b n) (c n - b n) β€ c D - b D
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2017/A4/A4.lean | IMOSL.IMO2017A4.max_two_nsmul_b_and_c_bdd | [102, 1] | [120, 44] | exact sub_le_sub (h2 n.le_succ) (h1 h4) | case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : b n < c n - b n
h7 : c (n + 1) = c D
β’ c n - b n β€ c (n + 1) - b D | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
G : Type u_1
D : β
instβ : LinearOrderedAddCommGroup G
b c : β β G
h : β (n : β), D β€ n β b (n + 1) β€ max (b n) (c n - b n)
h0 : β (n : β), D β€ n β c (n + 1) β€ max (c n) (2 β’ b n)
h1 : Monotone b
h2 : Monotone c
nβ : β
h3 : max (c D) (2 β’ b D) β€ max (2 β’ b D) (2 β’ (c D - b D))
n : β
h4 : D β€ n
h5 : max (c n) (2 β’ b n) β€ max (2 β’ b D) (2 β’ (c D - b D))
h6 : b n < c n - b n
h7 : c (n + 1) = c D
β’ c n - b n β€ c (n + 1) - b D
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2010/A1/A1.lean | IMOSL.IMO2010A1.Int_good_iff_MonoidGood | [40, 1] | [41, 67] | rw [Int.floor_int, smul_eq_mul, id_def] | R : Type u_1
instβΒΉ : LinearOrderedRing R
instβ : FloorRing R
f : β€ β R
m n : β€
β’ f (βmβ β’ n) = f m * ββf nβ β f (m * n) = f m * ββf nβ | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβΒΉ : LinearOrderedRing R
instβ : FloorRing R
f : β€ β R
m n : β€
β’ f (βmβ β’ n) = f m * ββf nβ β f (m * n) = f m * ββf nβ
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A1/A1.lean | IMOSL.IMO2014A1.d_zero | [29, 1] | [30, 72] | rw [d, sum_range_one, Int.Nat.cast_ofNat_Int, Int.zero_mul, sub_zero] | z : β β β€
β’ d z 0 = z 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
z : β β β€
β’ d z 0 = z 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A1/A1.lean | IMOSL.IMO2014A1.d_succ | [32, 1] | [35, 52] | rw [d, sum_range_succ, Int.natCast_add, Int.natCast_one,
add_one_mul (Ξ± := β€), add_sub_add_right_eq_sub] | z : β β β€
n : β
β’ d z (n + 1) = (range (n + 1)).sum z - βn * z (n + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
z : β β β€
n : β
β’ d z (n + 1) = (range (n + 1)).sum z - βn * z (n + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A1/A1.lean | IMOSL.IMO2014A1.d_one | [37, 1] | [38, 64] | rw [d_succ, sum_range_one, Nat.cast_zero, zero_mul, sub_zero] | z : β β β€
β’ d z 1 = z 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
z : β β β€
β’ d z 1 = z 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A1/A1.lean | IMOSL.IMO2014A1.main_lemma | [42, 1] | [45, 79] | rw [d_succ, d, sub_sub, β mul_add_one (Ξ± := β€)] | z : β β β€
h : StrictMono z
n : β
β’ d z (n + 1) β€ d z n - βn | z : β β β€
h : StrictMono z
n : β
β’ (range (n + 1)).sum z - βn * z (n + 1) β€ (range (n + 1)).sum z - βn * (z n + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
z : β β β€
h : StrictMono z
n : β
β’ d z (n + 1) β€ d z n - βn
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A1/A1.lean | IMOSL.IMO2014A1.main_lemma | [42, 1] | [45, 79] | exact Int.sub_le_sub_left
(Int.mul_le_mul_of_nonneg_left (h n.lt_succ_self) (Int.ofNat_zero_le n)) _ | z : β β β€
h : StrictMono z
n : β
β’ (range (n + 1)).sum z - βn * z (n + 1) β€ (range (n + 1)).sum z - βn * (z n + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
z : β β β€
h : StrictMono z
n : β
β’ (range (n + 1)).sum z - βn * z (n + 1) β€ (range (n + 1)).sum z - βn * (z n + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A1/A1.lean | IMOSL.IMO2014A1.binom_bound | [47, 1] | [53, 76] | rw [Nat.choose, Nat.choose_one_right, Nat.cast_add,
β sub_sub, sub_right_comm] | z : β β β€
h : StrictMono z
n : β
β’ d z (n + 1) β€ z 0 - β((n + 1).choose 2) | z : β β β€
h : StrictMono z
n : β
β’ d z (n + 1) β€ z 0 - β(n.choose (1 + 1)) - βn | Please generate a tactic in lean4 to solve the state.
STATE:
z : β β β€
h : StrictMono z
n : β
β’ d z (n + 1) β€ z 0 - β((n + 1).choose 2)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A1/A1.lean | IMOSL.IMO2014A1.binom_bound | [47, 1] | [53, 76] | exact Int.le_sub_right_of_add_le <|
(Int.add_le_of_le_sub_right (main_lemma h n)).trans (binom_bound n) | z : β β β€
h : StrictMono z
n : β
β’ d z (n + 1) β€ z 0 - β(n.choose (1 + 1)) - βn | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
z : β β β€
h : StrictMono z
n : β
β’ d z (n + 1) β€ z 0 - β(n.choose (1 + 1)) - βn
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A1/A1.lean | IMOSL.IMO2014A1.final_solution_part2 | [103, 1] | [107, 37] | rw [eq_greatestDPos_iff h h0, d_succ] | z : β β β€
h : StrictMono z
h0 : 0 < z 0
N : β
β’ N = greatestDPos h β βN * z N < (range (N + 1)).sum z β§ (range (N + 1)).sum z β€ βN * z (N + 1) | z : β β β€
h : StrictMono z
h0 : 0 < z 0
N : β
β’ 0 < d z N β§ (range (N + 1)).sum z - βN * z (N + 1) β€ 0 β
βN * z N < (range (N + 1)).sum z β§ (range (N + 1)).sum z β€ βN * z (N + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
z : β β β€
h : StrictMono z
h0 : 0 < z 0
N : β
β’ N = greatestDPos h β βN * z N < (range (N + 1)).sum z β§ (range (N + 1)).sum z β€ βN * z (N + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A1/A1.lean | IMOSL.IMO2014A1.final_solution_part2 | [103, 1] | [107, 37] | exact and_congr sub_pos sub_nonpos | z : β β β€
h : StrictMono z
h0 : 0 < z 0
N : β
β’ 0 < d z N β§ (range (N + 1)).sum z - βN * z (N + 1) β€ 0 β
βN * z N < (range (N + 1)).sum z β§ (range (N + 1)).sum z β€ βN * z (N + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
z : β β β€
h : StrictMono z
h0 : 0 < z 0
N : β
β’ 0 < d z N β§ (range (N + 1)).sum z - βN * z (N + 1) β€ 0 β
βN * z N < (range (N + 1)).sum z β§ (range (N + 1)).sum z β€ βN * z (N + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2008/A3/A3.lean | IMOSL.IMO2008A3.final_solution_part_2_general | [79, 1] | [94, 42] | rwa [prod_lex_lt_iff, Nat.succ_lt_succ_iff, Nat.succ_inj', β prod_lex_lt_iff] | Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p q : Lex (β Γ Ξ²)
h2 : p < q
β’ (p.1.succ, p.2) < (q.1.succ, q.2) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p q : Lex (β Γ Ξ²)
h2 : p < q
β’ (p.1.succ, p.2) < (q.1.succ, q.2)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2008/A3/A3.lean | IMOSL.IMO2008A3.final_solution_part_2_general | [79, 1] | [94, 42] | rw [prod_lex_lt_iff] at h2 β’ | Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p q : Lex (β Γ Ξ²)
h2 : p < q
β’ (p.1, Ο^[3 ^ p.1] p.2) < (q.1, Ο^[3 ^ q.1] q.2) | Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p q : Lex (β Γ Ξ²)
h2 : p.1 < q.1 β¨ p.1 = q.1 β§ p.2 < q.2
β’ (p.1, Ο^[3 ^ p.1] p.2).1 < (q.1, Ο^[3 ^ q.1] q.2).1 β¨
(p.1, Ο^[3 ^ p.1] p.2).1 = (q.1, Ο^[3 ^ q.1] q.2).1 β§ (p.1, Ο^[3 ^ p.1] p.2).2 < (q.1, Ο^[3 ^ q.1] q.2).2 | Please generate a tactic in lean4 to solve the state.
STATE:
Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p q : Lex (β Γ Ξ²)
h2 : p < q
β’ (p.1, Ο^[3 ^ p.1] p.2) < (q.1, Ο^[3 ^ q.1] q.2)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2008/A3/A3.lean | IMOSL.IMO2008A3.final_solution_part_2_general | [79, 1] | [94, 42] | refine h2.imp_right Ξ» h3 β¦ β¨h3.1, (h.iterate _ h3.2).trans_eq ?_β© | Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p q : Lex (β Γ Ξ²)
h2 : p.1 < q.1 β¨ p.1 = q.1 β§ p.2 < q.2
β’ (p.1, Ο^[3 ^ p.1] p.2).1 < (q.1, Ο^[3 ^ q.1] q.2).1 β¨
(p.1, Ο^[3 ^ p.1] p.2).1 = (q.1, Ο^[3 ^ q.1] q.2).1 β§ (p.1, Ο^[3 ^ p.1] p.2).2 < (q.1, Ο^[3 ^ q.1] q.2).2 | Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p q : Lex (β Γ Ξ²)
h2 : p.1 < q.1 β¨ p.1 = q.1 β§ p.2 < q.2
h3 : p.1 = q.1 β§ p.2 < q.2
β’ Ο^[3 ^ p.1] q.2 = (q.1, Ο^[3 ^ q.1] q.2).2 | Please generate a tactic in lean4 to solve the state.
STATE:
Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p q : Lex (β Γ Ξ²)
h2 : p.1 < q.1 β¨ p.1 = q.1 β§ p.2 < q.2
β’ (p.1, Ο^[3 ^ p.1] p.2).1 < (q.1, Ο^[3 ^ q.1] q.2).1 β¨
(p.1, Ο^[3 ^ p.1] p.2).1 = (q.1, Ο^[3 ^ q.1] q.2).1 β§ (p.1, Ο^[3 ^ p.1] p.2).2 < (q.1, Ο^[3 ^ q.1] q.2).2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2008/A3/A3.lean | IMOSL.IMO2008A3.final_solution_part_2_general | [79, 1] | [94, 42] | rw [β h3.1] | Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p q : Lex (β Γ Ξ²)
h2 : p.1 < q.1 β¨ p.1 = q.1 β§ p.2 < q.2
h3 : p.1 = q.1 β§ p.2 < q.2
β’ Ο^[3 ^ p.1] q.2 = (q.1, Ο^[3 ^ q.1] q.2).2 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p q : Lex (β Γ Ξ²)
h2 : p.1 < q.1 β¨ p.1 = q.1 β§ p.2 < q.2
h3 : p.1 = q.1 β§ p.2 < q.2
β’ Ο^[3 ^ p.1] q.2 = (q.1, Ο^[3 ^ q.1] q.2).2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2008/A3/A3.lean | IMOSL.IMO2008A3.final_solution_part_2_general | [79, 1] | [94, 42] | refine prod_lex_lt_iff.mpr <| Or.inr <| β¨rfl, ?_β© | Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p : Lex (β Γ Ξ²)
β’ (((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] (p.1, Ο^[3 ^ p.1] p.2).2).1.succ,
((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] (p.1, Ο^[3 ^ p.1] p.2).2).2) <
((p.1.succ, p.2).1, Ο^[3 ^ (p.1.succ, p.2).1] (p.1.succ, p.2).2) | Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p : Lex (β Γ Ξ²)
β’ (((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] (p.1, Ο^[3 ^ p.1] p.2).2).1.succ,
((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] (p.1, Ο^[3 ^ p.1] p.2).2).2).2 <
((p.1.succ, p.2).1, Ο^[3 ^ (p.1.succ, p.2).1] (p.1.succ, p.2).2).2 | Please generate a tactic in lean4 to solve the state.
STATE:
Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p : Lex (β Γ Ξ²)
β’ (((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] (p.1, Ο^[3 ^ p.1] p.2).2).1.succ,
((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] (p.1, Ο^[3 ^ p.1] p.2).2).2) <
((p.1.succ, p.2).1, Ο^[3 ^ (p.1.succ, p.2).1] (p.1.succ, p.2).2)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2008/A3/A3.lean | IMOSL.IMO2008A3.final_solution_part_2_general | [79, 1] | [94, 42] | rw [β Function.iterate_add_apply, β two_mul, pow_succ'] | Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p : Lex (β Γ Ξ²)
β’ (((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] (p.1, Ο^[3 ^ p.1] p.2).2).1.succ,
((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] (p.1, Ο^[3 ^ p.1] p.2).2).2).2 <
((p.1.succ, p.2).1, Ο^[3 ^ (p.1.succ, p.2).1] (p.1.succ, p.2).2).2 | Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p : Lex (β Γ Ξ²)
β’ (((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[2 * 3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] p.2).1.succ,
((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[2 * 3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] p.2).2).2 <
((p.1.succ, p.2).1, Ο^[3 * 3 ^ p.1] (p.1.succ, p.2).2).2 | Please generate a tactic in lean4 to solve the state.
STATE:
Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p : Lex (β Γ Ξ²)
β’ (((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] (p.1, Ο^[3 ^ p.1] p.2).2).1.succ,
((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] (p.1, Ο^[3 ^ p.1] p.2).2).2).2 <
((p.1.succ, p.2).1, Ο^[3 ^ (p.1.succ, p.2).1] (p.1.succ, p.2).2).2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2008/A3/A3.lean | IMOSL.IMO2008A3.final_solution_part_2_general | [79, 1] | [94, 42] | exact h.strictMono_iterate_of_lt_map (h0 p.2)
(Nat.mul_lt_mul_of_pos_right (Nat.lt_succ_self 2)
(pow_pos (Nat.succ_pos 2) _)) | Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p : Lex (β Γ Ξ²)
β’ (((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[2 * 3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] p.2).1.succ,
((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[2 * 3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] p.2).2).2 <
((p.1.succ, p.2).1, Ο^[3 * 3 ^ p.1] (p.1.succ, p.2).2).2 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
Ξ² : Type u_1
Ο : Ξ² β Ξ²
instβ : Preorder Ξ²
h : StrictMono Ο
h0 : β (x : Ξ²), x < Ο x
p : Lex (β Γ Ξ²)
β’ (((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[2 * 3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] p.2).1.succ,
((p.1, Ο^[3 ^ p.1] p.2).1, Ο^[2 * 3 ^ (p.1, Ο^[3 ^ p.1] p.2).1] p.2).2).2 <
((p.1.succ, p.2).1, Ο^[3 * 3 ^ p.1] (p.1.succ, p.2).2).2
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.XpowMul_nat_add | [131, 1] | [133, 80] | unfold XpowMul | m n : β
P : π½βX
β’ XpowMul (m + n) P = XpowMul n (XpowMul m P) | m n : β
P : π½βX
β’ { toFinset := Finset.image (fun k => k + (m + n)) P.toFinset } =
{ toFinset := Finset.image (fun k => k + n) { toFinset := Finset.image (fun k => k + m) P.toFinset }.toFinset } | Please generate a tactic in lean4 to solve the state.
STATE:
m n : β
P : π½βX
β’ XpowMul (m + n) P = XpowMul n (XpowMul m P)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.XpowMul_nat_add | [131, 1] | [133, 80] | rw [π½βX.ext_iff, eq_comm, Finset.image_image, comp_add_right] | m n : β
P : π½βX
β’ { toFinset := Finset.image (fun k => k + (m + n)) P.toFinset } =
{ toFinset := Finset.image (fun k => k + n) { toFinset := Finset.image (fun k => k + m) P.toFinset }.toFinset } | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
m n : β
P : π½βX
β’ { toFinset := Finset.image (fun k => k + (m + n)) P.toFinset } =
{ toFinset := Finset.image (fun k => k + n) { toFinset := Finset.image (fun k => k + m) P.toFinset }.toFinset }
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.XpowMul_sum | [139, 1] | [142, 71] | rw [Finset.sum_insert h, Finset.sum_insert h, XpowMul_π½βX_add, h0] | ΞΉ : Type u_1
n : β
instβ : DecidableEq ΞΉ
f : ΞΉ β π½βX
Sβ : Finset ΞΉ
i : ΞΉ
S : Finset ΞΉ
h : i β S
h0 : XpowMul n (S.sum f) = β i β S, XpowMul n (f i)
β’ XpowMul n ((insert i S).sum f) = β i β insert i S, XpowMul n (f i) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
ΞΉ : Type u_1
n : β
instβ : DecidableEq ΞΉ
f : ΞΉ β π½βX
Sβ : Finset ΞΉ
i : ΞΉ
S : Finset ΞΉ
h : i β S
h0 : XpowMul n (S.sum f) = β i β S, XpowMul n (f i)
β’ XpowMul n ((insert i S).sum f) = β i β insert i S, XpowMul n (f i)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.sum_Xpow_eq_ofFinset | [144, 1] | [147, 55] | rw [Finset.sum_insert h, h0] | i : β
S : Finset β
h : i β S
h0 : S.sum Xpow = ofFinset S
β’ (insert i S).sum Xpow = ofFinset (insert i S) | i : β
S : Finset β
h : i β S
h0 : S.sum Xpow = ofFinset S
β’ Xpow i + ofFinset S = ofFinset (insert i S) | Please generate a tactic in lean4 to solve the state.
STATE:
i : β
S : Finset β
h : i β S
h0 : S.sum Xpow = ofFinset S
β’ (insert i S).sum Xpow = ofFinset (insert i S)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.sum_Xpow_eq_ofFinset | [144, 1] | [147, 55] | exact π½βX.ext _ _ (symmDiff_singleton_eq_insert h) | i : β
S : Finset β
h : i β S
h0 : S.sum Xpow = ofFinset S
β’ Xpow i + ofFinset S = ofFinset (insert i S) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
i : β
S : Finset β
h : i β S
h0 : S.sum Xpow = ofFinset S
β’ Xpow i + ofFinset S = ofFinset (insert i S)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.Xpow_add | [188, 1] | [189, 53] | rw [β XpowMul_eq_Xpow_mul, XpowMul_Xpow, add_comm] | k m : β
β’ Xpow (k + m) = Xpow k * Xpow m | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
k m : β
β’ Xpow (k + m) = Xpow k * Xpow m
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.XpowMul_eq_mul_Xpow | [191, 1] | [194, 59] | rw [XpowMul_Xpow, Xpow_add] | n k : β
β’ XpowMul n (Xpow k) = Xpow k * Xpow n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n k : β
β’ XpowMul n (Xpow k) = Xpow k * Xpow n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.XpowMul_eq_mul_Xpow | [191, 1] | [194, 59] | rw [XpowMul_π½βX_add, π½βX.add_mul, h, h0] | n : β
Pβ Qβ : π½βX
h : XpowMul n Pβ = Pβ * Xpow n
h0 : XpowMul n Qβ = Qβ * Xpow n
β’ XpowMul n (Pβ + Qβ) = (Pβ + Qβ) * Xpow n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
Pβ Qβ : π½βX
h : XpowMul n Pβ = Pβ * Xpow n
h0 : XpowMul n Qβ = Qβ * Xpow n
β’ XpowMul n (Pβ + Qβ) = (Pβ + Qβ) * Xpow n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.mul_comm | [196, 1] | [199, 55] | rw [β XpowMul_eq_Xpow_mul, XpowMul_eq_mul_Xpow] | P : π½βX
n : β
β’ P * Xpow n = Xpow n * P | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
P : π½βX
n : β
β’ P * Xpow n = Xpow n * P
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.mul_comm | [196, 1] | [199, 55] | rw [π½βX.add_mul, π½βX.mul_add, h, h0] | P Pβ Qβ : π½βX
h : P * Pβ = Pβ * P
h0 : P * Qβ = Qβ * P
β’ P * (Pβ + Qβ) = (Pβ + Qβ) * P | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
P Pβ Qβ : π½βX
h : P * Pβ = Pβ * P
h0 : P * Qβ = Qβ * P
β’ P * (Pβ + Qβ) = (Pβ + Qβ) * P
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.mul_XpowMul_left | [201, 1] | [205, 72] | rw [β XpowMul_eq_mul_Xpow, β XpowMul_eq_mul_Xpow,
β XpowMul_nat_add, β XpowMul_nat_add, Nat.add_comm] | n : β
P : π½βX
k : β
β’ XpowMul n P * Xpow k = XpowMul n (P * Xpow k) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
P : π½βX
k : β
β’ XpowMul n P * Xpow k = XpowMul n (P * Xpow k)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.mul_XpowMul_left | [201, 1] | [205, 72] | rw [π½βX.mul_add, π½βX.mul_add, h, h0, XpowMul_π½βX_add] | n : β
P Pβ Qβ : π½βX
h : XpowMul n P * Pβ = XpowMul n (P * Pβ)
h0 : XpowMul n P * Qβ = XpowMul n (P * Qβ)
β’ XpowMul n P * (Pβ + Qβ) = XpowMul n (P * (Pβ + Qβ)) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
P Pβ Qβ : π½βX
h : XpowMul n P * Pβ = XpowMul n (P * Pβ)
h0 : XpowMul n P * Qβ = XpowMul n (P * Qβ)
β’ XpowMul n P * (Pβ + Qβ) = XpowMul n (P * (Pβ + Qβ))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.mul_XpowMul_right | [207, 1] | [208, 48] | rw [P.mul_comm, mul_XpowMul_left, Q.mul_comm] | n : β
P Q : π½βX
β’ P * XpowMul n Q = XpowMul n (P * Q) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
P Q : π½βX
β’ P * XpowMul n Q = XpowMul n (P * Q)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.mul_assoc | [210, 1] | [213, 68] | rw [β XpowMul_eq_mul_Xpow, β XpowMul_eq_mul_Xpow, mul_XpowMul_right] | P Q : π½βX
n : β
β’ P * Q * Xpow n = P * (Q * Xpow n) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
P Q : π½βX
n : β
β’ P * Q * Xpow n = P * (Q * Xpow n)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.mul_assoc | [210, 1] | [213, 68] | rw [π½βX.mul_add, π½βX.mul_add, π½βX.mul_add, h, h0] | P Q Pβ Qβ : π½βX
h : P * Q * Pβ = P * (Q * Pβ)
h0 : P * Q * Qβ = P * (Q * Qβ)
β’ P * Q * (Pβ + Qβ) = P * (Q * (Pβ + Qβ)) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
P Q Pβ Qβ : π½βX
h : P * Q * Pβ = P * (Q * Pβ)
h0 : P * Q * Qβ = P * (Q * Qβ)
β’ P * Q * (Pβ + Qβ) = P * (Q * (Pβ + Qβ))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.square_eq_mul_self | [235, 1] | [238, 73] | rw [square_add, square_Xpow, π½βX.add_mul, π½βX.mul_add, β Xpow_add, Nat.two_mul,
π½βX.mul_add, β h, β P.mul_comm, CharTwo.add_add_add_cancel_middle] | n : β
P : π½βX
h : P.square = P * P
β’ (Xpow n + P).square = (Xpow n + P) * (Xpow n + P) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
P : π½βX
h : P.square = P * P
β’ (Xpow n + P).square = (Xpow n + P) * (Xpow n + P)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.square_XpowMul | [240, 1] | [243, 82] | unfold square XpowMul | n : β
P : π½βX
β’ (XpowMul n P).square = XpowMul (2 * n) P.square | n : β
P : π½βX
β’ { toFinset := Finset.image (fun n => 2 * n) { toFinset := Finset.image (fun k => k + n) P.toFinset }.toFinset } =
{ toFinset := Finset.image (fun k => k + 2 * n) { toFinset := Finset.image (fun n => 2 * n) P.toFinset }.toFinset } | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
P : π½βX
β’ (XpowMul n P).square = XpowMul (2 * n) P.square
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.square_XpowMul | [240, 1] | [243, 82] | rw [Finset.image_image, Finset.image_image] | n : β
P : π½βX
β’ { toFinset := Finset.image (fun n => 2 * n) { toFinset := Finset.image (fun k => k + n) P.toFinset }.toFinset } =
{ toFinset := Finset.image (fun k => k + 2 * n) { toFinset := Finset.image (fun n => 2 * n) P.toFinset }.toFinset } | n : β
P : π½βX
β’ { toFinset := Finset.image ((fun n => 2 * n) β fun k => k + n) P.toFinset } =
{ toFinset := Finset.image ((fun k => k + 2 * n) β fun n => 2 * n) P.toFinset } | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
P : π½βX
β’ { toFinset := Finset.image (fun n => 2 * n) { toFinset := Finset.image (fun k => k + n) P.toFinset }.toFinset } =
{ toFinset := Finset.image (fun k => k + 2 * n) { toFinset := Finset.image (fun n => 2 * n) P.toFinset }.toFinset }
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.square_XpowMul | [240, 1] | [243, 82] | exact π½βX.ext _ _ (congrArg P.toFinset.image <| funext Ξ» n β¦ Nat.mul_add 2 _ _) | n : β
P : π½βX
β’ { toFinset := Finset.image ((fun n => 2 * n) β fun k => k + n) P.toFinset } =
{ toFinset := Finset.image ((fun k => k + 2 * n) β fun n => 2 * n) P.toFinset } | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
P : π½βX
β’ { toFinset := Finset.image ((fun n => 2 * n) β fun k => k + n) P.toFinset } =
{ toFinset := Finset.image ((fun k => k + 2 * n) β fun n => 2 * n) P.toFinset }
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.square_mul | [245, 1] | [249, 77] | rw [β XpowMul_eq_mul_Xpow, square_XpowMul,
square_Xpow, XpowMul_eq_mul_Xpow] | P : π½βX
n : β
β’ (P * Xpow n).square = P.square * (Xpow n).square | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
P : π½βX
n : β
β’ (P * Xpow n).square = P.square * (Xpow n).square
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.square_mul | [245, 1] | [249, 77] | rw [P.mul_add, square_add, h, h0, square_add, π½βX.mul_add] | P Pβ Qβ : π½βX
h : (P * Pβ).square = P.square * Pβ.square
h0 : (P * Qβ).square = P.square * Qβ.square
β’ (P * (Pβ + Qβ)).square = P.square * (Pβ + Qβ).square | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
P Pβ Qβ : π½βX
h : (P * Pβ).square = P.square * Pβ.square
h0 : (P * Qβ).square = P.square * Qβ.square
β’ (P * (Pβ + Qβ)).square = P.square * (Pβ + Qβ).square
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.natPow_of_ne_zero | [266, 1] | [269, 28] | rw [π½βX.natPow, if_neg h] | n : β
P : π½βX
h : n β 0
β’ P.natPow n = if n % 2 = 0 then P.square.natPow (n / 2) else P.square.natPow (n / 2) * P | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
P : π½βX
h : n β 0
β’ P.natPow n = if n % 2 = 0 then P.square.natPow (n / 2) else P.square.natPow (n / 2) * P
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.natPow_two_mul | [271, 1] | [277, 62] | rcases Decidable.eq_or_ne n 0 with rfl | h | P : π½βX
n : β
β’ P.natPow (2 * n) = P.square.natPow n | case inl
P : π½βX
β’ P.natPow (2 * 0) = P.square.natPow 0
case inr
P : π½βX
n : β
h : n β 0
β’ P.natPow (2 * n) = P.square.natPow n | Please generate a tactic in lean4 to solve the state.
STATE:
P : π½βX
n : β
β’ P.natPow (2 * n) = P.square.natPow n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.natPow_two_mul | [271, 1] | [277, 62] | rw [Nat.mul_zero, π½βX.natPow_zero, π½βX.natPow_zero] | case inl
P : π½βX
β’ P.natPow (2 * 0) = P.square.natPow 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inl
P : π½βX
β’ P.natPow (2 * 0) = P.square.natPow 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.natPow_two_mul | [271, 1] | [277, 62] | have h0 : 0 < 2 := Nat.two_pos | case inr
P : π½βX
n : β
h : n β 0
β’ P.natPow (2 * n) = P.square.natPow n | case inr
P : π½βX
n : β
h : n β 0
h0 : 0 < 2
β’ P.natPow (2 * n) = P.square.natPow n | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
P : π½βX
n : β
h : n β 0
β’ P.natPow (2 * n) = P.square.natPow n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.natPow_two_mul | [271, 1] | [277, 62] | rw [P.natPow_of_ne_zero (Nat.mul_ne_zero h0.ne.symm h),
if_pos (Nat.mul_mod_right _ _), Nat.mul_div_right _ h0] | case inr
P : π½βX
n : β
h : n β 0
h0 : 0 < 2
β’ P.natPow (2 * n) = P.square.natPow n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
P : π½βX
n : β
h : n β 0
h0 : 0 < 2
β’ P.natPow (2 * n) = P.square.natPow n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.natPow_two_mul_add_one | [279, 1] | [283, 51] | rw [P.natPow_of_ne_zero (2 * n).add_one_ne_zero, Nat.mul_add_mod,
Nat.mul_add_div Nat.two_pos, if_neg Nat.one_ne_zero,
Nat.div_eq_of_lt Nat.one_lt_two, Nat.add_zero] | P : π½βX
n : β
β’ P.natPow (2 * n + 1) = P.square.natPow n * P | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
P : π½βX
n : β
β’ P.natPow (2 * n + 1) = P.square.natPow n * P
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.natPow_succ | [291, 1] | [299, 63] | rw [β n.div_add_mod 2] | P : π½βX
n : β
β’ P.natPow n.succ = P.natPow n * P | P : π½βX
n : β
β’ P.natPow (2 * (n / 2) + n % 2).succ = P.natPow (2 * (n / 2) + n % 2) * P | Please generate a tactic in lean4 to solve the state.
STATE:
P : π½βX
n : β
β’ P.natPow n.succ = P.natPow n * P
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.natPow_succ | [291, 1] | [299, 63] | rcases n.mod_two_eq_zero_or_one with h0 | h0 | P : π½βX
n : β
β’ P.natPow (2 * (n / 2) + n % 2).succ = P.natPow (2 * (n / 2) + n % 2) * P | case inl
P : π½βX
n : β
h0 : n % 2 = 0
β’ P.natPow (2 * (n / 2) + n % 2).succ = P.natPow (2 * (n / 2) + n % 2) * P
case inr
P : π½βX
n : β
h0 : n % 2 = 1
β’ P.natPow (2 * (n / 2) + n % 2).succ = P.natPow (2 * (n / 2) + n % 2) * P | Please generate a tactic in lean4 to solve the state.
STATE:
P : π½βX
n : β
β’ P.natPow (2 * (n / 2) + n % 2).succ = P.natPow (2 * (n / 2) + n % 2) * P
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.natPow_succ | [291, 1] | [299, 63] | rw [h0, Nat.add_zero, π½βX.natPow_two_mul_add_one, π½βX.natPow_two_mul] | case inl
P : π½βX
n : β
h0 : n % 2 = 0
β’ P.natPow (2 * (n / 2) + n % 2).succ = P.natPow (2 * (n / 2) + n % 2) * P | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inl
P : π½βX
n : β
h0 : n % 2 = 0
β’ P.natPow (2 * (n / 2) + n % 2).succ = P.natPow (2 * (n / 2) + n % 2) * P
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.natPow_succ | [291, 1] | [299, 63] | rw [h0, Nat.succ_eq_add_one, β Nat.mul_succ 2, π½βX.natPow_two_mul,
π½βX.natPow_two_mul_add_one, π½βX.mul_assoc, β P.square_eq_mul_self] | case inr
P : π½βX
n : β
h0 : n % 2 = 1
β’ P.natPow (2 * (n / 2) + n % 2).succ = P.natPow (2 * (n / 2) + n % 2) * P | case inr
P : π½βX
n : β
h0 : n % 2 = 1
β’ P.square.natPow (n / 2).succ = P.square.natPow (n / 2) * P.square | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
P : π½βX
n : β
h0 : n % 2 = 1
β’ P.natPow (2 * (n / 2) + n % 2).succ = P.natPow (2 * (n / 2) + n % 2) * P
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.natPow_succ | [291, 1] | [299, 63] | exact (square P).natPow_succ (n / 2) | case inr
P : π½βX
n : β
h0 : n % 2 = 1
β’ P.square.natPow (n / 2).succ = P.square.natPow (n / 2) * P.square | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
P : π½βX
n : β
h0 : n % 2 = 1
β’ P.square.natPow (n / 2).succ = P.square.natPow (n / 2) * P.square
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.natPow_succ | [291, 1] | [299, 63] | apply Nat.bitwise_rec_lemma | P : π½βX
n : β
aβ :
β (y : (_ : π½βX) Γ' β),
(invImage (fun x => PSigma.casesOn x fun P n => n) instWellFoundedRelationOfSizeOf).1 y β¨P, nβ© β
y.1.natPow y.2.succ = y.1.natPow y.2 * y.1
h0 : n % 2 = 1
β’ (invImage (fun x => PSigma.casesOn x fun P n => n) instWellFoundedRelationOfSizeOf).1 β¨P.square, n / 2β© β¨P, nβ© | case hNe
P : π½βX
n : β
aβ :
β (y : (_ : π½βX) Γ' β),
(invImage (fun x => PSigma.casesOn x fun P n => n) instWellFoundedRelationOfSizeOf).1 y β¨P, nβ© β
y.1.natPow y.2.succ = y.1.natPow y.2 * y.1
h0 : n % 2 = 1
β’ n β 0 | Please generate a tactic in lean4 to solve the state.
STATE:
P : π½βX
n : β
aβ :
β (y : (_ : π½βX) Γ' β),
(invImage (fun x => PSigma.casesOn x fun P n => n) instWellFoundedRelationOfSizeOf).1 y β¨P, nβ© β
y.1.natPow y.2.succ = y.1.natPow y.2 * y.1
h0 : n % 2 = 1
β’ (invImage (fun x => PSigma.casesOn x fun P n => n) instWellFoundedRelationOfSizeOf).1 β¨P.square, n / 2β© β¨P, nβ©
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.natPow_succ | [291, 1] | [299, 63] | rintro rfl | case hNe
P : π½βX
n : β
aβ :
β (y : (_ : π½βX) Γ' β),
(invImage (fun x => PSigma.casesOn x fun P n => n) instWellFoundedRelationOfSizeOf).1 y β¨P, nβ© β
y.1.natPow y.2.succ = y.1.natPow y.2 * y.1
h0 : n % 2 = 1
β’ n β 0 | case hNe
P : π½βX
aβ :
β (y : (_ : π½βX) Γ' β),
(invImage (fun x => PSigma.casesOn x fun P n => n) instWellFoundedRelationOfSizeOf).1 y β¨P, 0β© β
y.1.natPow y.2.succ = y.1.natPow y.2 * y.1
h0 : 0 % 2 = 1
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
case hNe
P : π½βX
n : β
aβ :
β (y : (_ : π½βX) Γ' β),
(invImage (fun x => PSigma.casesOn x fun P n => n) instWellFoundedRelationOfSizeOf).1 y β¨P, nβ© β
y.1.natPow y.2.succ = y.1.natPow y.2 * y.1
h0 : n % 2 = 1
β’ n β 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/F2X/Defs.lean | IMOSL.IMO2012A5.π½βX.natPow_succ | [291, 1] | [299, 63] | exact absurd h0.symm Nat.one_ne_zero | case hNe
P : π½βX
aβ :
β (y : (_ : π½βX) Γ' β),
(invImage (fun x => PSigma.casesOn x fun P n => n) instWellFoundedRelationOfSizeOf).1 y β¨P, 0β© β
y.1.natPow y.2.succ = y.1.natPow y.2 * y.1
h0 : 0 % 2 = 1
β’ False | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case hNe
P : π½βX
aβ :
β (y : (_ : π½βX) Γ' β),
(invImage (fun x => PSigma.casesOn x fun P n => n) instWellFoundedRelationOfSizeOf).1 y β¨P, 0β© β
y.1.natPow y.2.succ = y.1.natPow y.2 * y.1
h0 : 0 % 2 = 1
β’ False
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Answers/ZeroMap.lean | IMOSL.IMO2012A5.zero_is_good | [21, 1] | [22, 37] | rw [add_zero, zero_mul] | R : Type u_1
S : Type u_2
instβΒΉ : NonAssocSemiring R
instβ : NonAssocSemiring S
xβΒΉ xβ : R
β’ (fun x => 0) (xβΒΉ * xβ + 1) = (fun x => 0) xβΒΉ * (fun x => 0) xβ + (fun x => 0) (xβΒΉ + xβ) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
S : Type u_2
instβΒΉ : NonAssocSemiring R
instβ : NonAssocSemiring S
xβΒΉ xβ : R
β’ (fun x => 0) (xβΒΉ * xβ + 1) = (fun x => 0) xβΒΉ * (fun x => 0) xβ + (fun x => 0) (xβΒΉ + xβ)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Answers/ZeroMap.lean | IMOSL.IMO2012A5.good_Nontrivial_or_eq_zero | [24, 1] | [34, 89] | rw [zero_add, β h, one_mul] | R : Type u_2
S : Type u_1
instβΒ³ : NonAssocSemiring R
instβΒ² : NonAssocSemiring S
instβΒΉ : IsCancelAdd S
instβ : NoZeroDivisors S
f : R β S
h : good f
β’ 0 + f (1 + 1) = f 1 * f 1 + f (1 + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
instβΒ³ : NonAssocSemiring R
instβΒ² : NonAssocSemiring S
instβΒΉ : IsCancelAdd S
instβ : NoZeroDivisors S
f : R β S
h : good f
β’ 0 + f (1 + 1) = f 1 * f 1 + f (1 + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Answers/ZeroMap.lean | IMOSL.IMO2012A5.good_Nontrivial_or_eq_zero | [24, 1] | [34, 89] | have h1 := h x 0 | R : Type u_2
S : Type u_1
instβΒ³ : NonAssocSemiring R
instβΒ² : NonAssocSemiring S
instβΒΉ : IsCancelAdd S
instβ : NoZeroDivisors S
f : R β S
h : good f
h0 : f 1 = 0
x : R
β’ 0 = f x * (f 0 + 1) | R : Type u_2
S : Type u_1
instβΒ³ : NonAssocSemiring R
instβΒ² : NonAssocSemiring S
instβΒΉ : IsCancelAdd S
instβ : NoZeroDivisors S
f : R β S
h : good f
h0 : f 1 = 0
x : R
h1 : f (x * 0 + 1) = f x * f 0 + f (x + 0)
β’ 0 = f x * (f 0 + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
instβΒ³ : NonAssocSemiring R
instβΒ² : NonAssocSemiring S
instβΒΉ : IsCancelAdd S
instβ : NoZeroDivisors S
f : R β S
h : good f
h0 : f 1 = 0
x : R
β’ 0 = f x * (f 0 + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Answers/ZeroMap.lean | IMOSL.IMO2012A5.good_Nontrivial_or_eq_zero | [24, 1] | [34, 89] | rwa [mul_zero, zero_add, h0, add_zero, β mul_add_one (f x)] at h1 | R : Type u_2
S : Type u_1
instβΒ³ : NonAssocSemiring R
instβΒ² : NonAssocSemiring S
instβΒΉ : IsCancelAdd S
instβ : NoZeroDivisors S
f : R β S
h : good f
h0 : f 1 = 0
x : R
h1 : f (x * 0 + 1) = f x * f 0 + f (x + 0)
β’ 0 = f x * (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βΒ³ : NonAssocSemiring R
instβΒ² : NonAssocSemiring S
instβΒΉ : IsCancelAdd S
instβ : NoZeroDivisors S
f : R β S
h : good f
h0 : f 1 = 0
x : R
h1 : f (x * 0 + 1) = f x * f 0 + f (x + 0)
β’ 0 = f x * (f 0 + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Answers/ZeroMap.lean | IMOSL.IMO2012A5.good_Nontrivial_or_eq_zero | [24, 1] | [34, 89] | specialize h1 x | R : Type u_2
S : Type u_1
instβΒ³ : NonAssocSemiring R
instβΒ² : NonAssocSemiring S
instβΒΉ : IsCancelAdd S
instβ : NoZeroDivisors S
f : R β S
h : good f
h0 : f 1 = 0
h1 : β (x : R), 0 = f x * (f 0 + 1)
h2 : f 0 = 0
x : R
β’ f x = 0 | R : Type u_2
S : Type u_1
instβΒ³ : NonAssocSemiring R
instβΒ² : NonAssocSemiring S
instβΒΉ : IsCancelAdd S
instβ : NoZeroDivisors S
f : R β S
h : good f
h0 : f 1 = 0
h2 : f 0 = 0
x : R
h1 : 0 = f x * (f 0 + 1)
β’ f x = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
instβΒ³ : NonAssocSemiring R
instβΒ² : NonAssocSemiring S
instβΒΉ : IsCancelAdd S
instβ : NoZeroDivisors S
f : R β S
h : good f
h0 : f 1 = 0
h1 : β (x : R), 0 = f x * (f 0 + 1)
h2 : f 0 = 0
x : R
β’ f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/A5Answers/ZeroMap.lean | IMOSL.IMO2012A5.good_Nontrivial_or_eq_zero | [24, 1] | [34, 89] | rwa [h2, zero_add, mul_one, eq_comm] at h1 | R : Type u_2
S : Type u_1
instβΒ³ : NonAssocSemiring R
instβΒ² : NonAssocSemiring S
instβΒΉ : IsCancelAdd S
instβ : NoZeroDivisors S
f : R β S
h : good f
h0 : f 1 = 0
h2 : f 0 = 0
x : R
h1 : 0 = f x * (f 0 + 1)
β’ f x = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
S : Type u_1
instβΒ³ : NonAssocSemiring R
instβΒ² : NonAssocSemiring S
instβΒΉ : IsCancelAdd S
instβ : NoZeroDivisors S
f : R β S
h : good f
h0 : f 1 = 0
h2 : f 0 = 0
x : R
h1 : 0 = f x * (f 0 + 1)
β’ f x = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.exists_ne_pow_eq | [24, 1] | [31, 22] | obtain β¨m, -, n, -, h, h0β© :=
Set.infinite_univ.exists_ne_map_eq_of_mapsTo h0 (Set.toFinite _) | k : β€
h : k β 0
b : β€
h0 : Set.MapsTo (fun x => b ^ x % k) Set.univ β(Finset.Ico 0 |k|)
β’ β m n, m β n β§ b ^ m % k = b ^ n % k | case intro.intro.intro.intro.intro
k : β€
hβ : k β 0
b : β€
h0β : Set.MapsTo (fun x => b ^ x % k) Set.univ β(Finset.Ico 0 |k|)
m n : β
h : m β n
h0 : b ^ m % k = b ^ n % k
β’ β m n, m β n β§ b ^ m % k = b ^ n % k | Please generate a tactic in lean4 to solve the state.
STATE:
k : β€
h : k β 0
b : β€
h0 : Set.MapsTo (fun x => b ^ x % k) Set.univ β(Finset.Ico 0 |k|)
β’ β m n, m β n β§ b ^ m % k = b ^ n % k
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.exists_ne_pow_eq | [24, 1] | [31, 22] | exact β¨m, n, h, h0β© | case intro.intro.intro.intro.intro
k : β€
hβ : k β 0
b : β€
h0β : Set.MapsTo (fun x => b ^ x % k) Set.univ β(Finset.Ico 0 |k|)
m n : β
h : m β n
h0 : b ^ m % k = b ^ n % k
β’ β m n, m β n β§ b ^ m % k = b ^ n % k | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro.intro.intro
k : β€
hβ : k β 0
b : β€
h0β : Set.MapsTo (fun x => b ^ x % k) Set.univ β(Finset.Ico 0 |k|)
m n : β
h : m β n
h0 : b ^ m % k = b ^ n % k
β’ β m n, m β n β§ b ^ m % k = b ^ n % k
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.exists_ne_pow_eq | [24, 1] | [31, 22] | rw [Finset.coe_Ico, Set.mem_Ico] | k : β€
h : k β 0
b : β€
x : β
xβ : x β Set.univ
β’ (fun x => b ^ x % k) x β β(Finset.Ico 0 |k|) | k : β€
h : k β 0
b : β€
x : β
xβ : x β Set.univ
β’ 0 β€ (fun x => b ^ x % k) x β§ (fun x => b ^ x % k) x < |k| | Please generate a tactic in lean4 to solve the state.
STATE:
k : β€
h : k β 0
b : β€
x : β
xβ : x β Set.univ
β’ (fun x => b ^ x % k) x β β(Finset.Ico 0 |k|)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.exists_ne_pow_eq | [24, 1] | [31, 22] | exact β¨(b ^ x).emod_nonneg h, (b ^ x).emod_lt hβ© | k : β€
h : k β 0
b : β€
x : β
xβ : x β Set.univ
β’ 0 β€ (fun x => b ^ x % k) x β§ (fun x => b ^ x % k) x < |k| | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
k : β€
h : k β 0
b : β€
x : β
xβ : x β Set.univ
β’ 0 β€ (fun x => b ^ x % k) x β§ (fun x => b ^ x % k) x < |k|
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.linear_good' | [44, 1] | [46, 74] | rw [add_sub_add_right_eq_sub, mul_add, add_sub_cancel_left, add_one_mul (Ξ± := β€),
add_sub_add_right_eq_sub, β mul_sub, add_sub_cancel_right, β mul_add] | k m x y : β€
β’ (fun x => k * x + m) (y + (fun x => k * x + m) x) - (fun x => k * x + m) y =
(fun x => k * x + m) ((k + 1) * x) - (fun x => k * x + m) x + k * m | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
k m x y : β€
β’ (fun x => k * x + m) (y + (fun x => k * x + m) x) - (fun x => k * x + m) y =
(fun x => k * x + m) ((k + 1) * x) - (fun x => k * x + m) x + k * m
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.linear_good | [48, 1] | [50, 43] | nth_rw 1 [β sub_add_cancel b 1, β Int.mul_ediv_cancel' h] | b c : β€
h : b - 1 β£ c
β’ good b c fun x => (b - 1) * x + c / (b - 1) | b c : β€
h : b - 1 β£ c
β’ good (b - 1 + 1) ((b - 1) * (c / (b - 1))) fun x => (b - 1) * x + c / (b - 1) | Please generate a tactic in lean4 to solve the state.
STATE:
b c : β€
h : b - 1 β£ c
β’ good b c fun x => (b - 1) * x + c / (b - 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.linear_good | [48, 1] | [50, 43] | exact linear_good' (b - 1) (c / (b - 1)) | b c : β€
h : b - 1 β£ c
β’ good (b - 1 + 1) ((b - 1) * (c / (b - 1))) fun x => (b - 1) * x + c / (b - 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
b c : β€
h : b - 1 β£ c
β’ good (b - 1 + 1) ((b - 1) * (c / (b - 1))) fun x => (b - 1) * x + c / (b - 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_map_zero_add | [58, 1] | [59, 63] | rw [β sub_eq_iff_eq_add, h, mul_zero, sub_self, zero_add] | b c : β€
f : β€ β β€
h : good b c f
y : β€
β’ f (y + f 0) = c + f y | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
b c : β€
f : β€ β β€
h : good b c f
y : β€
β’ f (y + f 0) = c + f y
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_mul_map_zero_add | [61, 1] | [65, 33] | have h0 n : f (y + f 0 * (n + 1)) = c + f (y + f 0 * n) := by
rw [mul_add_one (Ξ± := β€), β add_assoc, map_map_zero_add h] | b c : β€
f : β€ β β€
h : good b c f
y k : β€
β’ f (y + f 0 * k) = c * k + f y | b c : β€
f : β€ β β€
h : good b c f
y k : β€
h0 : β (n : β€), f (y + f 0 * (n + 1)) = c + f (y + f 0 * n)
β’ f (y + f 0 * k) = c * k + f y | Please generate a tactic in lean4 to solve the state.
STATE:
b c : β€
f : β€ β β€
h : good b c f
y k : β€
β’ f (y + f 0 * k) = c * k + f y
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_mul_map_zero_add | [61, 1] | [65, 33] | replace h0 := Extra.IntIntLinearSolverAlt (f := Ξ» n β¦ f (y + f 0 * n)) h0 k | b c : β€
f : β€ β β€
h : good b c f
y k : β€
h0 : β (n : β€), f (y + f 0 * (n + 1)) = c + f (y + f 0 * n)
β’ f (y + f 0 * k) = c * k + f y | b c : β€
f : β€ β β€
h : good b c f
y k : β€
h0 : f (y + f 0 * k) = c * k + f (y + f 0 * 0)
β’ f (y + f 0 * k) = c * k + f y | Please generate a tactic in lean4 to solve the state.
STATE:
b c : β€
f : β€ β β€
h : good b c f
y k : β€
h0 : β (n : β€), f (y + f 0 * (n + 1)) = c + f (y + f 0 * n)
β’ f (y + f 0 * k) = c * k + f y
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_mul_map_zero_add | [61, 1] | [65, 33] | rwa [mul_zero, add_zero] at h0 | b c : β€
f : β€ β β€
h : good b c f
y k : β€
h0 : f (y + f 0 * k) = c * k + f (y + f 0 * 0)
β’ f (y + f 0 * k) = c * k + f y | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
b c : β€
f : β€ β β€
h : good b c f
y k : β€
h0 : f (y + f 0 * k) = c * k + f (y + f 0 * 0)
β’ f (y + f 0 * k) = c * k + f y
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_mul_map_zero_add | [61, 1] | [65, 33] | rw [mul_add_one (Ξ± := β€), β add_assoc, map_map_zero_add h] | b c : β€
f : β€ β β€
h : good b c f
y k n : β€
β’ f (y + f 0 * (n + 1)) = c + f (y + f 0 * n) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
b c : β€
f : β€ β β€
h : good b c f
y k n : β€
β’ f (y + f 0 * (n + 1)) = c + f (y + f 0 * n)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_b_pow_mul_eq_of_map_eq | [67, 1] | [74, 45] | rwa [pow_zero, one_mul, one_mul] | b c : β€
f : β€ β β€
h : good b c f
x y : β€
h0 : f x = f y
β’ f (b ^ 0 * x) = f (b ^ 0 * y) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
b c : β€
f : β€ β β€
h : good b c f
x y : β€
h0 : f x = f y
β’ f (b ^ 0 * x) = f (b ^ 0 * y)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_b_pow_mul_eq_of_map_eq | [67, 1] | [74, 45] | rw [pow_succ', mul_assoc, mul_assoc] | b c : β€
f : β€ β β€
h : good b c f
x y : β€
h0 : f x = f y
k : β
β’ f (b ^ (k + 1) * x) = f (b ^ (k + 1) * y) | b c : β€
f : β€ β β€
h : good b c f
x y : β€
h0 : f x = f y
k : β
β’ f (b * (b ^ k * x)) = f (b * (b ^ k * y)) | Please generate a tactic in lean4 to solve the state.
STATE:
b c : β€
f : β€ β β€
h : good b c f
x y : β€
h0 : f x = f y
k : β
β’ f (b ^ (k + 1) * x) = f (b ^ (k + 1) * y)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_b_pow_mul_eq_of_map_eq | [67, 1] | [74, 45] | have h1 := h (b ^ k * y) 0 | b c : β€
f : β€ β β€
h : good b c f
x y : β€
h0 : f x = f y
k : β
β’ f (b * (b ^ k * x)) = f (b * (b ^ k * y)) | b c : β€
f : β€ β β€
h : good b c f
x y : β€
h0 : f x = f y
k : β
h1 : f (0 + f (b ^ k * y)) - f 0 = f (b * (b ^ k * y)) - f (b ^ k * y) + c
β’ f (b * (b ^ k * x)) = f (b * (b ^ k * y)) | Please generate a tactic in lean4 to solve the state.
STATE:
b c : β€
f : β€ β β€
h : good b c f
x y : β€
h0 : f x = f y
k : β
β’ f (b * (b ^ k * x)) = f (b * (b ^ k * y))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_b_pow_mul_eq_of_map_eq | [67, 1] | [74, 45] | rwa [β map_b_pow_mul_eq_of_map_eq h0 k,
h, add_left_inj, sub_left_inj] at h1 | b c : β€
f : β€ β β€
h : good b c f
x y : β€
h0 : f x = f y
k : β
h1 : f (0 + f (b ^ k * y)) - f 0 = f (b * (b ^ k * y)) - f (b ^ k * y) + c
β’ f (b * (b ^ k * x)) = f (b * (b ^ k * y)) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
b c : β€
f : β€ β β€
h : good b c f
x y : β€
h0 : f x = f y
k : β
h1 : f (0 + f (b ^ k * y)) - f 0 = f (b * (b ^ k * y)) - f (b ^ k * y) + c
β’ f (b * (b ^ k * x)) = f (b * (b ^ k * y))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_is_linear | [78, 1] | [103, 43] | suffices f.Injective by
intro n
have h2 := eq_add_of_sub_eq' (h 0 (b * n))
rw [mul_zero, sub_self, zero_add, β sub_left_inj (a := f n),
add_sub_right_comm, β h n n, sub_left_inj] at h2
rw [sub_one_mul, β add_sub_right_comm, this h2, add_sub_cancel_left] | b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
β’ β (n : β€), f n = (b - 1) * n + f 0 | b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
β’ Function.Injective f | 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
β’ β (n : β€), f n = (b - 1) * n + f 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_is_linear | [78, 1] | [103, 43] | have h2 : f 0 β 0 := Ξ» h2 β¦ by
have h3 := map_map_zero_add h 0
rw [zero_add, h2, h2, add_zero] at h3
exact h1 h3.symm | b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
β’ Function.Injective f | b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
β’ Function.Injective f | 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
β’ Function.Injective f
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_is_linear | [78, 1] | [103, 43] | obtain β¨m, n, h3, h4β© := exists_ne_pow_eq h2 b | b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
β’ Function.Injective f | case intro.intro.intro
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
m n : β
h3 : m β n
h4 : b ^ m % f 0 = b ^ n % f 0
β’ Function.Injective f | 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
h2 : f 0 β 0
β’ Function.Injective f
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_is_linear | [78, 1] | [103, 43] | rw [Int.emod_eq_emod_iff_emod_sub_eq_zero, β Int.dvd_iff_emod_eq_zero] at h4 | case intro.intro.intro
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
m n : β
h3 : m β n
h4 : b ^ m % f 0 = b ^ n % f 0
β’ Function.Injective f | case intro.intro.intro
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
m n : β
h3 : m β n
h4 : f 0 β£ b ^ m - b ^ n
β’ Function.Injective f | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
m n : β
h3 : m β n
h4 : b ^ m % f 0 = b ^ n % f 0
β’ Function.Injective f
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_is_linear | [78, 1] | [103, 43] | rcases h4 with β¨N, h4β© | case intro.intro.intro
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
m n : β
h3 : m β n
h4 : f 0 β£ b ^ m - b ^ n
β’ Function.Injective f | case intro.intro.intro.intro
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
m n : β
h3 : m β n
N : β€
h4 : b ^ m - b ^ n = f 0 * N
β’ Function.Injective f | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
m n : β
h3 : m β n
h4 : f 0 β£ b ^ m - b ^ n
β’ Function.Injective f
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_is_linear | [78, 1] | [103, 43] | intro x y h5 | case intro.intro.intro.intro
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
m n : β
h3 : m β n
N : β€
h4 : b ^ m - b ^ n = f 0 * N
β’ Function.Injective f | case intro.intro.intro.intro
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
m n : β
h3 : m β n
N : β€
h4 : b ^ m - b ^ n = f 0 * N
x y : β€
h5 : f x = f y
β’ x = y | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro.intro
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
m n : β
h3 : m β n
N : β€
h4 : b ^ m - b ^ n = f 0 * N
β’ Function.Injective f
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2014/A4/A4.lean | IMOSL.IMO2014A4.map_is_linear | [78, 1] | [103, 43] | apply map_b_pow_mul_eq_of_map_eq h at h5 | case intro.intro.intro.intro
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
m n : β
h3 : m β n
N : β€
h4 : b ^ m - b ^ n = f 0 * N
x y : β€
h5 : f x = f y
β’ x = y | case intro.intro.intro.intro
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
m n : β
h3 : m β n
N : β€
h4 : b ^ m - b ^ n = f 0 * N
x y : β€
h5 : β (k : β), f (b ^ k * x) = f (b ^ k * y)
β’ x = y | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro.intro
b c : β€
f : β€ β β€
h : good b c f
h0 : 1 < b.natAbs
h1 : c β 0
h2 : f 0 β 0
m n : β
h3 : m β n
N : β€
h4 : b ^ m - b ^ n = f 0 * N
x y : β€
h5 : f x = f y
β’ x = y
TACTIC:
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.