logic.nim 394 B

1234567891011
  1. ## This module provides further logic operators like 'forall' and 'exists'
  2. ## They are only supported in `.ensures` etc pragmas.
  3. proc `->`*(a, b: bool): bool {.magic: "Implies".}
  4. proc `<->`*(a, b: bool): bool {.magic: "Iff".}
  5. proc forall*(args: varargs[untyped]): bool {.magic: "Forall".}
  6. proc exists*(args: varargs[untyped]): bool {.magic: "Exists".}
  7. proc old*[T](x: T): T {.magic: "Old".}