Skip to content

Commit 6f2c7db

Browse files
authored
1 parent 5b496f9 commit 6f2c7db

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

theories/Torch/Tensor.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ Definition arange {start : with_default "start" int 0%uint63} (stop : int) {step
12301230
:= fun idx => let idx := RawIndex.item idx in
12311231
(start + idx * step)%uint63.
12321232

1233-
#[global] Arguments arange (_ _ _)%uint63.
1233+
#[global] Arguments arange (_ _ _)%_uint63.
12341234
#[global] Arguments arange {_} _ {_}, _ _ {_}, _ _ _.
12351235

12361236
(* TODO: nary *)
@@ -1309,7 +1309,7 @@ Definition tril {rnk} {s : Shape rnk} {r c} {A} {zero : has_zero A}
13091309
=> if ((0 ≤? i) && (i <? r) && (Sint63.max 0 (1 + i + diagonal) ≤? j) && (j <? c))%bool
13101310
then 0%core
13111311
else input idxs.
1312-
#[global] Arguments tril {rnk%nat s%shape} {r c}%uint63 {A%type_scope zero} {diagonal}%sint63 input%tensor.
1312+
#[global] Arguments tril {rnk%_nat s%_shape} {r c}%_uint63 {A%_type_scope zero} {diagonal}%_sint63 input%_tensor.
13131313
(** Quoting https://pytorch.org/docs/stable/generated/torch.triu.html
13141314
13151315
torch.triu(input, diagonal=0, *, out=None) → Tensor
@@ -1335,7 +1335,7 @@ Definition triu {rnk} {s : Shape rnk} {r c} {A} {zero : has_zero A}
13351335
=> if ((0 ≤? i) && (i <? r) && (0 ≤? j) && (j <? Sint63.max 0 (i + diagonal)))%bool
13361336
then 0%core
13371337
else input idxs.
1338-
#[global] Arguments triu {rnk%nat s%shape} {r c}%uint63 {A%type_scope zero} {diagonal}%sint63 input%tensor.
1338+
#[global] Arguments triu {rnk%_nat s%_shape} {r c}%_uint63 {A%_type_scope zero} {diagonal}%_sint63 input%_tensor.
13391339

13401340
(** Quoting
13411341
https://pytorch.org/docs/stable/generated/torch.diagonal.html
@@ -1365,7 +1365,7 @@ Definition diagonal {b} {s : Shape b} {r c} {A}
13651365
=> input ((idxs, i - offset), i)%uint63
13661366
else fun '(idxs, i)
13671367
=> input ((idxs, i), i + offset)%uint63.
1368-
#[global] Arguments diagonal {b%nat s%shape} {r c}%uint63 {A%type_scope} {offset}%sint63 input%tensor.
1368+
#[global] Arguments diagonal {b%_nat s%_shape} {r c}%_uint63 {A%_type_scope} {offset}%_sint63 input%_tensor.
13691369

13701370
Definition coer_tensor {r s A B} {coerAB : has_coer A B} : @tensor r s A -> @tensor r s B
13711371
:= Tensor.map coer.

theories/Util/Classes/Morphisms/Dependent.v

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -216,20 +216,20 @@ Notation const6 R := (match _ as F return forall A B, Hetero.relation A B -> for
216216
| F => fun (A B : Type) (_ : Hetero.relation A B) (A' B' : Type) (_ : Hetero.relation A' B') (A'' B'' : Type) (_ : Hetero.relation A'' B'') (A''' B''' : Type) (_ : Hetero.relation A''' B''') (A'''' B'''' : Type) (_ : Hetero.relation A'''' B'''') (A''''' B''''' : Type) (_ : Hetero.relation A''''' B''''') => R
217217
end) (only parsing).
218218
Notation constR6 R := (fun (A B : Type) (_ : Hetero.relation A B) (A' B' : Type) (_ : Hetero.relation A' B') (A'' B'' : Type) (_ : Hetero.relation A'' B'') (A''' B''' : Type) (_ : Hetero.relation A''' B''') (A'''' B'''' : Type) (_ : Hetero.relation A'''' B'''') (A''''' B''''' : Type) (_ : Hetero.relation A''''' B''''') => R).
219-
Arguments Proper {F}%type R%dependent_signature m.
220-
Arguments respectful {A B}%type (R R')%dependent_signature (_ _)%type _ _.
221-
Arguments Proper2 {F}%type R%dependent2_signature m.
222-
Arguments respectful2 {A B}%type (R R')%dependent2_signature (_ _)%type _ _.
223-
Arguments Proper3 {F}%type R%dependent3_signature m.
224-
Arguments respectful3 {A B}%type (R R')%dependent3_signature (_ _)%type _ _.
225-
Arguments Proper4 {F}%type R%dependent4_signature m.
226-
Arguments respectful4 {A B}%type (R R')%dependent4_signature (_ _)%type _ _.
227-
Arguments Proper5 {F}%type R%dependent5_signature m.
228-
Arguments respectful5 {A B}%type (R R')%dependent5_signature (_ _)%type _ _.
229-
Arguments Proper6 {F}%type R%dependent6_signature m.
230-
Arguments respectful6 {A B}%type (R R')%dependent6_signature (_ _)%type _ _.
231-
Arguments Propern {n}%nat {F}%type R%dependentn_signature m.
232-
Arguments respectfuln {n}%nat {A B}%type (R R')%dependentn_signature.
219+
Arguments Proper {F}%_type R%_dependent_signature m.
220+
Arguments respectful {A B}%_type (R R')%_dependent_signature (_ _)%_type _ _.
221+
Arguments Proper2 {F}%_type R%_dependent2_signature m.
222+
Arguments respectful2 {A B}%_type (R R')%_dependent2_signature (_ _)%_type _ _.
223+
Arguments Proper3 {F}%_type R%_dependent3_signature m.
224+
Arguments respectful3 {A B}%_type (R R')%_dependent3_signature (_ _)%_type _ _.
225+
Arguments Proper4 {F}%_type R%_dependent4_signature m.
226+
Arguments respectful4 {A B}%_type (R R')%_dependent4_signature (_ _)%_type _ _.
227+
Arguments Proper5 {F}%_type R%_dependent5_signature m.
228+
Arguments respectful5 {A B}%_type (R R')%_dependent5_signature (_ _)%_type _ _.
229+
Arguments Proper6 {F}%_type R%_dependent6_signature m.
230+
Arguments respectful6 {A B}%_type (R R')%_dependent6_signature (_ _)%_type _ _.
231+
Arguments Propern {n}%_nat {F}%_type R%_dependentn_signature m.
232+
Arguments respectfuln {n}%_nat {A B}%_type (R R')%_dependentn_signature.
233233

234234
Local Open Scope dependent_signature_scope.
235235

@@ -298,8 +298,8 @@ Section Relations.
298298
End Relations.
299299
300300
Global Typeclasses Opaque respectful pointwise_relation forall_relation.
301-
Arguments forall_relation {A P}%type sig%signature _ _.
302-
Arguments pointwise_relation A%type {B}%type R%signature _ _.
301+
Arguments forall_relation {A P}%_type sig%_signature _ _.
302+
Arguments pointwise_relation A%_type {B}%_type R%_signature _ _.
303303
304304
#[global]
305305
Hint Unfold Reflexive : core.

theories/Util/PArray.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Definition tril {A} {zero : has_zero A} {diagonal : with_default "diagonal" int
203203
in
204204
set (out.[i <- row])
205205
}}.
206-
#[global] Arguments tril {A%type_scope zero diagonal%sint63} input.
206+
#[global] Arguments tril {A%_type_scope zero diagonal%_sint63} input.
207207

208208
(** Quoting https://pytorch.org/docs/stable/generated/torch.triu.html
209209
@@ -239,4 +239,4 @@ Definition triu {A} {zero : has_zero A} {diagonal : with_default "diagonal" int
239239
in
240240
set (out.[i <- row])
241241
}}.
242-
#[global] Arguments triu {A%type_scope zero diagonal%sint63} input.
242+
#[global] Arguments triu {A%_type_scope zero diagonal%_sint63} input.

theories/Util/PolymorphicSigma.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ Record sigT2 (A:Type) (P Q:A -> Type) : Type := existT2 { projT12 : A ; projT22
2121

2222
(* Notations *)
2323

24-
Arguments sig (A P)%type.
25-
Arguments sig2 (A P Q)%type.
26-
Arguments sigT (A P)%type.
27-
Arguments sigT2 (A P Q)%type.
24+
Arguments sig (A P)%_type.
25+
Arguments sig2 (A P Q)%_type.
26+
Arguments sigT (A P)%_type.
27+
Arguments sigT2 (A P Q)%_type.
2828

2929
Module Import Notations.
3030
#[export] Set Warnings "-notation-overridden".

0 commit comments

Comments
 (0)