Zulip Chat Archive

Stream: new members

Topic: Importing analysis.normed_spaced makes things noncomputable


Abhimanyu Pallavi Sudhir (Dec 18 2018 at 06:24):

The following code:

import data.real.basic

def seq : Type :=   
def seq_add : seq  seq  seq := λ s t n, s n + t n

Works perfectly fine, but if I add import analysis.normed_spaceto the top, seq_add becomes noncomputable, it depends on real.normed_field. But this line works perfectly with or without the import:

def seq_smul (c : ) : seq  seq := λ s n, c * (s n)

Mario Carneiro (Dec 18 2018 at 06:26):

hm, I guess the instance priorities need adjustment


Last updated: Dec 20 2023 at 11:08 UTC