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/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.f_lt_f_of_g | [68, 1] | [75, 29] | rw [Rat.div_lt_div_iff_mul_lt_mul (X a) (X b), β Nat.cast_mul, β Nat.cast_mul] | case succ.succ
a b : β
h : g (a + 1) * (b + 1) < g (b + 1) * (a + 1)
X : β (n : β), 0 < βn.succ
β’ ββ(g (a + 1)) / ββ(a + 1) < ββ(g (b + 1)) / ββ(b + 1) | case succ.succ
a b : β
h : g (a + 1) * (b + 1) < g (b + 1) * (a + 1)
X : β (n : β), 0 < βn.succ
β’ β(g (a + 1) * b.succ) < β(g (b + 1) * a.succ) | Please generate a tactic in lean4 to solve the state.
STATE:
case succ.succ
a b : β
h : g (a + 1) * (b + 1) < g (b + 1) * (a + 1)
X : β (n : β), 0 < βn.succ
β’ ββ(g (a + 1)) / ββ(a + 1) < ββ(g (b + 1)) / ββ(b + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.f_lt_f_of_g | [68, 1] | [75, 29] | exact Int.ofNat_lt.mpr h | case succ.succ
a b : β
h : g (a + 1) * (b + 1) < g (b + 1) * (a + 1)
X : β (n : β), 0 < βn.succ
β’ β(g (a + 1) * b.succ) < β(g (b + 1) * a.succ) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case succ.succ
a b : β
h : g (a + 1) * (b + 1) < g (b + 1) * (a + 1)
X : β (n : β), 0 < βn.succ
β’ β(g (a + 1) * b.succ) < β(g (b + 1) * a.succ)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.f_self_lt_f_succ_of_divisors_card | [77, 1] | [84, 58] | apply f_lt_f_of_g | n : β
h : n β 0
h0 : β k < n, k.succ.divisors.card < n.succ.divisors.card
β’ f n < f n.succ | case h
n : β
h : n β 0
h0 : β k < n, k.succ.divisors.card < n.succ.divisors.card
β’ g n * n.succ < g n.succ * n | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
h : n β 0
h0 : β k < n, k.succ.divisors.card < n.succ.divisors.card
β’ f n < f n.succ
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.f_self_lt_f_succ_of_divisors_card | [77, 1] | [84, 58] | rw [Nat.mul_succ, g_succ, add_mul, add_lt_add_iff_left, g_eq_sum_divisors_card] | case h
n : β
h : n β 0
h0 : β k < n, k.succ.divisors.card < n.succ.divisors.card
β’ g n * n.succ < g n.succ * n | case h
n : β
h : n β 0
h0 : β k < n, k.succ.divisors.card < n.succ.divisors.card
β’ β k β range n, k.succ.divisors.card < n.succ.divisors.card * n | Please generate a tactic in lean4 to solve the state.
STATE:
case h
n : β
h : n β 0
h0 : β k < n, k.succ.divisors.card < n.succ.divisors.card
β’ g n * n.succ < g n.succ * n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.f_self_lt_f_succ_of_divisors_card | [77, 1] | [84, 58] | calc _ < (range n).sum Ξ» _ β¦ n.succ.divisors.card :=
sum_lt_sum_of_nonempty (nonempty_range_iff.mpr h) (Ξ» k h1 β¦ h0 k (mem_range.mp h1))
_ = n.succ.divisors.card * n := by
rw [sum_const, card_range, smul_eq_mul, mul_comm] | case h
n : β
h : n β 0
h0 : β k < n, k.succ.divisors.card < n.succ.divisors.card
β’ β k β range n, k.succ.divisors.card < n.succ.divisors.card * n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h
n : β
h : n β 0
h0 : β k < n, k.succ.divisors.card < n.succ.divisors.card
β’ β k β range n, k.succ.divisors.card < n.succ.divisors.card * n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.f_self_lt_f_succ_of_divisors_card | [77, 1] | [84, 58] | rw [sum_const, card_range, smul_eq_mul, mul_comm] | n : β
h : n β 0
h0 : β k < n, k.succ.divisors.card < n.succ.divisors.card
β’ β x β range n, n.succ.divisors.card = n.succ.divisors.card * n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
h : n β 0
h0 : β k < n, k.succ.divisors.card < n.succ.divisors.card
β’ β x β range n, n.succ.divisors.card = n.succ.divisors.card * n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.final_solution_part1 | [87, 1] | [98, 83] | obtain β¨n, h0, h1β© : β n : β, N < n β§
β k : β, k < n β k.succ.divisors.card < n.succ.divisors.card := by
obtain β¨K, h0β© : β K : β, β k : β, k β€ N β k.succ.divisors.card β€ K :=
β¨Extra.seqMax (Ξ» n β¦ n.succ.divisors.card) N,
Ξ» _ β¦ Extra.le_seqMax_of_le (Ξ» n β¦ n.succ.divisors.card)β©
have h1 := exists_lt_card_divisor_succ K
refine β¨Nat.find h1,
(Nat.lt_find_iff h1 _).mpr Ξ» k h2 β¦ (h0 k h2).not_lt,
Ξ» k h2 β¦ (le_of_not_lt (Nat.find_min h1 h2)).trans_lt (Nat.find_spec h1)β© | N : β
β’ β b β {n | f n < f n.succ}, N < b | case intro.intro
N n : β
h0 : N < n
h1 : β k < n, k.succ.divisors.card < n.succ.divisors.card
β’ β b β {n | f n < f n.succ}, N < b | Please generate a tactic in lean4 to solve the state.
STATE:
N : β
β’ β b β {n | f n < f n.succ}, N < b
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.final_solution_part1 | [87, 1] | [98, 83] | exact β¨n, f_self_lt_f_succ_of_divisors_card (Nat.not_eq_zero_of_lt h0) h1, h0β© | case intro.intro
N n : β
h0 : N < n
h1 : β k < n, k.succ.divisors.card < n.succ.divisors.card
β’ β b β {n | f n < f n.succ}, N < b | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro
N n : β
h0 : N < n
h1 : β k < n, k.succ.divisors.card < n.succ.divisors.card
β’ β b β {n | f n < f n.succ}, N < b
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.final_solution_part1 | [87, 1] | [98, 83] | obtain β¨K, h0β© : β K : β, β k : β, k β€ N β k.succ.divisors.card β€ K :=
β¨Extra.seqMax (Ξ» n β¦ n.succ.divisors.card) N,
Ξ» _ β¦ Extra.le_seqMax_of_le (Ξ» n β¦ n.succ.divisors.card)β© | N : β
β’ β n, N < n β§ β k < n, k.succ.divisors.card < n.succ.divisors.card | case intro
N K : β
h0 : β k β€ N, k.succ.divisors.card β€ K
β’ β n, N < n β§ β k < n, k.succ.divisors.card < n.succ.divisors.card | Please generate a tactic in lean4 to solve the state.
STATE:
N : β
β’ β n, N < n β§ β k < n, k.succ.divisors.card < n.succ.divisors.card
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.final_solution_part1 | [87, 1] | [98, 83] | have h1 := exists_lt_card_divisor_succ K | case intro
N K : β
h0 : β k β€ N, k.succ.divisors.card β€ K
β’ β n, N < n β§ β k < n, k.succ.divisors.card < n.succ.divisors.card | case intro
N K : β
h0 : β k β€ N, k.succ.divisors.card β€ K
h1 : β n, K < n.succ.divisors.card
β’ β n, N < n β§ β k < n, k.succ.divisors.card < n.succ.divisors.card | Please generate a tactic in lean4 to solve the state.
STATE:
case intro
N K : β
h0 : β k β€ N, k.succ.divisors.card β€ K
β’ β n, N < n β§ β k < n, k.succ.divisors.card < n.succ.divisors.card
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.final_solution_part1 | [87, 1] | [98, 83] | refine β¨Nat.find h1,
(Nat.lt_find_iff h1 _).mpr Ξ» k h2 β¦ (h0 k h2).not_lt,
Ξ» k h2 β¦ (le_of_not_lt (Nat.find_min h1 h2)).trans_lt (Nat.find_spec h1)β© | case intro
N K : β
h0 : β k β€ N, k.succ.divisors.card β€ K
h1 : β n, K < n.succ.divisors.card
β’ β n, N < n β§ β k < n, k.succ.divisors.card < n.succ.divisors.card | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case intro
N K : β
h0 : β k β€ N, k.succ.divisors.card β€ K
h1 : β n, K < n.succ.divisors.card
β’ β n, N < n β§ β k < n, k.succ.divisors.card < n.succ.divisors.card
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.f_succ_lt_self_of_succ_prime_large | [100, 1] | [104, 25] | apply f_lt_f_of_g | n : β
h : 6 β€ n
h0 : n.succ.Prime
β’ f n.succ < f n | case h
n : β
h : 6 β€ n
h0 : n.succ.Prime
β’ g n.succ * n < g n * n.succ | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
h : 6 β€ n
h0 : n.succ.Prime
β’ f n.succ < f n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.f_succ_lt_self_of_succ_prime_large | [100, 1] | [104, 25] | rw [g_succ, card_divisors_prime h0, add_mul, Nat.mul_succ, add_lt_add_iff_left] | case h
n : β
h : 6 β€ n
h0 : n.succ.Prime
β’ g n.succ * n < g n * n.succ | case h
n : β
h : 6 β€ n
h0 : n.succ.Prime
β’ 2 * n < g n | Please generate a tactic in lean4 to solve the state.
STATE:
case h
n : β
h : 6 β€ n
h0 : n.succ.Prime
β’ g n.succ * n < g n * n.succ
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.f_succ_lt_self_of_succ_prime_large | [100, 1] | [104, 25] | exact two_mul_lt_g n h | case h
n : β
h : 6 β€ n
h0 : n.succ.Prime
β’ 2 * n < g n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h
n : β
h : 6 β€ n
h0 : n.succ.Prime
β’ 2 * n < g n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.final_solution_part2 | [107, 1] | [114, 59] | obtain β¨n, h, h0, h1β© : β n, 6 β€ n β§ n.succ.Prime β§ N < n := by
rcases (max 6 (N + 1) + 1).exists_infinite_primes with β¨_ | n, h, h0β©
exact absurd h0 Nat.not_prime_zero
rw [Nat.add_le_add_iff_right, max_le_iff] at h
exact β¨n, h.1, h0, h.2β© | N : β
β’ β b β {n | f n.succ < f n}, N < b | case intro.intro.intro
N n : β
h : 6 β€ n
h0 : n.succ.Prime
h1 : N < n
β’ β b β {n | f n.succ < f n}, N < b | Please generate a tactic in lean4 to solve the state.
STATE:
N : β
β’ β b β {n | f n.succ < f n}, N < b
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.final_solution_part2 | [107, 1] | [114, 59] | exact β¨n, f_succ_lt_self_of_succ_prime_large h h0, h1β© | case intro.intro.intro
N n : β
h : 6 β€ n
h0 : n.succ.Prime
h1 : N < n
β’ β b β {n | f n.succ < f n}, N < b | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro
N n : β
h : 6 β€ n
h0 : n.succ.Prime
h1 : N < n
β’ β b β {n | f n.succ < f n}, N < b
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.final_solution_part2 | [107, 1] | [114, 59] | rcases (max 6 (N + 1) + 1).exists_infinite_primes with β¨_ | n, h, h0β© | N : β
β’ β n, 6 β€ n β§ n.succ.Prime β§ N < n | case intro.zero.intro
N : β
h : max 6 (N + 1) + 1 β€ 0
h0 : Nat.Prime 0
β’ β n, 6 β€ n β§ n.succ.Prime β§ N < n
case intro.succ.intro
N n : β
h : max 6 (N + 1) + 1 β€ n + 1
h0 : (n + 1).Prime
β’ β n, 6 β€ n β§ n.succ.Prime β§ N < n | Please generate a tactic in lean4 to solve the state.
STATE:
N : β
β’ β n, 6 β€ n β§ n.succ.Prime β§ N < n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.final_solution_part2 | [107, 1] | [114, 59] | exact absurd h0 Nat.not_prime_zero | case intro.zero.intro
N : β
h : max 6 (N + 1) + 1 β€ 0
h0 : Nat.Prime 0
β’ β n, 6 β€ n β§ n.succ.Prime β§ N < n
case intro.succ.intro
N n : β
h : max 6 (N + 1) + 1 β€ n + 1
h0 : (n + 1).Prime
β’ β n, 6 β€ n β§ n.succ.Prime β§ N < n | case intro.succ.intro
N n : β
h : max 6 (N + 1) + 1 β€ n + 1
h0 : (n + 1).Prime
β’ β n, 6 β€ n β§ n.succ.Prime β§ N < n | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.zero.intro
N : β
h : max 6 (N + 1) + 1 β€ 0
h0 : Nat.Prime 0
β’ β n, 6 β€ n β§ n.succ.Prime β§ N < n
case intro.succ.intro
N n : β
h : max 6 (N + 1) + 1 β€ n + 1
h0 : (n + 1).Prime
β’ β n, 6 β€ n β§ n.succ.Prime β§ N < n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.final_solution_part2 | [107, 1] | [114, 59] | rw [Nat.add_le_add_iff_right, max_le_iff] at h | case intro.succ.intro
N n : β
h : max 6 (N + 1) + 1 β€ n + 1
h0 : (n + 1).Prime
β’ β n, 6 β€ n β§ n.succ.Prime β§ N < n | case intro.succ.intro
N n : β
h : 6 β€ n β§ N + 1 β€ n
h0 : (n + 1).Prime
β’ β n, 6 β€ n β§ n.succ.Prime β§ N < n | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.succ.intro
N n : β
h : max 6 (N + 1) + 1 β€ n + 1
h0 : (n + 1).Prime
β’ β n, 6 β€ n β§ n.succ.Prime β§ N < n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2006/N3/N3.lean | IMOSL.IMO2006N3.final_solution_part2 | [107, 1] | [114, 59] | exact β¨n, h.1, h0, h.2β© | case intro.succ.intro
N n : β
h : 6 β€ n β§ N + 1 β€ n
h0 : (n + 1).Prime
β’ β n, 6 β€ n β§ n.succ.Prime β§ N < n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.succ.intro
N n : β
h : 6 β€ n β§ N + 1 β€ n
h0 : (n + 1).Prime
β’ β n, 6 β€ n β§ n.succ.Prime β§ N < n
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/Extra/ExplicitRings/F4.lean | IMOSL.IMO2012A5.π½β.add_mul | [229, 11] | [230, 58] | rw [π½β.mul_comm, π½β.mul_add, z.mul_comm, z.mul_comm] | x y z : π½β
β’ (x + y) * z = x * z + y * z | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
x y z : π½β
β’ (x + y) * z = x * z + y * z
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_add_cancel_left | [29, 1] | [30, 47] | rw [β add_assoc, add_self_eq_zero, zero_add] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y : M
β’ x + (x + y) = y | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y : M
β’ x + (x + y) = y
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_add_cancel_right | [32, 1] | [33, 45] | rw [add_assoc, add_self_eq_zero, add_zero] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y : M
β’ x + y + y = x | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y : M
β’ x + y + y = x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_add_add_cancel_middle | [35, 1] | [36, 41] | rw [β add_assoc, add_add_cancel_right] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + y + (y + z) = x + z | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + y + (y + z) = x + z
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_comm | [38, 1] | [40, 59] | rw [β add_add_cancel_right (x + y) (y + x),
add_add_add_cancel_middle, add_self_eq_zero, zero_add] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y : M
β’ x + y = y + x | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y : M
β’ x + y = y + x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_add_cancel_middleβ | [42, 1] | [43, 38] | rw [add_comm, add_add_cancel_right] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y : M
β’ x + (y + x) = y | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y : M
β’ x + (y + x) = y
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_add_cancel_middleβ | [45, 1] | [46, 37] | rw [add_comm, add_add_cancel_left] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y : M
β’ x + y + x = y | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y : M
β’ x + y + x = y
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_right_inj | [48, 1] | [49, 86] | rw [β add_add_cancel_left x y, h, add_add_cancel_left] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
h : x + y = x + z
β’ y = z | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
h : x + y = x + z
β’ y = z
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_left_inj | [51, 1] | [52, 43] | rw [add_comm, add_comm y, add_right_inj] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + z = y + z β x = y | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + z = y + z β x = y
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_eq_iff_eq_add | [54, 1] | [55, 53] | rw [β add_left_inj (z := y), add_add_cancel_right] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + y = z β x = z + y | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + y = z β x = z + y
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_eq_iff_eq_add' | [57, 1] | [58, 35] | rw [add_eq_iff_eq_add, add_comm] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + y = z β x = y + z | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + y = z β x = y + z
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_eq_iff_eq_add'' | [60, 1] | [61, 36] | rw [add_comm, add_eq_iff_eq_add'] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + y = z β y = x + z | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + y = z β y = x + z
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_eq_iff_eq_add''' | [63, 1] | [64, 37] | rw [add_eq_iff_eq_add'', add_comm] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + y = z β y = z + x | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + y = z β y = z + x
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_eq_zero_iff_eq | [66, 1] | [67, 35] | rw [add_eq_iff_eq_add, zero_add] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y : M
β’ x + y = 0 β x = y | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y : M
β’ x + y = 0 β x = y
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_add_add_cancel_left | [69, 1] | [70, 43] | rw [β add_assoc, add_add_cancel_middleβ] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + y + (x + z) = y + z | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + y + (x + z) = y + z
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.add_add_add_cancel_right | [72, 1] | [73, 41] | rw [add_assoc, add_add_cancel_middleβ] | M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + z + (y + z) = x + y | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
M : Type u_1
instβΒΉ : AddMonoid M
instβ : CharTwo M
x y z : M
β’ x + z + (y + z) = x + y
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Defs.lean | IMOSL.Extra.CharTwo.sub_eq_add | [93, 1] | [94, 35] | rw [sub_eq_add_neg, neg_eq_self] | G : Type u_1
instβΒΉ : AddGroup G
instβ : CharTwo G
x y : G
β’ x - y = x + y | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
G : Type u_1
instβΒΉ : AddGroup G
instβ : CharTwo G
x y : G
β’ x - y = x + y
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.targetSum_general_lower_bound | [43, 1] | [50, 42] | rw [map_cons, prod_cons, targetSum, pow_add,
length_cons, Nat.factorial_succ, mul_mul_mul_comm] | a : β
l : List β
β’ (map Nat.succ (a :: l)).prod β€ 2 ^ targetSum (a :: l) * (a :: l).length.factorial | a : β
l : List β
β’ a.succ * (map Nat.succ l).prod β€ 2 ^ (a / l.length.succ) * (l.length + 1) * (2 ^ targetSum l * l.length.factorial) | Please generate a tactic in lean4 to solve the state.
STATE:
a : β
l : List β
β’ (map Nat.succ (a :: l)).prod β€ 2 ^ targetSum (a :: l) * (a :: l).length.factorial
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.targetSum_general_lower_bound | [43, 1] | [50, 42] | exact Nat.mul_le_mul (succ_le_mul_two_pow_div a l.length.succ_pos)
(targetSum_general_lower_bound l) | a : β
l : List β
β’ a.succ * (map Nat.succ l).prod β€ 2 ^ (a / l.length.succ) * (l.length + 1) * (2 ^ targetSum l * l.length.factorial) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a : β
l : List β
β’ a.succ * (map Nat.succ l).prod β€ 2 ^ (a / l.length.succ) * (l.length + 1) * (2 ^ targetSum l * l.length.factorial)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.targetSum_perm_iota_n_lower_bound | [52, 1] | [57, 72] | have h0 := targetSum_general_lower_bound l | l : List β
n : β
h : l ~ iota n
β’ n.size β€ targetSum l | l : List β
n : β
h : l ~ iota n
h0 : (map Nat.succ l).prod β€ 2 ^ targetSum l * l.length.factorial
β’ n.size β€ targetSum l | Please generate a tactic in lean4 to solve the state.
STATE:
l : List β
n : β
h : l ~ iota n
β’ n.size β€ targetSum l
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.targetSum_perm_iota_n_lower_bound | [52, 1] | [57, 72] | rw [(h.map Nat.succ).prod_eq, h.length_eq,
prod_map_succ_iota, length_iota] at h0 | l : List β
n : β
h : l ~ iota n
h0 : (map Nat.succ l).prod β€ 2 ^ targetSum l * l.length.factorial
β’ n.size β€ targetSum l | l : List β
n : β
h : l ~ iota n
h0 : (n + 1).factorial β€ 2 ^ targetSum l * n.factorial
β’ n.size β€ targetSum l | Please generate a tactic in lean4 to solve the state.
STATE:
l : List β
n : β
h : l ~ iota n
h0 : (map Nat.succ l).prod β€ 2 ^ targetSum l * l.length.factorial
β’ n.size β€ targetSum l
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.targetSum_perm_iota_n_lower_bound | [52, 1] | [57, 72] | exact Nat.size_le.mpr (Nat.le_of_mul_le_mul_right h0 n.factorial_pos) | l : List β
n : β
h : l ~ iota n
h0 : (n + 1).factorial β€ 2 ^ targetSum l * n.factorial
β’ n.size β€ targetSum l | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
l : List β
n : β
h : l ~ iota n
h0 : (n + 1).factorial β€ 2 ^ targetSum l * n.factorial
β’ n.size β€ targetSum l
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.iota_map_add_append_iota_eq_iota | [81, 1] | [85, 76] | rw [iota_succ, map_cons, cons_append] | n k : β
β’ map n.add (iota (k + 1)) ++ iota n = iota (n + (k + 1)) | n k : β
β’ n.add (k + 1) :: (map n.add (iota k) ++ iota n) = iota (n + (k + 1)) | Please generate a tactic in lean4 to solve the state.
STATE:
n k : β
β’ map n.add (iota (k + 1)) ++ iota n = iota (n + (k + 1))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.iota_map_add_append_iota_eq_iota | [81, 1] | [85, 76] | exact congr_argβ _ rfl (iota_map_add_append_iota_eq_iota n k) | n k : β
β’ n.add (k + 1) :: (map n.add (iota k) ++ iota n) = iota (n + (k + 1)) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n k : β
β’ n.add (k + 1) :: (map n.add (iota k) ++ iota n) = iota (n + (k + 1))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.lowerBoundMk_perm_iota | [87, 1] | [99, 59] | rw [lowerBoundMk_bit0_succ, Nat.bit_false, Nat.bit0_val] | b : Bool
n k : β
h : lowerBoundMk (k + 1) ~ iota (k + 1)
β’ lowerBoundMk (Nat.bit false (k + 1)) ~ iota (Nat.bit false (k + 1)) | b : Bool
n k : β
h : lowerBoundMk (k + 1) ~ iota (k + 1)
β’ map (k + 1).add (iota k) ++ (2 * k + 2) :: lowerBoundMk (k + 1) ~ iota (2 * (k + 1)) | Please generate a tactic in lean4 to solve the state.
STATE:
b : Bool
n k : β
h : lowerBoundMk (k + 1) ~ iota (k + 1)
β’ lowerBoundMk (Nat.bit false (k + 1)) ~ iota (Nat.bit false (k + 1))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.lowerBoundMk_perm_iota | [87, 1] | [99, 59] | refine perm_middle.trans (((h.append_left _).trans ?_).cons _) | b : Bool
n k : β
h : lowerBoundMk (k + 1) ~ iota (k + 1)
β’ map (k + 1).add (iota k) ++ (2 * k + 2) :: lowerBoundMk (k + 1) ~ iota (2 * (k + 1)) | b : Bool
n k : β
h : lowerBoundMk (k + 1) ~ iota (k + 1)
β’ map (k + 1).add (iota k) ++ iota (k + 1) ~ iota (Nat.mul 2 k + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
b : Bool
n k : β
h : lowerBoundMk (k + 1) ~ iota (k + 1)
β’ map (k + 1).add (iota k) ++ (2 * k + 2) :: lowerBoundMk (k + 1) ~ iota (2 * (k + 1))
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.lowerBoundMk_perm_iota | [87, 1] | [99, 59] | rw [iota_map_add_append_iota_eq_iota, add_right_comm, β two_mul] | b : Bool
n k : β
h : lowerBoundMk (k + 1) ~ iota (k + 1)
β’ map (k + 1).add (iota k) ++ iota (k + 1) ~ iota (Nat.mul 2 k + 1) | b : Bool
n k : β
h : lowerBoundMk (k + 1) ~ iota (k + 1)
β’ iota (2 * k + 1) ~ iota (Nat.mul 2 k + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
b : Bool
n k : β
h : lowerBoundMk (k + 1) ~ iota (k + 1)
β’ map (k + 1).add (iota k) ++ iota (k + 1) ~ iota (Nat.mul 2 k + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.lowerBoundMk_perm_iota | [87, 1] | [99, 59] | exact Perm.refl _ | b : Bool
n k : β
h : lowerBoundMk (k + 1) ~ iota (k + 1)
β’ iota (2 * k + 1) ~ iota (Nat.mul 2 k + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
b : Bool
n k : β
h : lowerBoundMk (k + 1) ~ iota (k + 1)
β’ iota (2 * k + 1) ~ iota (Nat.mul 2 k + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.lowerBoundMk_perm_iota | [87, 1] | [99, 59] | rw [lowerBoundMk_bit1, Nat.bit_true, Nat.bit1_val] | b : Bool
nβ n : β
h : lowerBoundMk n ~ iota n
β’ lowerBoundMk (Nat.bit true n) ~ iota (Nat.bit true n) | b : Bool
nβ n : β
h : lowerBoundMk n ~ iota n
β’ map n.add (iota n) ++ (2 * n + 1) :: lowerBoundMk n ~ iota (2 * n + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
b : Bool
nβ n : β
h : lowerBoundMk n ~ iota n
β’ lowerBoundMk (Nat.bit true n) ~ iota (Nat.bit true n)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.lowerBoundMk_perm_iota | [87, 1] | [99, 59] | refine perm_middle.trans (((h.append_left _).trans ?_).cons _) | b : Bool
nβ n : β
h : lowerBoundMk n ~ iota n
β’ map n.add (iota n) ++ (2 * n + 1) :: lowerBoundMk n ~ iota (2 * n + 1) | b : Bool
nβ n : β
h : lowerBoundMk n ~ iota n
β’ map n.add (iota n) ++ iota n ~ iota (2 * n) | Please generate a tactic in lean4 to solve the state.
STATE:
b : Bool
nβ n : β
h : lowerBoundMk n ~ iota n
β’ map n.add (iota n) ++ (2 * n + 1) :: lowerBoundMk n ~ iota (2 * n + 1)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.lowerBoundMk_perm_iota | [87, 1] | [99, 59] | rw [iota_map_add_append_iota_eq_iota, β two_mul] | b : Bool
nβ n : β
h : lowerBoundMk n ~ iota n
β’ map n.add (iota n) ++ iota n ~ iota (2 * n) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
b : Bool
nβ n : β
h : lowerBoundMk n ~ iota n
β’ map n.add (iota n) ++ iota n ~ iota (2 * n)
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.targetSum_map_add_iota_length_succ | [104, 1] | [112, 50] | rw [iota_succ, map_cons, cons_append, targetSum, length_cons,
targetSum_map_add_iota_length_succ h k, Nat.add_eq_right] | n : β
l : List β
h : l.length = n.succ
k : β
β’ targetSum (map n.add (iota (k + 1)) ++ l) = targetSum l | n : β
l : List β
h : l.length = n.succ
k : β
β’ n.add (k + 1) / (map n.add (iota k) ++ l).length.succ = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
l : List β
h : l.length = n.succ
k : β
β’ targetSum (map n.add (iota (k + 1)) ++ l) = targetSum l
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.targetSum_map_add_iota_length_succ | [104, 1] | [112, 50] | refine Nat.div_eq_of_lt ?_ | n : β
l : List β
h : l.length = n.succ
k : β
β’ n.add (k + 1) / (map n.add (iota k) ++ l).length.succ = 0 | n : β
l : List β
h : l.length = n.succ
k : β
β’ n.add (k + 1) < (map n.add (iota k) ++ l).length.succ | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
l : List β
h : l.length = n.succ
k : β
β’ n.add (k + 1) / (map n.add (iota k) ++ l).length.succ = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.targetSum_map_add_iota_length_succ | [104, 1] | [112, 50] | rw [length_append, length_map, length_iota, h] | n : β
l : List β
h : l.length = n.succ
k : β
β’ n.add (k + 1) < (map n.add (iota k) ++ l).length.succ | n : β
l : List β
h : l.length = n.succ
k : β
β’ n.add (k + 1) < (k + n.succ).succ | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
l : List β
h : l.length = n.succ
k : β
β’ n.add (k + 1) < (map n.add (iota k) ++ l).length.succ
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.lowerBoundMk_targetSum | [114, 1] | [137, 78] | have h0 : ((2 * k + 2) :: lowerBoundMk (k + 1)).length = (k + 1).succ :=
congr_arg Nat.succ (lowerBoundMk_length (k + 1)) | X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
n k : β
h : targetSum (lowerBoundMk (k + 1)) = (k + 1).size
β’ targetSum (lowerBoundMk (Nat.bit false (k + 1))) = (Nat.bit false (k + 1)).size | X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
n k : β
h : targetSum (lowerBoundMk (k + 1)) = (k + 1).size
h0 : ((2 * k + 2) :: lowerBoundMk (k + 1)).length = (k + 1).succ
β’ targetSum (lowerBoundMk (Nat.bit false (k + 1))) = (Nat.bit false (k + 1)).size | Please generate a tactic in lean4 to solve the state.
STATE:
X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
n k : β
h : targetSum (lowerBoundMk (k + 1)) = (k + 1).size
β’ targetSum (lowerBoundMk (Nat.bit false (k + 1))) = (Nat.bit false (k + 1)).size
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.lowerBoundMk_targetSum | [114, 1] | [137, 78] | rw [lowerBoundMk_bit0_succ, Nat.bit_false, Nat.size_bit0 k.succ_ne_zero,
(k + 1).size.succ_eq_add_one, targetSum_map_add_iota_length_succ h0,
targetSum, h0, h, add_comm, Nat.add_right_inj] | X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
n k : β
h : targetSum (lowerBoundMk (k + 1)) = (k + 1).size
h0 : ((2 * k + 2) :: lowerBoundMk (k + 1)).length = (k + 1).succ
β’ targetSum (lowerBoundMk (Nat.bit false (k + 1))) = (Nat.bit false (k + 1)).size | X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
n k : β
h : targetSum (lowerBoundMk (k + 1)) = (k + 1).size
h0 : ((2 * k + 2) :: lowerBoundMk (k + 1)).length = (k + 1).succ
β’ (2 * k + 2) / (k + 1).succ = 1 | Please generate a tactic in lean4 to solve the state.
STATE:
X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
n k : β
h : targetSum (lowerBoundMk (k + 1)) = (k + 1).size
h0 : ((2 * k + 2) :: lowerBoundMk (k + 1)).length = (k + 1).succ
β’ targetSum (lowerBoundMk (Nat.bit false (k + 1))) = (Nat.bit false (k + 1)).size
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.lowerBoundMk_targetSum | [114, 1] | [137, 78] | exact Nat.div_eq_of_lt_le
((one_mul _).trans_le <| Nat.add_le_add_right (X0 _) 2)
(Nat.mul_lt_mul_of_pos_left (k + 1).lt_succ_self X) | X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
n k : β
h : targetSum (lowerBoundMk (k + 1)) = (k + 1).size
h0 : ((2 * k + 2) :: lowerBoundMk (k + 1)).length = (k + 1).succ
β’ (2 * k + 2) / (k + 1).succ = 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
n k : β
h : targetSum (lowerBoundMk (k + 1)) = (k + 1).size
h0 : ((2 * k + 2) :: lowerBoundMk (k + 1)).length = (k + 1).succ
β’ (2 * k + 2) / (k + 1).succ = 1
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.lowerBoundMk_targetSum | [114, 1] | [137, 78] | have h0 : ((2 * n + 1) :: lowerBoundMk n).length = n.succ :=
congr_arg Nat.succ (lowerBoundMk_length n) | X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
nβ n : β
h : targetSum (lowerBoundMk n) = n.size
β’ targetSum (lowerBoundMk (Nat.bit true n)) = (Nat.bit true n).size | X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
nβ n : β
h : targetSum (lowerBoundMk n) = n.size
h0 : ((2 * n + 1) :: lowerBoundMk n).length = n.succ
β’ targetSum (lowerBoundMk (Nat.bit true n)) = (Nat.bit true n).size | Please generate a tactic in lean4 to solve the state.
STATE:
X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
nβ n : β
h : targetSum (lowerBoundMk n) = n.size
β’ targetSum (lowerBoundMk (Nat.bit true n)) = (Nat.bit true n).size
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.lowerBoundMk_targetSum | [114, 1] | [137, 78] | rw [lowerBoundMk_bit1, Nat.bit_true, Nat.size_bit1,
targetSum_map_add_iota_length_succ h0, targetSum, h0, h,
n.size.succ_eq_add_one, add_comm, Nat.add_right_inj] | X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
nβ n : β
h : targetSum (lowerBoundMk n) = n.size
h0 : ((2 * n + 1) :: lowerBoundMk n).length = n.succ
β’ targetSum (lowerBoundMk (Nat.bit true n)) = (Nat.bit true n).size | X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
nβ n : β
h : targetSum (lowerBoundMk n) = n.size
h0 : ((2 * n + 1) :: lowerBoundMk n).length = n.succ
β’ (2 * n + 1) / n.succ = 1 | Please generate a tactic in lean4 to solve the state.
STATE:
X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
nβ n : β
h : targetSum (lowerBoundMk n) = n.size
h0 : ((2 * n + 1) :: lowerBoundMk n).length = n.succ
β’ targetSum (lowerBoundMk (Nat.bit true n)) = (Nat.bit true n).size
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2021/A3/A3.lean | IMOSL.IMO2021A3.lowerBoundMk_targetSum | [114, 1] | [137, 78] | exact Nat.div_eq_of_lt_le
((one_mul _).trans_le <| Nat.succ_le_succ (X0 _)) (Nat.le_refl _) | X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
nβ n : β
h : targetSum (lowerBoundMk n) = n.size
h0 : ((2 * n + 1) :: lowerBoundMk n).length = n.succ
β’ (2 * n + 1) / n.succ = 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
X : 0 < Nat.succ 1
X0 : β (m : β), m β€ 2 * m
b : Bool
nβ n : β
h : targetSum (lowerBoundMk n) = n.size
h0 : ((2 * n + 1) :: lowerBoundMk n).length = n.succ
β’ (2 * n + 1) / n.succ = 1
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:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | have h1 := h0 x (f 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)
h0 : β (t x : R), 0 β€ (f t - x) * f x + (f x - t) * f t
x : R
β’ x * 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
h1 : 0 β€ (f x - (f x + f x)) * f (f x + f x) + (f (f x + f x) - x) * f x
β’ x * 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 * f x β€ 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | 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
h1 : 0 β€ (f x - (f x + f x)) * f (f x + f x) + (f (f x + f x) - x) * f x
β’ x * f x β€ 0 | 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), 0 β€ (f t - x) * f x + (f x - t) * f t
x : R
h1 : 0 β€ (f x - (f x + f x)) * f (f x + f x) + (f (f x + f x) - x) * f x
β’ x * 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 := h 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
β’ 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)
h0 : β (x : R), x * f x β€ 0
x : R
h1 : f (x + 0) β€ 0 * f x + f (f 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)
h0 : β (x : R), x * f x β€ 0
x : R
β’ 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] | 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
h1 : f (x + 0) β€ 0 * f x + f (f x)
β’ f x β€ f (f 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)
h0 : β (x : R), x * f x β€ 0
x : R
h1 : f (x + 0) β€ 0 * f x + f (f 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] | exact h0 x h2 | 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 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
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
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | apply (h1 0).antisymm | 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 | 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
β’ 0 β€ f 0 | Please generate a tactic in lean4 to solve the state.
STATE:
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
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | specialize h (-1) 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
β’ 0 β€ f 0 | case inr
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h1 : β (x : R), f x β€ 0
h0 : β (x : R), x < 0 β f x = 0
h2 : 0 β€ 0
h : f (-1 + 0) β€ 0 * f (-1) + f (f (-1))
β’ 0 β€ f 0 | Please generate a tactic in lean4 to solve the state.
STATE:
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
β’ 0 β€ f 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2011/A6/A6.lean | IMOSL.IMO2011A6.final_solution | [22, 1] | [48, 66] | rwa [add_zero, zero_mul, zero_add, h0 _ neg_one_lt_zero] at h | case inr
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h1 : β (x : R), f x β€ 0
h0 : β (x : R), x < 0 β f x = 0
h2 : 0 β€ 0
h : f (-1 + 0) β€ 0 * f (-1) + f (f (-1))
β’ 0 β€ f 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
R : Type u_1
instβ : LinearOrderedCommRing R
f : R β R
h1 : β (x : R), f x β€ 0
h0 : β (x : R), x < 0 β f x = 0
h2 : 0 β€ 0
h : f (-1 + 0) β€ 0 * f (-1) + f (f (-1))
β’ 0 β€ f 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/Extra/ExplicitRings/F2e.lean | IMOSL.IMO2012A5.π½βΞ΅.add_mul | [229, 11] | [230, 60] | rw [π½βΞ΅.mul_comm, π½βΞ΅.mul_add, z.mul_comm, z.mul_comm] | x y z : π½βΞ΅
β’ (x + y) * z = x * z + y * z | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
x y z : π½βΞ΅
β’ (x + y) * z = x * z + y * z
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/Extra/ExplicitRings/F2e.lean | IMOSL.IMO2012A5.π½βΞ΅.castRingHom_injective | [290, 1] | [297, 74] | rw [β one_mul r, h1, zero_mul] | R : Type u_1
instβΒΉ : NonAssocSemiring R
instβ : CharTwo R
r : R
h : r * r = 0
h0 : r β 0
h1 : 1 = 0
β’ r = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβΒΉ : NonAssocSemiring R
instβ : CharTwo R
r : R
h : r * r = 0
h0 : r β 0
h1 : 1 = 0
β’ r = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/IMO2012/A5/Extra/ExplicitRings/F2e.lean | IMOSL.IMO2012A5.π½βΞ΅.castRingHom_injective | [290, 1] | [297, 74] | rwa [add_eq_zero_iff_eq.mp h2, one_mul] at h | R : Type u_1
instβΒΉ : NonAssocSemiring R
instβ : CharTwo R
r : R
h : r * r = 0
h0 : r β 0
h1 : 1 β 0
x : π½βΞ΅
h2 : (castRingHom h) Y = 0
β’ 1 = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
instβΒΉ : NonAssocSemiring R
instβ : CharTwo R
r : R
h : r * r = 0
h0 : r β 0
h1 : 1 β 0
x : π½βΞ΅
h2 : (castRingHom h) Y = 0
β’ 1 = 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Hom.lean | IMOSL.Extra.CharTwo.pullback_of_inj | [22, 1] | [23, 71] | rw [Ο.map_add, Ο.map_zero, CharTwo.add_self_eq_zero] | R : Type u_1
R' : Type u_2
instβΒ² : AddMonoid R
instβΒΉ : CharTwo R
instβ : AddMonoid R'
Ο : R' β+ R
h : Function.Injective βΟ
x : R'
β’ Ο (x + x) = Ο 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_1
R' : Type u_2
instβΒ² : AddMonoid R
instβΒΉ : CharTwo R
instβ : AddMonoid R'
Ο : R' β+ R
h : Function.Injective βΟ
x : R'
β’ Ο (x + x) = Ο 0
TACTIC:
|
https://github.com/mortarsanjaya/IMOSLLean4.git | be127d301e366822fbeeeda49d9fd5b998fb4eb5 | IMOSLLean4/Extra/CharTwo/Hom.lean | IMOSL.Extra.CharTwo.forward_of_surj | [25, 1] | [26, 86] | rw [β h0, β Ο.map_add, add_self_eq_zero, Ο.map_zero] | R : Type u_2
R' : Type u_1
instβΒ² : AddMonoid R
instβΒΉ : CharTwo R
instβ : AddMonoid R'
Ο : R β+ R'
h : Function.Surjective βΟ
x : R'
c : R
h0 : Ο c = x
β’ x + x = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
R : Type u_2
R' : Type u_1
instβΒ² : AddMonoid R
instβΒΉ : CharTwo R
instβ : AddMonoid R'
Ο : R β+ R'
h : Function.Surjective βΟ
x : R'
c : R
h0 : Ο c = x
β’ x + x = 0
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:
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.