1-Impl.BooleanRepresentation of booleans within a field.
This representation ties the value of true to Field.one and false to Field.zero, adding a check in Boolean.typ to ensure that these are the only vales.
The type that stores booleans as R1CS variables.
val false_ : varAn R1CS variable containing Field.zero, representing false.
if_ b ~then_ ~else_ returns then_ if b is true, or else_ otherwise.
val of_field : Field.Var.t -> var Checked.tConvert a value in a field to a boolean, adding checks to the R1CS that it is a valid boolean value.
Convert an OCaml bool into a R1CS variable representing the same value.
The relationship between var and value, with a check that the value is valid (ie. Field.zero or Field.one).
typ without a validity check for the underlying field value.
module Expr : sig ... endBuild trees representing boolean expressions.
module Unsafe : sig ... endmodule Assert : sig ... endmodule Array : sig ... end