Skip to content

Commit

Permalink
Don't know what this line was doing over there
Browse files Browse the repository at this point in the history
  • Loading branch information
Taneb committed Jan 21, 2025
1 parent a14f5fd commit 84270bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Data/Real/Base.agda
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ isCauchy (p *ₗ x) ε with p ≟ 0ℚ
... | no p≢0 = proj₁ (isCauchy x (1/ ∣ p ∣ * ε)) , λ {m} {n} m≥N n≥N begin-strict
∣ lookup (map (p *_) (sequence x)) m - lookup (map (p *_) (sequence x)) n ∣
≡⟨ cong₂ (λ a b ∣ a - b ∣) (lookup-map m (p *_) (sequence x)) (lookup-map n (p *_) (sequence x)) ⟩
∣ p * lookup (sequence x) m - p * lookup (sequence x) n ∣ ≡⟨ cong (λ # ∣ p * lookup (sequence x) m ℚ.+ # ∣) (neg-distribʳ-* p (lookup (sequence x) n)) ⟩
∣ p * lookup (sequence x) m - p * lookup (sequence x) n ∣
≡⟨ cong (λ # ∣ p * lookup (sequence x) m ℚ.+ # ∣) (neg-distribʳ-* p (lookup (sequence x) n)) ⟩
∣ p * lookup (sequence x) m ℚ.+ p * ℚ.- lookup (sequence x) n ∣
≡⟨ cong ∣_∣ (*-distribˡ-+ p (lookup (sequence x) m) (ℚ.- lookup (sequence x) n)) ⟨
∣ p * (lookup (sequence x) m - lookup (sequence x) n) ∣
Expand Down

0 comments on commit 84270bb

Please sign in to comment.