| | |
| |
|
| | |
| | * Original: Copyright (c) Microsoft Corporation |
| | * SPDX-License-Identifier: MIT |
| | * |
| | * Modifications and Extensions: Copyright by the contributors to the Dafny Project |
| | * SPDX-License-Identifier: MIT |
| | *******************************************************************************/ |
| |
|
| | module {:options "-functionSyntax:4"} MulInternalsNonlinear { |
| |
|
| | |
| | verification is highly unstable! */ |
| |
|
| | |
| | lemma LemmaMulStrictlyPositive(x: int, y: int) |
| | ensures (0 < x && 0 < y) ==> (0 < x * y) |
| | {} |
| |
|
| | |
| | lemma LemmaMulNonzero(x: int, y: int) |
| | ensures x * y != 0 <==> x != 0 && y != 0 |
| | {} |
| |
|
| | |
| | lemma LemmaMulIsAssociative(x: int, y: int, z: int) |
| | ensures x * (y * z) == (x * y) * z |
| | {} |
| |
|
| | |
| | lemma LemmaMulIsDistributiveAdd(x: int, y: int, z: int) |
| | ensures x * (y + z) == x * y + x * z |
| | {} |
| |
|
| | |
| | lemma LemmaMulOrdering(x: int, y: int) |
| | requires x != 0 |
| | requires y != 0 |
| | requires 0 <= x * y |
| | ensures x * y >= x && x * y >= y |
| | {} |
| |
|
| | |
| | lemma LemmaMulStrictInequality(x: int, y: int, z: int) |
| | requires x < y |
| | requires z > 0 |
| | ensures x * z < y * z |
| | {} |
| |
|
| | } |
| |
|