Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyijun committed Oct 13, 2024
1 parent 1db5cf2 commit b8d0a89
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions GoldbachTm/Tm31/Prime.lean
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,19 @@ induction rb with intros i lb l r g hd
obtain ⟨j, g⟩ := g
rename_i induction_step
apply induction_step at g
have h : (∃ divisor ≥ lb + 1 + 2, divisor < lb + 1 + rb + 4 ∧ divisor ∣ lb + 1 + rb + 4) := by
obtain ⟨divisor, h₁, h₂, h₃⟩ := hd
refine (?_ ∘ g) ?_
. intros g
obtain ⟨k, g⟩ := g
use (j+k)
ring_nf
simp [g]
ring_nf
. obtain ⟨divisor, h₁, h₂, h₃⟩ := hd
use divisor
ring_nf at *
repeat any_goals apply And.intro
any_goals omega
by_cases h : divisor = 2+lb
by_cases h : divisor = 2 + lb
. subst divisor
exfalso
apply h
Expand All @@ -407,8 +413,3 @@ induction rb with intros i lb l r g hd
rw [g] at h
assumption
. omega
specialize g h
obtain ⟨k, g⟩ := g
use (j+k)
ring_nf at *
simp [g]

0 comments on commit b8d0a89

Please sign in to comment.