Skip to content
Snippets Groups Projects
Commit fcac0116 authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Annotate correctly

parent 63ff8d3e
No related branches found
No related tags found
No related merge requests found
...@@ -82,6 +82,7 @@ case class Rational(numerator: BigInt, denominator: BigInt) { ...@@ -82,6 +82,7 @@ case class Rational(numerator: BigInt, denominator: BigInt) {
} }
} }
@library
object Rational { object Rational {
implicit def bigIntToRat(n: BigInt): Rational = Rational(n, 1) implicit def bigIntToRat(n: BigInt): Rational = Rational(n, 1)
......
...@@ -5,11 +5,10 @@ import leon.lang._ ...@@ -5,11 +5,10 @@ import leon.lang._
import leon.annotation._ import leon.annotation._
/** Internal helper classes and methods for the 'proof' package. */ /** Internal helper classes and methods for the 'proof' package. */
@library
object Internal { object Internal {
/*** Helper classes for relational reasoning ***/ /*** Helper classes for relational reasoning ***/
@library
case class WithRel[A, B](x: A, r: (A, B) => Boolean, prop: Boolean) { case class WithRel[A, B](x: A, r: (A, B) => Boolean, prop: Boolean) {
/** Continue with the next relation. */ /** Continue with the next relation. */
...@@ -33,6 +32,7 @@ object Internal { ...@@ -33,6 +32,7 @@ object Internal {
def qed: Boolean = prop def qed: Boolean = prop
} }
@library
case class WithProof[A, B]( case class WithProof[A, B](
x: A, r: (A, B) => Boolean, proof: Boolean, prop: Boolean) { x: A, r: (A, B) => Boolean, proof: Boolean, prop: Boolean) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment