Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. open import Data.Bool
  2. open import Relation.Binary.PropositionalEquality
  3.  
  4. record Eq (A : Set) : Set where
  5. field
  6. _==_ : (x y : A) → Bool
  7.  
  8. _=/=_ : (x y : A) → Bool
  9. x =/= y = not (x == y)
  10.  
  11. open Eq {{...}}
  12.  
  13. congEq : {A : Set} {{EqA : Eq A}} (x y : A) (eq : x == y ≡ true)
  14. (x =/= y ≡ false)
  15. congEq x y e = {!!} -- Goal: not ((EqA Eq.== x) y) ≡ false
  16. {-
  17. congEq x y e with x == y
  18. ... | true = refl
  19. -}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement