Zulip Chat Archive

Stream: new members

Topic: failed to synthesize SupSet ℝ


Alvise Sembenico (May 21 2025 at 10:21):

Hi, I am playing with a toy example because I am using supremum in a project but the following fails with the error failed to synthesize SupSet R..

example (A : Set  ) (hne : A.Nonempty) (hbdd : BddAbove A) :
     (a  A), (a+1) =  1+  (a  A), a:=
  by
    sorry

I tried many solutions but none seems to work and I would love to understand where the problem is.
Thanks!

Alvise Sembenico (May 21 2025 at 10:28):

the solution was just to import import Mathlib.Order.ConditionallyCompleteLattice.Basic. The error is quite confusing which makes it quite hard to debug

Eric Wieser (May 21 2025 at 10:33):

This type of problem will go away if you start with import Mathlib


Last updated: Dec 20 2025 at 21:32 UTC