package octez-plompiler
type scalar = scalar
type 'a repr = 'a repr
type 'a t = 'a t
val custom :
?qc:Csir.Scalar.t ->
?ql:Csir.Scalar.t ->
?qr:Csir.Scalar.t ->
?qo:Csir.Scalar.t ->
?qm:Csir.Scalar.t ->
?qx2b:Csir.Scalar.t ->
?qx5a:Csir.Scalar.t ->
scalar repr ->
scalar repr ->
scalar repr t
val assert_custom :
?qc:Csir.Scalar.t ->
?ql:Csir.Scalar.t ->
?qr:Csir.Scalar.t ->
?qo:Csir.Scalar.t ->
?qm:Csir.Scalar.t ->
scalar repr ->
scalar repr ->
scalar repr ->
unit repr t
val add :
?qc:Csir.Scalar.t ->
?ql:Csir.Scalar.t ->
?qr:Csir.Scalar.t ->
scalar repr ->
scalar repr ->
scalar repr t
val add_constant :
?ql:Csir.Scalar.t ->
Csir.Scalar.t ->
scalar repr ->
scalar repr t
val add_list :
?qc:Csir.Scalar.t ->
?coeffs:Csir.Scalar.t list ->
scalar list repr ->
scalar repr t
val is_eq_const : scalar repr -> Csir.Scalar.t -> bool repr t
val assert_eq_const : scalar repr -> Csir.Scalar.t -> unit repr t
is_upper_bounded ~bound x
returns whether the scalar x
is strictly lower than bound
when x
is interpreted as an integer from 0
to p-1
(being p
the scalar field order). This circuit is total (and more expensive than our version below).
Same as is_upper_bounded
but cheaper and partial. is_upper_bounded_unsafe ~bound l
is unsatisfiable if l cannot be represented in binary with Z.numbits bound
bits.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>