Skip to content

Commit a0f916e

Browse files
whitespace fix
1 parent 1477b5c commit a0f916e

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

Cubical/Data/Int/Fast/Divisibility.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ private
347347
quotRemPosPos : (m n : ℕ)(¬z : ¬ pos m ≡ 0) QuotRem (pos m) (pos n)
348348
quotRemPosPos m n _ .div = pos (quotient n / m)
349349
quotRemPosPos m n _ .rem = pos (remainder n / m)
350-
quotRemPosPos m n _ .quotEq =
350+
quotRemPosPos m n _ .quotEq =
351351
(λ t pos (≡remainder+quotient m n (~ t))) ∙ ℤ!
352352
quotRemPosPos 0 n ¬z .normIneq = Empty.rec (¬z refl)
353353
quotRemPosPos (suc m) n ¬z .normIneq = dec-helper (discreteℤ _ 0) (mod< m n)

Cubical/Data/Int/Fast/Order.agda

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,14 @@ isTrans≤ : m ≤ n → n ≤ o → m ≤ o
246246
isTrans≤ {m} {n} {o} (i , p) (j , q) .fst = i ℕ.+ j
247247
isTrans≤ {m} {n} {o} (i , p) (j , q) .snd =
248248

249-
ℤ! ∙∙ cong (ℤ._+ pos j) p ∙∙ q
249+
ℤ! ∙∙ cong (ℤ._+ pos j) p ∙∙ q
250250

251251
isAntisym≤ : m ≤ n n ≤ m m ≡ n
252252
isAntisym≤ {m} {n} (i , p) (j , q) =
253253
sym (+IdR _) ∙ cong ((m ℤ.+_) ∘ pos) (injPos lemma₂) ∙ p
254254
where lemma₀ : pos (j ℕ.+ i) ℤ.+ m ≡ m
255255
lemma₀ = ℤ! ∙ cong (pos j ℤ.+_) p ∙∙ +Comm (pos j) n ∙∙ q
256-
256+
257257
lemma₁ : pos (j ℕ.+ i) ≡ 0
258258
lemma₁ = n+z≡z→n≡0 (pos (j ℕ.+ i)) m lemma₀
259259

@@ -289,7 +289,7 @@ isAntisym≤ {m} {n} (i , p) (j , q) =
289289

290290
<-·o : m < n m ℤ.· (pos (suc k)) < n ℤ.· (pos (suc k))
291291
<-·o {m} {n} {k} (i , p) .fst = i ℕ.· suc k ℕ.+ k
292-
<-·o {m} {n} {k} (i , p) .snd = ℤ! ∙ cong (ℤ._· pos _) p
292+
<-·o {m} {n} {k} (i , p) .snd = ℤ! ∙ cong (ℤ._· pos _) p
293293

294294
<-o+-cancel : o ℤ.+ m < o ℤ.+ n m < n
295295
<-o+-cancel {o} {m} {n} (l , p) = l , (ℤ! ∙∙ cong (ℤ._- o) p ∙∙ ℤ!)
@@ -314,7 +314,7 @@ pos≤0→≡0 {suc k} p = ⊥.rec (¬-pos<-zero {k = k} p)
314314

315315
predℤ-≤-predℤ : m ≤ n predℤ m ≤ predℤ n
316316
predℤ-≤-predℤ {m} {n} (i , p) .fst = i
317-
predℤ-≤-predℤ {m} {n} (i , p) .snd = ℤ! ∙ cong predℤ p
317+
predℤ-≤-predℤ {m} {n} (i , p) .snd = ℤ! ∙ cong predℤ p
318318

319319
¬m+posk<m : ¬ m ℤ.+ pos k < m
320320
¬m+posk<m {m} {k} = ¬-pos<-zero ∘ <-o+-cancel {o = m} {m = pos k} {n = 0}

Cubical/Data/Rationals/Fast/Order.agda

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ module _ where
233233
(subst2 ℤ._≤_
234234
(·CommR c (ℕ₊₁→ℤ f) (ℕ₊₁→ℤ b))
235235
(·CommR e (ℕ₊₁→ℤ d) (ℕ₊₁→ℤ b))
236-
(ℤ.≤-·o {c ℤ.· ℕ₊₁→ℤ f} {k = ℕ₊₁→ℕ b} cf≤ed)))))
236+
(ℤ.≤-·o {c ℤ.· ℕ₊₁→ℤ f} {k = ℕ₊₁→ℕ b} cf≤ed)))))
237237

238238
isTrans< : isTrans _<_
239239
isTrans< =
@@ -335,7 +335,7 @@ module _ where
335335
{z = c ℤ.· ℕ₊₁→ℤ b ℤ.· ℤ.pos (ℕ₊₁→ℕ f ℕ.· ℕ₊₁→ℕ f) ℤ.+
336336
e ℤ.· ℕ₊₁→ℤ b ℤ.· ℕ₊₁→ℤ d ℤ.· ℕ₊₁→ℤ f}
337337
{w = (c ℤ.· ℕ₊₁→ℤ f ℤ.+ e ℤ.· ℕ₊₁→ℤ d) ℤ.· ℕ₊₁→ℤ (b ·₊₁ f)}
338-
ℤ._≤_
338+
ℤ._≤_
339339
ℤ! ℤ!
340340
(ℤ.≤-+o {a ℤ.· ℕ₊₁→ℤ d ℤ.· ℤ.pos (ℕ₊₁→ℕ f ℕ.· ℕ₊₁→ℕ f)}
341341
{o = e ℤ.· ℕ₊₁→ℤ b ℤ.· ℕ₊₁→ℤ d ℤ.· ℕ₊₁→ℤ f}

Cubical/Data/Rationals/Fast/Order/Properties.agda

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -765,15 +765,15 @@ invℚ₊Dist· = uncurry (flip ∘ uncurry ∘ ElimProp2.go w)
765765

766766
/4₊≡/2₊/2₊ : ε fst (/4₊ ε) ≡ fst (/2₊ (/2₊ ε))
767767
/4₊≡/2₊/2₊ = uncurry (ElimProp.go w)
768-
where
768+
where
769769
w : ElimProp _
770770
w .ElimProp.isPropB _ = isPropΠ λ _ isSetℚ _ _
771771
w .ElimProp.f (pos (suc n) , _) _ = eq/ _ _ ℤ!
772772

773773
weak0< : q (ε δ : ℚ₊)
774774
q < (fst ε - fst δ)
775775
q < fst ε
776-
weak0< q ε δ x =
776+
weak0< q ε δ x =
777777
let z = <Monotone+ q (fst ε - fst δ) 0 (fst δ) x (0<→< (fst δ) (snd δ))
778778
in subst2 _<_
779779
(+IdR q) ℚ! z
@@ -783,7 +783,7 @@ weak0< q ε δ x =
783783
weak0<' : q (ε δ : ℚ₊)
784784
- (fst ε - fst δ) < q
785785
- (fst ε) < q
786-
weak0<' q ε δ x =
786+
weak0<' q ε δ x =
787787
let z = <Monotone+ (- (fst ε - fst δ)) q (- fst δ) 0 x
788788
(minus-< 0 (fst δ) ((0<→< (fst δ) (snd δ))))
789789
in (subst2 {x = (- (fst ε - fst δ)) + (- fst δ)}
@@ -1146,7 +1146,7 @@ riseQandD p q r =
11461146
(cong (_·₊₁ c') (sym (·₊₁-assoc a' b' c')
11471147
∙∙ cong (a' ·₊₁_) (·₊₁-comm b' c') ∙∙ (·₊₁-assoc a' c' b'))
11481148
∙ sym (·₊₁-assoc (a' ·₊₁ c') b' c')))
1149-
--
1149+
--
11501150

11511151

11521152
<MonotoneMax : m o n s m < n o < s max m o < max n s
@@ -1567,8 +1567,8 @@ maxWithPos ε q .snd = <→0< (max (fst ε) q)
15671567
ℤ.·Comm (snd
15681568
(ℤ.0<→ℕ₊₁ (pos (suc x) ℤ.· pos (suc y))
15691569
(·0< [ pos (suc x) , (1+ x') ] [ pos (suc y) , (1+ y') ] p' q'))
1570-
(~ i1)) (pos (ℕ₊₁→ℕ ((1+ y') ·₊₁ (1+ x'))))) ∙
1571-
ℤ!
1570+
(~ i1)) (pos (ℕ₊₁→ℕ ((1+ y') ·₊₁ (1+ x'))))) ∙
1571+
ℤ!
15721572
λ i (ℕ₊₁→ℤ (fst (ℤ.0<→ℕ₊₁
15731573
(ℕ₊₁→ℤ ((1+ x') ·₊₁ (1+ y'))) tt))
15741574
ℤ.· ((pos (suc y) ℤ.· ℕ₊₁→ℤ (·₊₁-identityˡ (1+ x') (~ i)))

Cubical/Tactics/CommRingSolver/IntReflection.agda

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import Cubical.Data.Int.Fast as ℤ
3636
import Cubical.Data.Nat as ℕ
3737

3838
import Cubical.Algebra.CommRing.Instances.Int.Fast as Fast
39-
39+
4040
private
4141
variable
4242
: Level
@@ -111,7 +111,7 @@ private
111111
printVars : Vars TC _
112112
printVars [] = returnTC tt
113113
printVars (x ∷ xs) = do
114-
debugPrint "intSolver" 20 [ termErr x ]
114+
debugPrint "intSolver" 20 [ termErr x ]
115115
printVars xs
116116

117117
module pr (R : CommRing ℓ) {n : ℕ} where
@@ -180,20 +180,20 @@ module CommRingReflection (cring : Term) (names : RingNames) where
180180
polynomialVariable n = con (quote ∣) (finiteNumberAsTerm n v∷ [])
181181

182182
buildExpressionFromNatLit : TC (Template × Vars)
183-
buildExpressionFromNatLit ℕ.zero = `0` []
183+
buildExpressionFromNatLit ℕ.zero = `0` []
184184
buildExpressionFromNatLit (ℕ.suc ℕ.zero) = `1` []
185185
buildExpressionFromNatLit (ℕ.suc (ℕ.suc k)) = do
186186
(k' , _) buildExpressionFromNatLit (ℕ.suc k)
187187
returnTC ((λ ass con (quote _+'_) (def (quote 1') (cring v∷ []) v∷ k' ass v∷ [])) ,
188188
[])
189-
189+
190190
buildExpressionFromNat : Term TC (Template × Vars)
191191
buildExpressionFromNat (lit (nat x)) = buildExpressionFromNatLit x
192192
buildExpressionFromNat (con (quote ℕ.zero) []) = `0` []
193193
buildExpressionFromNat (con (quote ℕ.suc) (con (quote ℕ.zero) [] v∷ [] )) = `1` []
194194
buildExpressionFromNat (con (quote ℕ.suc) (x v∷ [] )) =
195195
do
196-
debugPrint "intSolver" 20 (strErr "fromNat suc:" ∷ termErr x ∷ [])
196+
debugPrint "intSolver" 20 (strErr "fromNat suc:" ∷ termErr x ∷ [])
197197
r1 `1` []
198198
r2 buildExpressionFromNat x
199199
returnTC ((λ ass con (quote _+'_) (fst r1 ass v∷ fst r2 ass v∷ [])) ,
@@ -224,7 +224,7 @@ module CommRingReflection (cring : Term) (names : RingNames) where
224224
buildExpressionFromNat t' =
225225
let t = (con (quote ℤ.pos) (t' v∷ []))
226226
in (returnTC ((λ ass polynomialVariable (ass t)) , t ∷ []))
227-
227+
228228
buildExpression v@(var _ _) =
229229
returnTC ((λ ass polynomialVariable (ass v)) ,
230230
v ∷ [])
@@ -241,7 +241,7 @@ module CommRingReflection (cring : Term) (names : RingNames) where
241241
debugPrint "intSolver" 20 (strErr "buildExpr pos:" ∷ termErr x ∷ [])
242242
buildExpressionFromNat x
243243
buildExpression t@(con (quote ℤ.negsuc) (x v∷ [])) =
244-
do debugPrint "intSolver" 20 (strErr "buildExpr negsuc:" ∷ termErr x ∷ [])
244+
do debugPrint "intSolver" 20 (strErr "buildExpr negsuc:" ∷ termErr x ∷ [])
245245
y do r1 `1` []
246246
r2 buildExpressionFromNat x
247247
returnTC {A = Template × Vars} ((λ ass con (quote _+'_) (fst r1 ass v∷ fst r2 ass v∷ [])) ,
@@ -272,7 +272,7 @@ module CommRingReflection (cring : Term) (names : RingNames) where
272272
toAlgebraExpressionLHS : Term TC (Term × Vars)
273273
toAlgebraExpressionLHS lhs = do
274274
(e , vars) buildExpression lhs
275-
275+
276276
returnTC (
277277
let ass : VarAss
278278
ass n = indexOf n vars
@@ -298,7 +298,7 @@ private
298298
nothing
299299
typeError(strErr "The CommRingSolver failed to parse the goal "
300300
∷ termErr goal ∷ [])
301-
301+
302302
(lhs' , rhs' , vars) CommRingReflection.toAlgebraExpression commRing names (lhs , rhs)
303303
printVars vars
304304
let solution = solverCallWithVars (length vars) vars commRing lhs' rhs'
@@ -319,10 +319,10 @@ private
319319
nothing
320320
typeError(strErr "The CommRingSolver failed to parse the goal "
321321
∷ termErr goal ∷ [])
322-
322+
323323
(lhs' , vars) CommRingReflection.toAlgebraExpressionLHS commRing names lhs
324324
printVars vars
325-
let solution = normaliserCallWithVars (length vars) vars commRing lhs'
325+
let solution = normaliserCallWithVars (length vars) vars commRing lhs'
326326
unify hole solution
327327

328328

Cubical/Tactics/CommRingSolver/Solver.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,6 @@ solve R = EqualityToNormalform.solve R
148148

149149
normaliseRing : (R : CommRing ℓ)
150150
{n : ℕ} (e₁ : ℤExpr R n) (xs : Vec (fst R) n)
151-
151+
152152
_
153153
normaliseRing R {n} e xs = sym (EqualityToNormalform.isEqualToNormalform R e xs)

0 commit comments

Comments
 (0)