You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespace Hidden
classHMul (α : Type u) (β : Type v) (γ : outParam (Type w)) where
hMul : α → β → γ
export HMul (hMul)
instanceinstHMulInt : HMul Int Int Int where
hMul := Int.mul
-- Error "typeclass instance problem is stuck, it is often due to metavariables HMul ?m.89 ?m.90 ?m.91"-- `y` の型を明示的に与えればエラーは消える
#check_failure fun y => (fun x => x * y)
attribute [default_instance] instHMulInt
#check fun y => (fun x => x * y)
end Hidden
使用例は、OfNat インスタンスをNatではなくて他の集合に移すなど。
TPiLにも例があった気がする
The text was updated successfully, but these errors were encountered: