Skip to content

Commit

Permalink
Explanation of current proofs
Browse files Browse the repository at this point in the history
  • Loading branch information
vmchale committed Apr 21, 2022
1 parent a689583 commit 106643f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clash-prelude/src/Clash/Sized/Vector/Par.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ scanlInductiveRTree
-> RTree n a
-> Vec (2^n) a
scanlInductiveRTree op tr =
-- I have to use sameNat and compareSNat both; otherwise it doesn't compile
-- I have to use sameNat and compareSNat both; the proofs that n>=0 and n~0
-- don't work nicely together
case (sameNat (Proxy @n) (Proxy @0), compareSNat (SNat @n) (SNat @0), tr) of
(Just Refl, _, LR x) -> x :> Nil
(_, SNatGT, BR x y) ->
Expand Down

0 comments on commit 106643f

Please sign in to comment.