Skip to content

Commit

Permalink
[ compat ] Be agnosting to the real implementation of NonZero
Browse files Browse the repository at this point in the history
  • Loading branch information
buzden authored and gallais committed Nov 27, 2024
1 parent 213e508 commit 7fec3e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/frextests/indexed-binary/Binary/Modular.idr
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Frexlet.Monoid.Commutative.Nat


NZ2 : NonZero 2
NZ2 = SIsNonZero
NZ2 = %search

export
absurdSucIsZero : (k : Nat) -> (0 prf : S k = 0) -> b
Expand Down Expand Up @@ -69,10 +69,10 @@ multSucLeftCancel a b minusOne prf = multSucRightCancel a b minusOne $

export
powerNZ : (n : Nat) -> NonZero (2 `power` n)
powerNZ 0 = SIsNonZero
powerNZ 0 = %search
powerNZ (S n) with (powerNZ n)
powerNZ (S n) | prf with (2 `power` n)
powerNZ (S n) | SIsNonZero | S _ = SIsNonZero
powerNZ (S n) | _ | S _ = %search

export
modAffine : (a, k, n : Nat) -> (nz : NonZero n)
Expand Down

0 comments on commit 7fec3e1

Please sign in to comment.