Advertisement
Guest User

Untitled

a guest
Jan 9th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. open import Relation.Binary.PropositionalEquality
  2. open import Data.Integer
  3.  
  4. record Group {G : Set} (_⋄_ : G → G → G) (e : G) (_⁻¹ : G → G) : Set where
  5. field
  6. assoc : (x y z : G) → (x ⋄ y) ⋄ z ≡ x ⋄ (y ⋄ z)
  7. neutral-l : (g : G) → e ⋄ g ≡ g
  8. inverse-l : (g : G) → (g ⁻¹) ⋄ g ≡ e
  9.  
  10. instance
  11. ⟨ℤ,+⟩ : Group _+_ (ℤ.pos 0) -_
  12. ⟨ℤ,+⟩ = ?
  13.  
  14. ---------------------------------------------------------------------------
  15. Parser Error
  16. ---------------------------------------------------------------------------
  17.  
  18. Don't know how to parse Group _+_ (ℤ.pos 0) -_. Could mean any one
  19. of:
  20. ((Group _+_) (ℤ.pos 0)) -_
  21. ((Group _+_) (ℤ.pos 0)) -_
  22. Operators used in the grammar:
  23. -_ (postfix operator section, level 6) [_-_ (/nix/store/y9wqjp24ws1xzhnvr11khjdb0qwdldks-agda-stdlib-0.13/share/agda/Data/Integer/Base.agda:94,1-4)]
  24. (the treatment of operators was changed in Agda 2.5.1, so code that
  25. used to parse may have to be changed)
  26. when scope checking Group _+_ (ℤ.pos 0) -_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement