Skip to content

Commit b8d0a89

Browse files
committed
better
1 parent 1db5cf2 commit b8d0a89

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

GoldbachTm/Tm31/Prime.lean

+9-8
Original file line numberDiff line numberDiff line change
@@ -392,13 +392,19 @@ induction rb with intros i lb l r g hd
392392
obtain ⟨j, g⟩ := g
393393
rename_i induction_step
394394
apply induction_step at g
395-
have h : (∃ divisor ≥ lb + 1 + 2, divisor < lb + 1 + rb + 4 ∧ divisor ∣ lb + 1 + rb + 4) := by
396-
obtain ⟨divisor, h₁, h₂, h₃⟩ := hd
395+
refine (?_ ∘ g) ?_
396+
. intros g
397+
obtain ⟨k, g⟩ := g
398+
use (j+k)
399+
ring_nf
400+
simp [g]
401+
ring_nf
402+
. obtain ⟨divisor, h₁, h₂, h₃⟩ := hd
397403
use divisor
398404
ring_nf at *
399405
repeat any_goals apply And.intro
400406
any_goals omega
401-
by_cases h : divisor = 2+lb
407+
by_cases h : divisor = 2 + lb
402408
. subst divisor
403409
exfalso
404410
apply h
@@ -407,8 +413,3 @@ induction rb with intros i lb l r g hd
407413
rw [g] at h
408414
assumption
409415
. omega
410-
specialize g h
411-
obtain ⟨k, g⟩ := g
412-
use (j+k)
413-
ring_nf at *
414-
simp [g]

0 commit comments

Comments
 (0)