Zulip Chat Archive

Stream: Is there code for X?

Topic: ENNReal.le_iInf_add_iInf


Eric Wieser (Dec 24 2024 at 13:36):

We have docs#NNReal.le_iInf_add_iInf and docs#ENNReal.iInf_add_iInf; is the following true?

theorem ENNReal.le_iInf_add_iInf {ι ι' : Sort*} [Nonempty ι] [Nonempty ι'] {f : ι  0} {g : ι'  0}
    {a : 0} (h :  i j, a  f i + g j) :
    a  ( i, f i) +  j, g j := by

is there a nicer argument than case splitting on whetherf and g are finite everywhere?

Yury G. Kudryashov (Jan 06 2025 at 18:54):

Try docs#ENNReal.add_iInf and docs#ENNReal.iInf_add

Yury G. Kudryashov (Jan 06 2025 at 18:59):

theorem ENNReal.le_iInf_add_iInf {ι ι' : Sort*} {f : ι  0} {g : ι'  0} {a : 0}
    (h :  i j, a  f i + g j) :
    a  ( i, f i) +  j, g j := by
  simp only [add_iInf, iInf_add]
  exact le_iInf₂ fun _ _  h _ _

Yaël Dillies (Jan 06 2025 at 18:59):

Yes, the reason we don't have this lemma is that it's immediate from the two Yury quoted

Eric Wieser (Jan 06 2025 at 22:36):

I think the first two are worth combining for the same reason that we have add_add_add_comm

Eric Wieser (Jan 06 2025 at 22:37):

Yaël Dillies said:

Yes, the reason we don't have this lemma is that it's immediate from the two Yury quoted

Ah, and the NNReal one isn't because it's not a complete lattice?


Last updated: May 02 2025 at 03:31 UTC