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/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.tn_turanNumb' | [76, 1] | [119, 111] | set c := t + 1 - b | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
n3 : t + 1 - b + b = t + 1
n1 : (t + 1 - b) * a + b * (a + 1) = n
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
β’ a ^ 2 * (t + 1 - b) + b * (a + 1) ^ 2 +
(a ^ 2 * ((t + 1 - b) * (t + 1 - b - 1)) + 2 * (a * (a + 1) * b * (t + 1 - b)) + (a + 1) ^ 2 * (b * (b - 1))) =
((t + 1 - b) * a) ^ 2 + 2 * ((t + 1 - b) * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
β’ a ^ 2 * c + b * (a + 1) ^ 2 + (a ^ 2 * (c * (c - 1)) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
n3 : t + 1 - b + b = t + 1
n1 : (t + 1 - b) * a + b * (a + 1) = n
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
β’ a ^ 2 * (t + 1 - b) + b * (a + 1) ^ 2 +
(a ^ 2 * ((t + 1 - b) * (t + 1 - b - 1)) + 2 * (a * (a + 1) * b * (t + 1 - b)) + (a + 1) ^ 2 * (b * (b - 1))) =
((t + 1 - b) * a) ^ 2 + 2 * ((t + 1 - b) * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.tn_turanNumb' | [76, 1] | [119, 111] | have hc2 : c - 1 + 1 = c := tsub_add_cancel_of_le (tsub_pos_of_lt n2) | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
β’ a ^ 2 * c + b * (a + 1) ^ 2 + (a ^ 2 * (c * (c - 1)) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
β’ a ^ 2 * c + b * (a + 1) ^ 2 + (a ^ 2 * (c * (c - 1)) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
β’ a ^ 2 * c + b * (a + 1) ^ 2 + (a ^ 2 * (c * (c - 1)) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.tn_turanNumb' | [76, 1] | [119, 111] | have hb2 : b - 1 + 1 = b := tsub_add_cancel_of_le hb' | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
β’ a ^ 2 * c + b * (a + 1) ^ 2 + (a ^ 2 * (c * (c - 1)) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ a ^ 2 * c + b * (a + 1) ^ 2 + (a ^ 2 * (c * (c - 1)) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
β’ a ^ 2 * c + b * (a + 1) ^ 2 + (a ^ 2 * (c * (c - 1)) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.tn_turanNumb' | [76, 1] | [119, 111] | rw [add_comm (a^2*c),add_assoc,βadd_assoc (a^2*c),βadd_assoc (a^2*c),β mul_add (a^2)] | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ a ^ 2 * c + b * (a + 1) ^ 2 + (a ^ 2 * (c * (c - 1)) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ b * (a + 1) ^ 2 + (a ^ 2 * (c + c * (c - 1)) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ a ^ 2 * c + b * (a + 1) ^ 2 + (a ^ 2 * (c * (c - 1)) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.tn_turanNumb' | [76, 1] | [119, 111] | nth_rw 1 [βmul_one c,βmul_add c,add_comm _ (c-1),hc2] | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ b * (a + 1) ^ 2 + (a ^ 2 * (c + c * (c - 1)) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ b * (a + 1) ^ 2 + (a ^ 2 * (c * c) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ b * (a + 1) ^ 2 + (a ^ 2 * (c + c * (c - 1)) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.tn_turanNumb' | [76, 1] | [119, 111] | rw [add_comm (b*(a+1)^2),add_assoc,mul_comm b ((a+1)^2),βmul_add ((a+1)^2)] | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ b * (a + 1) ^ 2 + (a ^ 2 * (c * c) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ a ^ 2 * (c * c) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1) + b) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ b * (a + 1) ^ 2 + (a ^ 2 * (c * c) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1))) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.tn_turanNumb' | [76, 1] | [119, 111] | nth_rw 4 [βmul_one b] | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ a ^ 2 * (c * c) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1) + b) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ a ^ 2 * (c * c) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1) + b * 1) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ a ^ 2 * (c * c) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1) + b) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.tn_turanNumb' | [76, 1] | [119, 111] | rw[βmul_add b,hb2,mul_comm c a,mul_pow,βpow_two c,add_assoc,add_assoc,
add_right_inj,mul_pow,mul_add,pow_two,mul_add,mul_one,add_mul,mul_one,pow_two,mul_add,add_mul,
add_mul,add_mul,add_mul,one_mul,mul_one,add_mul,one_mul,mul_add,mul_add,mul_add,mul_add,mul_add,mul_one,
β add_assoc,β add_assoc,β add_assoc,β add_assoc,βadd_assoc,add_left_inj,mul_comm a (b*b),add_left_inj,
βadd_assoc,add_left_inj,mul_comm (b*b), add_left_inj,mul_assoc 2 _ b,mul_assoc a c b,mul_comm c b,
βmul_assoc a,add_left_inj,mul_assoc 2,mul_assoc,mul_assoc,mul_assoc,mul_comm b a,mul_comm c,mul_assoc] | case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ a ^ 2 * (c * c) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1) + b * 1) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inr.inr
t n : β
t1 : t + 1 - 1 = t
a : β := n / (t + 1)
b : β := n % (t + 1)
n2 : b < t + 1
hb : b = n % (t + 1)
hn : n > 0
hb' : b > 0
c : β := t + 1 - b
n3 : c + b = t + 1
n1 : c * a + b * (a + 1) = n
hc2 : c - 1 + 1 = c
hb2 : b - 1 + 1 = b
β’ a ^ 2 * (c * c) + 2 * (a * (a + 1) * b * c) + (a + 1) ^ 2 * (b * (b - 1) + b * 1) =
(c * a) ^ 2 + 2 * (c * a) * (b * (a + 1)) + (b * (a + 1)) ^ 2
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.tn_turanNumb'_2 | [122, 1] | [125, 40] | rw [β tn_turanNumb' t n] | t n : β
β’ 2 * turanNumb t n = n ^ 2 - turanNumb' t n | t n : β
β’ 2 * turanNumb t n = turanNumb' t n + 2 * turanNumb t n - turanNumb' t n | Please generate a tactic in lean4 to solve the state.
STATE:
t n : β
β’ 2 * turanNumb t n = n ^ 2 - turanNumb' t n
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.tn_turanNumb'_2 | [122, 1] | [125, 40] | exact (add_tsub_cancel_left _ _).symm | t n : β
β’ 2 * turanNumb t n = turanNumb' t n + 2 * turanNumb t n - turanNumb' t n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
t n : β
β’ 2 * turanNumb t n = turanNumb' t n + 2 * turanNumb t n - turanNumb' t n
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.mod_tplus1 | [138, 1] | [151, 27] | have mc : c % (t + 1) = c := mod_eq_of_lt (succ_le_succ hc ) | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : (t + 1) * a + c = (t + 1) * b + d
β’ a = b β§ c = d | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : (t + 1) * a + c = (t + 1) * b + d
mc : c % (t + 1) = c
β’ a = b β§ c = d | Please generate a tactic in lean4 to solve the state.
STATE:
c t d a b : β
hc : c β€ t
hd : d β€ t
ht : (t + 1) * a + c = (t + 1) * b + d
β’ a = b β§ c = d
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.mod_tplus1 | [138, 1] | [151, 27] | have md : d % (t + 1) = d := mod_eq_of_lt (succ_le_succ hd) | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : (t + 1) * a + c = (t + 1) * b + d
mc : c % (t + 1) = c
β’ a = b β§ c = d | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : (t + 1) * a + c = (t + 1) * b + d
mc : c % (t + 1) = c
md : d % (t + 1) = d
β’ a = b β§ c = d | Please generate a tactic in lean4 to solve the state.
STATE:
c t d a b : β
hc : c β€ t
hd : d β€ t
ht : (t + 1) * a + c = (t + 1) * b + d
mc : c % (t + 1) = c
β’ a = b β§ c = d
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.mod_tplus1 | [138, 1] | [151, 27] | rw [add_comm, add_comm _ d] at ht | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : (t + 1) * a + c = (t + 1) * b + d
mc : c % (t + 1) = c
md : d % (t + 1) = d
β’ a = b β§ c = d | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
β’ a = b β§ c = d | Please generate a tactic in lean4 to solve the state.
STATE:
c t d a b : β
hc : c β€ t
hd : d β€ t
ht : (t + 1) * a + c = (t + 1) * b + d
mc : c % (t + 1) = c
md : d % (t + 1) = d
β’ a = b β§ c = d
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.mod_tplus1 | [138, 1] | [151, 27] | have hmtl : (c + (t + 1) * a) % (t + 1) = c % (t + 1) := add_mul_mod_self_left c (t + 1) a | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
β’ a = b β§ c = d | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (c + (t + 1) * a) % (t + 1) = c % (t + 1)
β’ a = b β§ c = d | Please generate a tactic in lean4 to solve the state.
STATE:
c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
β’ a = b β§ c = d
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.mod_tplus1 | [138, 1] | [151, 27] | have hmtr : (d + (t + 1) * b) % (t + 1) = d % (t + 1) := add_mul_mod_self_left d (t + 1) b | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (c + (t + 1) * a) % (t + 1) = c % (t + 1)
β’ a = b β§ c = d | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (c + (t + 1) * a) % (t + 1) = c % (t + 1)
hmtr : (d + (t + 1) * b) % (t + 1) = d % (t + 1)
β’ a = b β§ c = d | Please generate a tactic in lean4 to solve the state.
STATE:
c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (c + (t + 1) * a) % (t + 1) = c % (t + 1)
β’ a = b β§ c = d
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.mod_tplus1 | [138, 1] | [151, 27] | rw [mc,ht] at hmtl | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (c + (t + 1) * a) % (t + 1) = c % (t + 1)
hmtr : (d + (t + 1) * b) % (t + 1) = d % (t + 1)
β’ a = b β§ c = d | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : (d + (t + 1) * b) % (t + 1) = d % (t + 1)
β’ a = b β§ c = d | Please generate a tactic in lean4 to solve the state.
STATE:
c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (c + (t + 1) * a) % (t + 1) = c % (t + 1)
hmtr : (d + (t + 1) * b) % (t + 1) = d % (t + 1)
β’ a = b β§ c = d
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.mod_tplus1 | [138, 1] | [151, 27] | rw [md,hmtl] at hmtr | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : (d + (t + 1) * b) % (t + 1) = d % (t + 1)
β’ a = b β§ c = d | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
β’ a = b β§ c = d | Please generate a tactic in lean4 to solve the state.
STATE:
c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : (d + (t + 1) * b) % (t + 1) = d % (t + 1)
β’ a = b β§ c = d
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.mod_tplus1 | [138, 1] | [151, 27] | refine' β¨_, hmtrβ© | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
β’ a = b β§ c = d | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
β’ a = b | Please generate a tactic in lean4 to solve the state.
STATE:
c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
β’ a = b β§ c = d
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.mod_tplus1 | [138, 1] | [151, 27] | rw [hmtr] at ht | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
β’ a = b | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : d + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
β’ a = b | Please generate a tactic in lean4 to solve the state.
STATE:
c t d a b : β
hc : c β€ t
hd : d β€ t
ht : c + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
β’ a = b
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.mod_tplus1 | [138, 1] | [151, 27] | rw [add_right_inj, mul_eq_mul_left_iff] at ht | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : d + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
β’ a = b | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : a = b β¨ t + 1 = 0
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
β’ a = b | Please generate a tactic in lean4 to solve the state.
STATE:
c t d a b : β
hc : c β€ t
hd : d β€ t
ht : d + (t + 1) * a = d + (t + 1) * b
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
β’ a = b
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.mod_tplus1 | [138, 1] | [151, 27] | cases ht with
| inl h => exact h
| inr h => contradiction | c t d a b : β
hc : c β€ t
hd : d β€ t
ht : a = b β¨ t + 1 = 0
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
β’ a = b | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
c t d a b : β
hc : c β€ t
hd : d β€ t
ht : a = b β¨ t + 1 = 0
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
β’ a = b
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.mod_tplus1 | [138, 1] | [151, 27] | exact h | case inl
c t d a b : β
hc : c β€ t
hd : d β€ t
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
h : a = b
β’ a = b | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inl
c t d a b : β
hc : c β€ t
hd : d β€ t
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
h : a = b
β’ a = b
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.mod_tplus1 | [138, 1] | [151, 27] | contradiction | case inr
c t d a b : β
hc : c β€ t
hd : d β€ t
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
h : t + 1 = 0
β’ a = b | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
c t d a b : β
hc : c β€ t
hd : d β€ t
mc : c % (t + 1) = c
md : d % (t + 1) = d
hmtl : (d + (t + 1) * b) % (t + 1) = c
hmtr : c = d
h : t + 1 = 0
β’ a = b
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.small_nonempty | [178, 1] | [187, 47] | rw [smallParts] | t : β
P : β β β
h : Balanced t P
β’ Finset.Nonempty (smallParts h) | t : β
P : β β β
h : Balanced t P
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1))) | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
β’ Finset.Nonempty (smallParts h)
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.small_nonempty | [178, 1] | [187, 47] | have nem : ((range (t + 1)).image fun i => P i).Nonempty :=
(Nonempty.image_iff _).mpr nonempty_range_succ | t : β
P : β β β
h : Balanced t P
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1))) | t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1))) | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1)))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.small_nonempty | [178, 1] | [187, 47] | set a : β := min' ((range (t + 1)).image fun i => P i) nem with ha | t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1))) | t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1))) | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1)))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.small_nonempty | [178, 1] | [187, 47] | have ain := min'_mem ((range (t + 1)).image fun i => P i) nem | t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1))) | t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
ain : min' (image (fun i => P i) (range (t + 1))) nem β image (fun i => P i) (range (t + 1))
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1))) | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1)))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.small_nonempty | [178, 1] | [187, 47] | rw [β ha, mem_image] at ain | t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
ain : min' (image (fun i => P i) (range (t + 1))) nem β image (fun i => P i) (range (t + 1))
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1))) | t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
ain : β a_1, a_1 β range (t + 1) β§ P a_1 = a
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1))) | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
ain : min' (image (fun i => P i) (range (t + 1))) nem β image (fun i => P i) (range (t + 1))
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1)))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.small_nonempty | [178, 1] | [187, 47] | obtain β¨k, hk1, hk2β© := ain | t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
ain : β a_1, a_1 β range (t + 1) β§ P a_1 = a
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1))) | case intro.intro
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = a
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1))) | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
ain : β a_1, a_1 β range (t + 1) β§ P a_1 = a
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1)))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.small_nonempty | [178, 1] | [187, 47] | use k | case intro.intro
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = a
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1))) | case h
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = a
β’ k β filter (fun i => P i = minP t P) (range (t + 1)) | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = a
β’ Finset.Nonempty (filter (fun i => P i = minP t P) (range (t + 1)))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.small_nonempty | [178, 1] | [187, 47] | rw [mem_filter] | case h
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = a
β’ k β filter (fun i => P i = minP t P) (range (t + 1)) | case h
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = a
β’ k β range (t + 1) β§ P k = minP t P | Please generate a tactic in lean4 to solve the state.
STATE:
case h
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = a
β’ k β filter (fun i => P i = minP t P) (range (t + 1))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.small_nonempty | [178, 1] | [187, 47] | refine' β¨hk1, _β© | case h
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = a
β’ k β range (t + 1) β§ P k = minP t P | case h
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = a
β’ P k = minP t P | Please generate a tactic in lean4 to solve the state.
STATE:
case h
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = a
β’ k β range (t + 1) β§ P k = minP t P
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.small_nonempty | [178, 1] | [187, 47] | rw [ha] at hk2 | case h
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = a
β’ P k = minP t P | case h
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = min' (image (fun i => P i) (range (t + 1))) nem
β’ P k = minP t P | Please generate a tactic in lean4 to solve the state.
STATE:
case h
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = a
β’ P k = minP t P
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.small_nonempty | [178, 1] | [187, 47] | exact hk2 | case h
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = min' (image (fun i => P i) (range (t + 1))) nem
β’ P k = minP t P | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h
t : β
P : β β β
h : Balanced t P
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
k : β
hk1 : k β range (t + 1)
hk2 : P k = min' (image (fun i => P i) (range (t + 1))) nem
β’ P k = minP t P
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | unfold Balanced at h | t : β
P : β β β
h : Balanced t P
β’ β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1 | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
β’ β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
β’ β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | have nem : ((range (t + 1)).image fun i => P i).Nonempty :=
(Nonempty.image_iff _).mpr nonempty_range_succ | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
β’ β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1 | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
β’ β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
β’ β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | set a : β := min' ((range (t + 1)).image fun i => P i) nem with ha | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
β’ β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1 | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
β’ β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
β’ β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | set b : β := max' ((range (t + 1)).image fun i => P i) nem with hb | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
β’ β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1 | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
β’ β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
β’ β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | intro i hi | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
β’ β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1 | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
β’ P i = minP t P β¨ P i = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
β’ β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | have ale : a β€ P i := min'_le ((range (t + 1)).image fun i => P i) (P i) (mem_image_of_mem P hi) | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
β’ P i = minP t P β¨ P i = minP t P + 1 | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
β’ P i = minP t P β¨ P i = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
β’ P i = minP t P β¨ P i = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | have leb : P i β€ b := le_max' ((range (t + 1)).image fun i => P i) (P i) (mem_image_of_mem P hi) | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
β’ P i = minP t P β¨ P i = minP t P + 1 | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
β’ P i = minP t P β¨ P i = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
β’ P i = minP t P β¨ P i = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | have ain := min'_mem ((range (t + 1)).image fun i => P i) nem | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
β’ P i = minP t P β¨ P i = minP t P + 1 | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : min' (image (fun i => P i) (range (t + 1))) nem β image (fun i => P i) (range (t + 1))
β’ P i = minP t P β¨ P i = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
β’ P i = minP t P β¨ P i = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | rw [β ha] at ain | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : min' (image (fun i => P i) (range (t + 1))) nem β image (fun i => P i) (range (t + 1))
β’ P i = minP t P β¨ P i = minP t P + 1 | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
β’ P i = minP t P β¨ P i = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : min' (image (fun i => P i) (range (t + 1))) nem β image (fun i => P i) (range (t + 1))
β’ P i = minP t P β¨ P i = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | have bin := max'_mem ((range (t + 1)).image fun i => P i) nem | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
β’ P i = minP t P β¨ P i = minP t P + 1 | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : max' (image (fun i => P i) (range (t + 1))) nem β image (fun i => P i) (range (t + 1))
β’ P i = minP t P β¨ P i = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
β’ P i = minP t P β¨ P i = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | rw [β hb] at bin | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : max' (image (fun i => P i) (range (t + 1))) nem β image (fun i => P i) (range (t + 1))
β’ P i = minP t P β¨ P i = minP t P + 1 | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
β’ P i = minP t P β¨ P i = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : max' (image (fun i => P i) (range (t + 1))) nem β image (fun i => P i) (range (t + 1))
β’ P i = minP t P β¨ P i = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | have blea : b β€ a + 1 := by
rw [mem_image] at *
obtain β¨k, hk, hakβ© := ain; obtain β¨l, hl, hblβ© := bin
rw [β hak, β hbl]; exact h l hl k hk | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
β’ P i = minP t P β¨ P i = minP t P + 1 | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
β’ P i = minP t P β¨ P i = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
β’ P i = minP t P β¨ P i = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | have ple := le_trans leb blea | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
β’ P i = minP t P β¨ P i = minP t P + 1 | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
β’ P i = minP t P β¨ P i = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
β’ P i = minP t P β¨ P i = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | by_contra h | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
β’ P i = minP t P β¨ P i = minP t P + 1 | t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : Β¬(P i = minP t P β¨ P i = minP t P + 1)
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
β’ P i = minP t P β¨ P i = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | push_neg at h | t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : Β¬(P i = minP t P β¨ P i = minP t P + 1)
β’ False | t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : P i β minP t P β§ P i β minP t P + 1
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : Β¬(P i = minP t P β¨ P i = minP t P + 1)
β’ False
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | have h1 := lt_of_le_of_ne ale h.1.symm | t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : P i β minP t P β§ P i β minP t P + 1
β’ False | t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : P i β minP t P β§ P i β minP t P + 1
h1 : a < P i
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : P i β minP t P β§ P i β minP t P + 1
β’ False
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | have h2 := lt_of_le_of_ne ple h.2 | t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : P i β minP t P β§ P i β minP t P + 1
h1 : a < P i
β’ False | t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : P i β minP t P β§ P i β minP t P + 1
h1 : a < P i
h2 : P i < a + 1
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : P i β minP t P β§ P i β minP t P + 1
h1 : a < P i
β’ False
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | apply lt_irrefl (a+1) | t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : P i β minP t P β§ P i β minP t P + 1
h1 : a < P i
h2 : P i < a + 1
β’ False | t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : P i β minP t P β§ P i β minP t P + 1
h1 : a < P i
h2 : P i < a + 1
β’ a + 1 < a + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : P i β minP t P β§ P i β minP t P + 1
h1 : a < P i
h2 : P i < a + 1
β’ False
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | exact lt_of_le_of_lt h1 h2 | t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : P i β minP t P β§ P i β minP t P + 1
h1 : a < P i
h2 : P i < a + 1
β’ a + 1 < a + 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
hβ : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
blea : b β€ a + 1
ple : P i β€ a + 1
h : P i β minP t P β§ P i β minP t P + 1
h1 : a < P i
h2 : P i < a + 1
β’ a + 1 < a + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | rw [mem_image] at * | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
β’ b β€ a + 1 | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : β a_1, a_1 β range (t + 1) β§ P a_1 = a
bin : β a, a β range (t + 1) β§ P a = b
β’ b β€ a + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : a β image (fun i => P i) (range (t + 1))
bin : b β image (fun i => P i) (range (t + 1))
β’ b β€ a + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | obtain β¨k, hk, hakβ© := ain | t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : β a_1, a_1 β range (t + 1) β§ P a_1 = a
bin : β a, a β range (t + 1) β§ P a = b
β’ b β€ a + 1 | case intro.intro
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
bin : β a, a β range (t + 1) β§ P a = b
k : β
hk : k β range (t + 1)
hak : P k = a
β’ b β€ a + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
ain : β a_1, a_1 β range (t + 1) β§ P a_1 = a
bin : β a, a β range (t + 1) β§ P a = b
β’ b β€ a + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | obtain β¨l, hl, hblβ© := bin | case intro.intro
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
bin : β a, a β range (t + 1) β§ P a = b
k : β
hk : k β range (t + 1)
hak : P k = a
β’ b β€ a + 1 | case intro.intro.intro.intro
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
k : β
hk : k β range (t + 1)
hak : P k = a
l : β
hl : l β range (t + 1)
hbl : P l = b
β’ b β€ a + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
bin : β a, a β range (t + 1) β§ P a = b
k : β
hk : k β range (t + 1)
hak : P k = a
β’ b β€ a + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | rw [β hak, β hbl] | case intro.intro.intro.intro
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
k : β
hk : k β range (t + 1)
hak : P k = a
l : β
hl : l β range (t + 1)
hbl : P l = b
β’ b β€ a + 1 | case intro.intro.intro.intro
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
k : β
hk : k β range (t + 1)
hak : P k = a
l : β
hl : l β range (t + 1)
hbl : P l = b
β’ P l β€ P k + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro.intro
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
k : β
hk : k β range (t + 1)
hak : P k = a
l : β
hl : l β range (t + 1)
hbl : P l = b
β’ b β€ a + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.con_sum | [190, 1] | [211, 52] | exact h l hl k hk | case intro.intro.intro.intro
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
k : β
hk : k β range (t + 1)
hak : P k = a
l : β
hl : l β range (t + 1)
hbl : P l = b
β’ P l β€ P k + 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case intro.intro.intro.intro
t : β
P : β β β
h : β (i : β), i β range (t + 1) β β (j : β), j β range (t + 1) β P i β€ P j + 1
nem : Finset.Nonempty (image (fun i => P i) (range (t + 1)))
a : β := min' (image (fun i => P i) (range (t + 1))) nem
ha : a = min' (image (fun i => P i) (range (t + 1))) nem
b : β := max' (image (fun i => P i) (range (t + 1))) nem
hb : b = max' (image (fun i => P i) (range (t + 1))) nem
i : β
hi : i β range (t + 1)
ale : a β€ P i
leb : P i β€ b
k : β
hk : k β range (t + 1)
hak : P k = a
l : β
hl : l β range (t + 1)
hbl : P l = b
β’ P l β€ P k + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | have := con_sum h | t : β
P : β β β
h : Balanced t P
β’ largeParts h = filter (fun i => Β¬P i = minP t P) (range (t + 1)) | t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
β’ largeParts h = filter (fun i => Β¬P i = minP t P) (range (t + 1)) | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
β’ largeParts h = filter (fun i => Β¬P i = minP t P) (range (t + 1))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | unfold largeParts | t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
β’ largeParts h = filter (fun i => Β¬P i = minP t P) (range (t + 1)) | t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
β’ filter (fun i => P i = minP t P + 1) (range (t + 1)) = filter (fun i => Β¬P i = minP t P) (range (t + 1)) | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
β’ largeParts h = filter (fun i => Β¬P i = minP t P) (range (t + 1))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | ext a | t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
β’ filter (fun i => P i = minP t P + 1) (range (t + 1)) = filter (fun i => Β¬P i = minP t P) (range (t + 1)) | case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β filter (fun i => P i = minP t P + 1) (range (t + 1)) β a β filter (fun i => Β¬P i = minP t P) (range (t + 1)) | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
β’ filter (fun i => P i = minP t P + 1) (range (t + 1)) = filter (fun i => Β¬P i = minP t P) (range (t + 1))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | rw [mem_filter, mem_filter] | case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β filter (fun i => P i = minP t P + 1) (range (t + 1)) β a β filter (fun i => Β¬P i = minP t P) (range (t + 1)) | case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β§ P a = minP t P + 1 β a β range (t + 1) β§ Β¬P a = minP t P | Please generate a tactic in lean4 to solve the state.
STATE:
case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β filter (fun i => P i = minP t P + 1) (range (t + 1)) β a β filter (fun i => Β¬P i = minP t P) (range (t + 1))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | constructor | case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β§ P a = minP t P + 1 β a β range (t + 1) β§ Β¬P a = minP t P | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β§ P a = minP t P + 1 β a β range (t + 1) β§ Β¬P a = minP t P
case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β§ Β¬P a = minP t P β a β range (t + 1) β§ P a = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β§ P a = minP t P + 1 β a β range (t + 1) β§ Β¬P a = minP t P
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | intro h' | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β§ P a = minP t P + 1 β a β range (t + 1) β§ Β¬P a = minP t P | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ P a = minP t P + 1
β’ a β range (t + 1) β§ Β¬P a = minP t P | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β§ P a = minP t P + 1 β a β range (t + 1) β§ Β¬P a = minP t P
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | refine' β¨h'.1, _β© | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ P a = minP t P + 1
β’ a β range (t + 1) β§ Β¬P a = minP t P | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ P a = minP t P + 1
β’ Β¬P a = minP t P | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ P a = minP t P + 1
β’ a β range (t + 1) β§ Β¬P a = minP t P
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | intro h2 | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ P a = minP t P + 1
β’ Β¬P a = minP t P | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ P a = minP t P + 1
h2 : P a = minP t P
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ P a = minP t P + 1
β’ Β¬P a = minP t P
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | rw [h2] at h' | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ P a = minP t P + 1
h2 : P a = minP t P
β’ False | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ minP t P = minP t P + 1
h2 : P a = minP t P
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ P a = minP t P + 1
h2 : P a = minP t P
β’ False
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | exact succ_ne_self (minP t P) h'.2.symm | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ minP t P = minP t P + 1
h2 : P a = minP t P
β’ False | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ minP t P = minP t P + 1
h2 : P a = minP t P
β’ False
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | intro h' | case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β§ Β¬P a = minP t P β a β range (t + 1) β§ P a = minP t P + 1 | case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
β’ a β range (t + 1) β§ P a = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β§ Β¬P a = minP t P β a β range (t + 1) β§ P a = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | refine' β¨h'.1, _β© | case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
β’ a β range (t + 1) β§ P a = minP t P + 1 | case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
β’ P a = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
β’ a β range (t + 1) β§ P a = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | specialize this a h'.1 | case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
β’ P a = minP t P + 1 | case a.mpr
t : β
P : β β β
h : Balanced t P
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
this : P a = minP t P β¨ P a = minP t P + 1
β’ P a = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
β’ P a = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | cases this with
| inl h =>
exfalso; exact h'.2 h
| inr h => exact h | case a.mpr
t : β
P : β β β
h : Balanced t P
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
this : P a = minP t P β¨ P a = minP t P + 1
β’ P a = minP t P + 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mpr
t : β
P : β β β
h : Balanced t P
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
this : P a = minP t P β¨ P a = minP t P + 1
β’ P a = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | exfalso | case a.mpr.inl
t : β
P : β β β
hβ : Balanced t P
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
h : P a = minP t P
β’ P a = minP t P + 1 | case a.mpr.inl.h
t : β
P : β β β
hβ : Balanced t P
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
h : P a = minP t P
β’ False | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mpr.inl
t : β
P : β β β
hβ : Balanced t P
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
h : P a = minP t P
β’ P a = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | exact h'.2 h | case a.mpr.inl.h
t : β
P : β β β
hβ : Balanced t P
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
h : P a = minP t P
β’ False | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mpr.inl.h
t : β
P : β β β
hβ : Balanced t P
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
h : P a = minP t P
β’ False
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.large_parts' | [214, 1] | [227, 23] | exact h | case a.mpr.inr
t : β
P : β β β
hβ : Balanced t P
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
h : P a = minP t P + 1
β’ P a = minP t P + 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mpr.inr
t : β
P : β β β
hβ : Balanced t P
a : β
h' : a β range (t + 1) β§ Β¬P a = minP t P
h : P a = minP t P + 1
β’ P a = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_disjoint | [230, 1] | [234, 23] | convert disjoint_filter_filter_neg (range (t + 1)) (range (t + 1)) fun i => P i = minP t P | t : β
P : β β β
h : Balanced t P
β’ Disjoint (smallParts h) (largeParts h) | case h.e'_5
t : β
P : β β β
h : Balanced t P
β’ largeParts h = filter (fun a => Β¬P a = minP t P) (range (t + 1)) | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
β’ Disjoint (smallParts h) (largeParts h)
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_disjoint | [230, 1] | [234, 23] | exact large_parts' h | case h.e'_5
t : β
P : β β β
h : Balanced t P
β’ largeParts h = filter (fun a => Β¬P a = minP t P) (range (t + 1)) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case h.e'_5
t : β
P : β β β
h : Balanced t P
β’ largeParts h = filter (fun a => Β¬P a = minP t P) (range (t + 1))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | have := con_sum h | t : β
P : β β β
h : Balanced t P
β’ range (t + 1) = smallParts h βͺ largeParts h | t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
β’ range (t + 1) = smallParts h βͺ largeParts h | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
β’ range (t + 1) = smallParts h βͺ largeParts h
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | ext a | t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
β’ range (t + 1) = smallParts h βͺ largeParts h | case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β a β smallParts h βͺ largeParts h | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
β’ range (t + 1) = smallParts h βͺ largeParts h
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | unfold smallParts | case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β a β smallParts h βͺ largeParts h | case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β a β filter (fun i => P i = minP t P) (range (t + 1)) βͺ largeParts h | Please generate a tactic in lean4 to solve the state.
STATE:
case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β a β smallParts h βͺ largeParts h
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | unfold largeParts | case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β a β filter (fun i => P i = minP t P) (range (t + 1)) βͺ largeParts h | case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β
a β filter (fun i => P i = minP t P) (range (t + 1)) βͺ filter (fun i => P i = minP t P + 1) (range (t + 1)) | Please generate a tactic in lean4 to solve the state.
STATE:
case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β a β filter (fun i => P i = minP t P) (range (t + 1)) βͺ largeParts h
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | rw [mem_union] | case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β
a β filter (fun i => P i = minP t P) (range (t + 1)) βͺ filter (fun i => P i = minP t P + 1) (range (t + 1)) | case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β
a β filter (fun i => P i = minP t P) (range (t + 1)) β¨ a β filter (fun i => P i = minP t P + 1) (range (t + 1)) | Please generate a tactic in lean4 to solve the state.
STATE:
case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β
a β filter (fun i => P i = minP t P) (range (t + 1)) βͺ filter (fun i => P i = minP t P + 1) (range (t + 1))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | constructor | case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β
a β filter (fun i => P i = minP t P) (range (t + 1)) β¨ a β filter (fun i => P i = minP t P + 1) (range (t + 1)) | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β
a β filter (fun i => P i = minP t P) (range (t + 1)) β¨ a β filter (fun i => P i = minP t P + 1) (range (t + 1))
case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β filter (fun i => P i = minP t P) (range (t + 1)) β¨ a β filter (fun i => P i = minP t P + 1) (range (t + 1)) β
a β range (t + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
case a
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β
a β filter (fun i => P i = minP t P) (range (t + 1)) β¨ a β filter (fun i => P i = minP t P + 1) (range (t + 1))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | intro ha | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β
a β filter (fun i => P i = minP t P) (range (t + 1)) β¨ a β filter (fun i => P i = minP t P + 1) (range (t + 1)) | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
ha : a β range (t + 1)
β’ a β filter (fun i => P i = minP t P) (range (t + 1)) β¨ a β filter (fun i => P i = minP t P + 1) (range (t + 1)) | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β
a β filter (fun i => P i = minP t P) (range (t + 1)) β¨ a β filter (fun i => P i = minP t P + 1) (range (t + 1))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | rw [mem_filter, mem_filter] | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
ha : a β range (t + 1)
β’ a β filter (fun i => P i = minP t P) (range (t + 1)) β¨ a β filter (fun i => P i = minP t P + 1) (range (t + 1)) | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
ha : a β range (t + 1)
β’ a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
ha : a β range (t + 1)
β’ a β filter (fun i => P i = minP t P) (range (t + 1)) β¨ a β filter (fun i => P i = minP t P + 1) (range (t + 1))
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | specialize this a ha | case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
ha : a β range (t + 1)
β’ a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1 | case a.mp
t : β
P : β β β
h : Balanced t P
a : β
ha : a β range (t + 1)
this : P a = minP t P β¨ P a = minP t P + 1
β’ a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mp
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
ha : a β range (t + 1)
β’ a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | cases this with
| inl h =>
left; exact β¨ha,hβ©
| inr h =>
right; exact β¨ha, hβ© | case a.mp
t : β
P : β β β
h : Balanced t P
a : β
ha : a β range (t + 1)
this : P a = minP t P β¨ P a = minP t P + 1
β’ a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mp
t : β
P : β β β
h : Balanced t P
a : β
ha : a β range (t + 1)
this : P a = minP t P β¨ P a = minP t P + 1
β’ a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | left | case a.mp.inl
t : β
P : β β β
hβ : Balanced t P
a : β
ha : a β range (t + 1)
h : P a = minP t P
β’ a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1 | case a.mp.inl.h
t : β
P : β β β
hβ : Balanced t P
a : β
ha : a β range (t + 1)
h : P a = minP t P
β’ a β range (t + 1) β§ P a = minP t P | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mp.inl
t : β
P : β β β
hβ : Balanced t P
a : β
ha : a β range (t + 1)
h : P a = minP t P
β’ a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | exact β¨ha,hβ© | case a.mp.inl.h
t : β
P : β β β
hβ : Balanced t P
a : β
ha : a β range (t + 1)
h : P a = minP t P
β’ a β range (t + 1) β§ P a = minP t P | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mp.inl.h
t : β
P : β β β
hβ : Balanced t P
a : β
ha : a β range (t + 1)
h : P a = minP t P
β’ a β range (t + 1) β§ P a = minP t P
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | right | case a.mp.inr
t : β
P : β β β
hβ : Balanced t P
a : β
ha : a β range (t + 1)
h : P a = minP t P + 1
β’ a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1 | case a.mp.inr.h
t : β
P : β β β
hβ : Balanced t P
a : β
ha : a β range (t + 1)
h : P a = minP t P + 1
β’ a β range (t + 1) β§ P a = minP t P + 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mp.inr
t : β
P : β β β
hβ : Balanced t P
a : β
ha : a β range (t + 1)
h : P a = minP t P + 1
β’ a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | exact β¨ha, hβ© | case a.mp.inr.h
t : β
P : β β β
hβ : Balanced t P
a : β
ha : a β range (t + 1)
h : P a = minP t P + 1
β’ a β range (t + 1) β§ P a = minP t P + 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mp.inr.h
t : β
P : β β β
hβ : Balanced t P
a : β
ha : a β range (t + 1)
h : P a = minP t P + 1
β’ a β range (t + 1) β§ P a = minP t P + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | rw [mem_filter, mem_filter] | case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β filter (fun i => P i = minP t P) (range (t + 1)) β¨ a β filter (fun i => P i = minP t P + 1) (range (t + 1)) β
a β range (t + 1) | case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1 β a β range (t + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β filter (fun i => P i = minP t P) (range (t + 1)) β¨ a β filter (fun i => P i = minP t P + 1) (range (t + 1)) β
a β range (t + 1)
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | intro hr | case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1 β a β range (t + 1) | case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
hr : a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1
β’ a β range (t + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
β’ a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1 β a β range (t + 1)
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | cases hr with
| inl h => exact h.1
| inr h => exact h.1 | case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
hr : a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1
β’ a β range (t + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mpr
t : β
P : β β β
h : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
hr : a β range (t + 1) β§ P a = minP t P β¨ a β range (t + 1) β§ P a = minP t P + 1
β’ a β range (t + 1)
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | exact h.1 | case a.mpr.inl
t : β
P : β β β
hβ : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h : a β range (t + 1) β§ P a = minP t P
β’ a β range (t + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mpr.inl
t : β
P : β β β
hβ : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h : a β range (t + 1) β§ P a = minP t P
β’ a β range (t + 1)
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_union | [237, 1] | [254, 25] | exact h.1 | case a.mpr.inr
t : β
P : β β β
hβ : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h : a β range (t + 1) β§ P a = minP t P + 1
β’ a β range (t + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case a.mpr.inr
t : β
P : β β β
hβ : Balanced t P
this : β (i : β), i β range (t + 1) β P i = minP t P β¨ P i = minP t P + 1
a : β
h : a β range (t + 1) β§ P a = minP t P + 1
β’ a β range (t + 1)
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.parts_card_add | [257, 1] | [259, 83] | rw [β card_range (t + 1), parts_union h, card_disjoint_union (parts_disjoint h)] | t : β
P : β β β
h : Balanced t P
β’ card (smallParts h) + card (largeParts h) = t + 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
β’ card (smallParts h) + card (largeParts h) = t + 1
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.largeParts_card | [262, 1] | [266, 37] | have := Nat.add_le_add (card_pos.mpr (small_nonempty h)) (le_refl (card (largeParts h))) | t : β
P : β β β
h : Balanced t P
β’ card (largeParts h) β€ t | t : β
P : β β β
h : Balanced t P
this : succ 0 + card (largeParts h) β€ card (smallParts h) + card (largeParts h)
β’ card (largeParts h) β€ t | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
β’ card (largeParts h) β€ t
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.largeParts_card | [262, 1] | [266, 37] | rw [parts_card_add h,add_comm] at this | t : β
P : β β β
h : Balanced t P
this : succ 0 + card (largeParts h) β€ card (smallParts h) + card (largeParts h)
β’ card (largeParts h) β€ t | t : β
P : β β β
h : Balanced t P
this : card (largeParts h) + succ 0 β€ t + 1
β’ card (largeParts h) β€ t | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
this : succ 0 + card (largeParts h) β€ card (smallParts h) + card (largeParts h)
β’ card (largeParts h) β€ t
TACTIC:
|
https://github.com/jt496/Turan_4.git | 329b6acff8f9b8f41609e3e5758ed80c61047eb5 | Turan4/Turanpartition.lean | Turanpartition.largeParts_card | [262, 1] | [266, 37] | apply le_of_add_le_add_right this | t : β
P : β β β
h : Balanced t P
this : card (largeParts h) + succ 0 β€ t + 1
β’ card (largeParts h) β€ t | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
t : β
P : β β β
h : Balanced t P
this : card (largeParts h) + succ 0 β€ t + 1
β’ card (largeParts h) β€ t
TACTIC:
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.