Zulip Chat Archive

Stream: new members

Topic: environment already contains '«term⊥»._cstage1' from Mathlib


Kevin Sullivan (Aug 28 2024 at 16:00):

Very simple import structure. With either but not both of the last of four imports all is good, but with both of them, this error. One of the imports doesn't import anything and the other imports only Mathlib.Data.Real.Basic. Anyone recognize the problem right off the bat? The full import is Mathlib.Data.Real.Basic.

Eric Wieser (Aug 28 2024 at 16:14):

Can you make a #mwe?

Kevin Sullivan (Aug 28 2024 at 16:24):

Eric Wieser said:

Can you make a #mwe?

You may fork this repo: https://github.com/kevinsullivan/cs2120f24.git

Sebastian Ullrich (Aug 28 2024 at 16:39):

You are redeclaring the mentioned notation that already exists in Mathlib. Try putting it in a namespace.

Kevin Sullivan (Aug 28 2024 at 16:43):

Sebastian Ullrich said:

You are redeclaring the mentioned notation that already exists in Mathlib. Try putting it in a namespace.

Ay yaiyai. Thx.

Cody Roux (Oct 01 2024 at 13:45):

While we're at it, is it possible to have this exact comment as the error message?


Last updated: May 02 2025 at 03:31 UTC