lean4-htt/tests/lean/run/Miller1.lean
2021-01-13 18:41:01 -08:00

16 lines
536 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class HasMulComm (α : Type u) [Mul α] : Prop where
mulComm : {a b : α} → a * b = b * a
class A (α : Type u) extends Mul α
attribute [instance] A.mk
class B (α : Type u) extends A α, HasMulComm α
attribute [instance] B.mk
example [Mul α] : A α := inferInstance
example [Mul α] [HasMulComm α] : A α := inferInstance
example [B α] : A α := inferInstance
example [A α] [HasMulComm α] : B α := inferInstance
example [Mul α] [HasMulComm α] : B α := inferInstance
example [Mul α] [HasMulComm α] : B α := B.mk