Zulip Chat Archive

Stream: maths

Topic: Pi instances


NicolΓ² Cavalleri (Jun 09 2021 at 11:58):

It seems that if I have [βˆ€ x, normed_space π•œ (E x)] lean does not find and instance of [βˆ€ x, module π•œ (E x)]. Does this mean I have to redeclare the instance hierarchy for pi instances? Or am I doing something wrong? In case yes, is there a trick?

Eric Wieser (Jun 09 2021 at 12:05):

This sounds similar to the problem we've been seeing with dfinsupp which also has this type of instance argument. Can you give a MWE?

Kevin Buzzard (Jun 09 2021 at 12:10):

import analysis.normed_space.basic

variables {π•œ : Type} [normed_field π•œ]
  {E : Type β†’ Type} [βˆ€ x, normed_group (E x)]

variable [βˆ€ x, normed_space π•œ (E x)]


example : βˆ€ x, module π•œ (E x) := infer_instance
-- works fine for me

Last updated: Dec 20 2023 at 11:08 UTC