Advertisement
elvecent

Unicode notation for Coq

Mar 20th, 2017
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. (* in case "Require Export Utf8." doesn't work*)
  2. Notation "∀ x .. y , P" := (forall x, .. (forall y, P) ..)
  3. (at level 200, x binder, y binder, right associativity) : type_scope.
  4. Notation "∃ x .. y , P" := (exists x, .. (exists y, P) ..)
  5. (at level 200, x binder, y binder, right associativity) : type_scope.
  6.  
  7. Notation "x ∨ y" := (x \/ y) (at level 85, right associativity) : type_scope.
  8. Notation "x ∧ y" := (x /\ y) (at level 80, right associativity) : type_scope.
  9. Notation "x → y" := (x -> y)
  10. (at level 90, y at level 200, right associativity): type_scope.
  11.  
  12. Notation "x ↔ y" := (x <-> y) (at level 95, no associativity): type_scope.
  13. Notation "¬ x" := (~x) (at level 75, right associativity) : type_scope.
  14. Notation "x ≠ y" := (x <> y) (at level 70) : type_scope.
  15.  
  16. (* Abstraction *)
  17. Notation "'λ' x .. y , t" := (fun x => .. (fun y => t) ..)
  18. (at level 200, x binder, y binder, right associativity).
  19. Notation "x ≤ y" := (le x y) (at level 70, no associativity).
  20. Notation "x ≥ y" := (ge x y) (at level 70, no associativity).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement