case refine'_1
α : Type u
β : Type ?u.228787
n : ℕ
x : α
inst✝ : StrictOrderedRing α
hx : x < 0
hx' : 0 < x + 1
hn : 1 < n
⊢ 0 < ∑ i in range 2, x ^ i ∧ ∑ i in range 2, x ^ i < 1

case refine'_2
α : Type u
β : Type ?u.228787
n : ℕ
x : α
inst✝ : StrictOrderedRing α
hx : x < 0
hx' : 0 < x + 1
hn : 1 < n
⊢ ∀ (n : ℕ),
    2 ≤ n →
      0 < ∑ i in range n, x ^ i ∧ ∑ i in range n, x ^ i < 1 →
        0 < ∑ i in range (n + 1), x ^ i ∧ ∑ i in range (n + 1), x ^ i < 1
α : Type u
β : Type ?u.228787
n : ℕ
x : α
inst✝ : StrictOrderedRing α
hx : x < 0
hx' : 0 < x + 1
hn : 1 < n
⊢ 0 < ∑ i in range n, x ^ i ∧ ∑ i in range n, x ^ i < 1
refine' Nat.le_induction _ _ n (show 2 ≤ n from hn)
case refine'_2
α : Type u
β : Type ?u.228787
n : ℕ
x : α
inst✝ : StrictOrderedRing α
hx : x < 0
hx' : 0 < x + 1
⊢ ∀ (n : ℕ),
    2 ≤ n →
      0 < ∑ i in range n, x ^ i ∧ ∑ i in range n, x ^ i < 1 →
        0 < ∑ i in range (n + 1), x ^ i ∧ ∑ i in range (n + 1), x ^ i < 1
case refine'_2
α : Type u
β : Type ?u.228787
n : ℕ
x : α
inst✝ : StrictOrderedRing α
hx : x < 0
hx' : 0 < x + 1
hn : 1 < n
⊢ ∀ (n : ℕ),
    2 ≤ n →
      0 < ∑ i in range n, x ^ i ∧ ∑ i in range n, x ^ i < 1 →
        0 < ∑ i in range (n + 1), x ^ i ∧ ∑ i in range (n + 1), x ^ i < 1
clear hn
case refine'_2
α : Type u
β : Type ?u.228787
n✝ : ℕ
x : α
inst✝ : StrictOrderedRing α
hx : x < 0
hx' : 0 < x + 1
n : ℕ
hn✝ : 2 ≤ n
ihn : 0 < ∑ i in range n, x ^ i ∧ ∑ i in range n, x ^ i < 1
⊢ 0 < ∑ i in range (n + 1), x ^ i ∧ ∑ i in range (n + 1), x ^ i < 1
case refine'_2
α : Type u
β : Type ?u.228787
n : ℕ
x : α
inst✝ : StrictOrderedRing α
hx : x < 0
hx' : 0 < x + 1
⊢ ∀ (n : ℕ),
    2 ≤ n →
      0 < ∑ i in range n, x ^ i ∧ ∑ i in range n, x ^ i < 1 →
        0 < ∑ i in range (n + 1), x ^ i ∧ ∑ i in range (n + 1), x ^ i < 1
intro n _ ihn
case refine'_2
α : Type u
β : Type ?u.228787
n✝ : ℕ
x : α
inst✝ : StrictOrderedRing α
hx : x < 0
hx' : 0 < x + 1
n : ℕ
hn✝ : 2 ≤ n
ihn : 0 < ∑ i in range n, x ^ i ∧ ∑ i in range n, x ^ i < 1
⊢ -x * ∑ i in range n, x ^ i < 1 ∧ x * ∑ i in range n, x ^ i < 0
case refine'_2
α : Type u
β : Type ?u.228787
n✝ : ℕ
x : α
inst✝ : StrictOrderedRing α
hx : x < 0
hx' : 0 < x + 1
n : ℕ
hn✝ : 2 ≤ n
ihn : 0 < ∑ i in range n, x ^ i ∧ ∑ i in range n, x ^ i < 1
⊢ 0 < ∑ i in range (n + 1), x ^ i ∧ ∑ i in range (n + 1), x ^ i < 1
rw [geom_sum_succ, add_lt_iff_neg_right, ← neg_lt_iff_pos_add', neg_mul_eq_neg_mul]
no goals
case refine'_2
α : Type u
β : Type ?u.228787
n✝ : ℕ
x : α
inst✝ : StrictOrderedRing α
hx : x < 0
hx' : 0 < x + 1
n : ℕ
hn✝ : 2 ≤ n
ihn : 0 < ∑ i in range n, x ^ i ∧ ∑ i in range n, x ^ i < 1
⊢ -x * ∑ i in range n, x ^ i < 1 ∧ x * ∑ i in range n, x ^ i < 0
exact
  ⟨mul_lt_one_of_nonneg_of_lt_one_left (neg_nonneg.2 hx.le) (neg_lt_iff_pos_add'.2 hx') ihn.2.le,
    mul_neg_of_neg_of_pos hx ihn.1⟩
case refine'_1
α : Type u
β : Type ?u.228787
n : ℕ
x : α
inst✝ : StrictOrderedRing α
hx : x < 0
hx' : 0 < x + 1
hn : 1 < n
⊢ 0 < x + 1 ∧ x + 1 < 1
case refine'_1
α : Type u
β : Type ?u.228787
n : ℕ
x : α
inst✝ : StrictOrderedRing α
hx : x < 0
hx' : 0 < x + 1
hn : 1 < n
⊢ 0 < ∑ i in range 2, x ^ i ∧ ∑ i in range 2, x ^ i < 1
rw [geom_sum_two]
no goals
case refine'_1
α : Type u
β : Type ?u.228787
n : ℕ
x : α
inst✝ : StrictOrderedRing α
hx : x < 0
hx' : 0 < x + 1
hn : 1 < n
⊢ 0 < x + 1 ∧ x + 1 < 1
exact ⟨hx', (add_lt_iff_neg_right _).2 hx⟩