Skip to content

Commit 8e47f43

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f5f5ef0 commit 8e47f43

File tree

2 files changed

+11
-22
lines changed

2 files changed

+11
-22
lines changed

examples/hyperrec/spec.vcl

-5
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,3 @@ hyperRectangle x = forall i . vectorMin ! i <= x ! i <= vectorMax ! i
4949
@property
5050
property : Bool
5151
property = forall x . hyperRectangle x => advises x pos
52-
53-
54-
55-
56-

examples/hyperrec/spec2.vcl

+11-17
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,22 @@ inputTranspose = foreach i . foreach j . inputs ! j ! i
5555
-- identity : Tensor Rat [2, 3]
5656
-- identity = [ [1, 0, 1], [0, 1, 0] ]
5757

58-
-- vectorMin : Tensor Rat [inputSize, 5] -> Index 5 -> Bool
59-
-- vectorMin x i = forall j k. x ! j ! i <= x ! j ! k
58+
-- vectorMin : Tensor Rat [inputSize, 5] -> Index 5 -> Bool
59+
-- vectorMin x i = forall j k. x ! j ! i <= x ! j ! k
6060

6161
vectorMin : Index 30 -> Index 5 -> Bool
62-
vectorMin i j = forall k . inputs ! j ! i <= inputs ! j ! k
62+
vectorMin i j = forall k . inputs ! j ! i <= inputs ! j ! k
6363

6464
vectorMax : Index 30 -> Index 5 -> Bool
65-
vectorMax i j = forall k . inputs ! j ! k <= inputs ! j ! i
65+
vectorMax i j = forall k . inputs ! j ! k <= inputs ! j ! i
6666

6767
@property
6868
property : Bool
69-
property = forall x. forall j i l k. validInput x and vectorMin i j and vectorMax l k and x ! i >= inputs ! j ! i and inputs ! k ! l >= x ! l => advises x pos
69+
property = forall x. forall j i l k. validInput x and vectorMin i j and vectorMax l k and x ! i >= inputs ! j ! i and inputs ! k ! l >= x ! l => advises x pos
7070

7171
{-
72-
vectorMax : Vector Rat 5 -> Index 5 -> Vector Bool 5
73-
vectorMax x i = foreach j . x ! j <= x ! i
72+
vectorMax : Vector Rat 5 -> Index 5 -> Vector Bool 5
73+
vectorMax x i = foreach j . x ! j <= x ! i
7474

7575
vectorOut : Tensor Rat [inputSize, n] -> Vector Rat inputSize
7676
vectorOut x = foreach i . x ! i -}
@@ -80,25 +80,19 @@ vectorOut x = foreach i . x ! i -}
8080
-- property = True
8181

8282
{-
83-
vectorMax : InputVector
83+
vectorMax : InputVector
8484
vectorMax = foreach i . 1 -- maxList (inputTranspose ! i)
8585

86-
vectorMin : InputVector
86+
vectorMin : InputVector
8787
vectorMin = foreach i . 0 --minList (inputTranspose ! i)
8888

89-
vectorMax : InputVector
89+
vectorMax : InputVector
9090
vectorMax = foreach i . 1 -- maxList (inputTranspose ! i)
9191

9292
hyperRectangle : InputVector -> Bool
9393
hyperRectangle x = forall i . vectorMin ! i <= x ! i <= vectorMax ! i
9494

9595
@property
9696
property : Bool
97-
property = forall x . hyperRectangle x => advises x pos
97+
property = forall x . hyperRectangle x => advises x pos
9898
-}
99-
100-
101-
102-
103-
104-

0 commit comments

Comments
 (0)