Skip to content

Commit 7c386fa

Browse files
davidcokdavidcok
and
davidcok
authored
Miscellaneous edits to the new library, to support testing (#117)
* Working on reusable tests * Debugging * Debugging #2 * Debugging #3 * Debugging #4 * Debugging #4 * Debugging #5 * Debugging #6 * Debugging #7 * Debugging #8 * Debugging #9 * Debugging #10 * Debugging #11 * Debugging #12 * Debugging #13 * Debugging #14 * Debugging #14 * Debugging * Debugging * Debugging * Debugging * OK, except disabling 3.13.1 and nightly-latest until setup-dafny-action is fixed * OK, except disabling 3.13.1 and nightly-latest until setup-dafny-action is fixed * Fixing the concurrency check * Old edits * Edits to examples * Touchups to examples and library * Math relations and examples * Some docstring documentation * Some docstring documentation * typo * Formatting * Removing semicolon * Adjusting for Dafny 3 * Attempt to fix proof in ld dafny versions * Fixing up docstrings * Fixed examples * Fixed formatting * Fixed formatting * Formatting * Formatting --------- Co-authored-by: davidcok <[email protected]>
1 parent b0c15d0 commit 7c386fa

6 files changed

+16
-6
lines changed

src/dafny/BinaryOperations.dfy

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
* SPDX-License-Identifier: MIT
66
*******************************************************************************/
77

8-
module {:options "-functionSyntax:4"} BinaryOperations {
8+
/** Defines a number of (ghost) properties of binary operations */
9+
module {:options "-functionSyntax:4"} BinaryOperations
10+
{
911

1012
ghost predicate IsAssociative<T(!new)>(bop: (T, T) -> T) {
1113
forall x, y, z :: bop(bop(x, y), z) == bop(x, bop(y, z))

src/dafny/NonlinearArithmetic/Internals/DivInternalsNonlinear.dfy

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
* SPDX-License-Identifier: MIT
99
*******************************************************************************/
1010

11-
module {:options "-functionSyntax:4"} Dafny.DivInternalsNonlinear {
11+
/** Declares a few helper lemmas for internal use in non-linear arithmetic */
12+
module {:options "-functionSyntax:4"} Dafny.DivInternalsNonlinear
13+
{
1214

1315
/* WARNING: Think three times before adding to this file, as nonlinear
1416
verification is highly unstable! */

src/dafny/NonlinearArithmetic/Internals/GeneralInternals.dfy

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
* SPDX-License-Identifier: MIT
99
*******************************************************************************/
1010

11-
module {:options "-functionSyntax:4"} Dafny.GeneralInternals {
11+
/** Declares helper lemmas and predicates for non-linear arithmetic */
12+
module {:options "-functionSyntax:4"} Dafny.GeneralInternals
13+
{
1214

1315
/* this predicate is primarily used as a trigger */
1416
ghost predicate IsLe(x: int, y: int)

src/dafny/NonlinearArithmetic/Internals/ModInternalsNonlinear.dfy

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
* SPDX-License-Identifier: MIT
99
*******************************************************************************/
1010

11-
module {:options "-functionSyntax:4"} Dafny.ModInternalsNonlinear {
11+
/** Declares helper lemmas about the mod operation */
12+
module {:options "-functionSyntax:4"} Dafny.ModInternalsNonlinear
13+
{
1214

1315
/* WARNING: Think three times before adding to this file, as nonlinear
1416
verification is highly unstable! */

src/dafny/NonlinearArithmetic/Internals/MulInternalsNonlinear.dfy

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
* SPDX-License-Identifier: MIT
99
*******************************************************************************/
1010

11-
module {:options "-functionSyntax:4"} Dafny.MulInternalsNonlinear {
11+
/** Declares some helper lemmas about multiply, for internal use */
12+
module {:options "-functionSyntax:4"} Dafny.MulInternalsNonlinear
13+
{
1214

1315
/* WARNING: Think three times before adding to this file, as nonlinear
1416
verification is highly unstable! */

src/dafny/Unicode/Utf8EncodingForm.dfy

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include "UnicodeEncodingForm.dfy"
1313

1414
/**
1515
* The Unicode encoding form that assigns each Unicode scalar value to an unsigned byte sequence of one to four bytes
16-
* in length, as specified in Table 3-6 and Table 3-7.
16+
* in length, as specified in Table 3-6 and Table 3-7 of the Unicode Standard, Version 14.0.
1717
*/
1818
module {:options "-functionSyntax:4"} Dafny.Utf8EncodingForm refines UnicodeEncodingForm {
1919
type CodeUnit = bv8

0 commit comments

Comments
 (0)