Zulip Chat Archive
Stream: maths
Topic: invalid structure header
Ashvni Narayanan (Jun 16 2021 at 17:56):
import algebra.group.hom
structure monoid_hom' (M : Type*) (N : Type*) [mul_one_class M] [mul_one_class N]
extends one_hom M N, mul_hom M N
I copy pasted the definition of monoid_hom
in my file. When I run this (not necessarily with the same import), I get the following error :
invalid 'structure' header, field 'to_fun' from 'mul_hom' has already been declared
What am I missing? Any help is appreciated, thank you!
Johan Commelin (Jun 16 2021 at 17:59):
But set_option old_structure_cmd true
above the structure
command. It's a technical implementation thingy.
Ashvni Narayanan (Jun 16 2021 at 18:02):
Great, it works! Thank you!
Last updated: Dec 20 2023 at 11:08 UTC