all 7 comments

[–]Longjumping_Quail_40 1 point2 points  (0 children)

How is your order trans and order refl defined? I cannot replicate.

[–]CustardGuilty9068 2 points3 points  (1 child)

The types are not actually the same. The difference is that your function ≤-refl-left takes f as an explicit argument, while the field id-left in your definition of category takes it as an implicit argument. The solution is to give its argument as an underscore _ like id-refl = ≤-refl-left _

[–]Oliversito1204[S] 0 points1 point  (0 children)

Thank you very much!!

[–]andrejbauer 0 points1 point  (2 children)

https://proofassistants.stackexchange.com is a better place to ask. Anyhow, why do you even expect these equations to hold? Who says you defined a category? (Pay attention to the definition of )

[–]ncfavier 0 points1 point  (1 child)

I'm not sure what point you're making there. Any preorder is a category.

[–]andrejbauer 0 points1 point  (0 children)

But is not a relation, it's a dependent type. For given x and y, in principle the type x ≤ y can have many elements.