Zulip Chat Archive

Stream: Is there code for X?

Topic: ENNReal fractions


Peter (Jul 30 2025 at 23:20):

I'm working with ENNReal right now, and I'm wondering if there's some way to prove this in one or two lines:

import Mathlib

lemma problem (a b c : ENNReal) : a / (c * d) = a / c / d := by sorry

It seems this should be a one-liner, but can't find anything in Mathlib.

Aaron Liu (Jul 30 2025 at 23:30):

#new members > Performing arithmetic with ENNReals

Kenny Lau (Jul 30 2025 at 23:34):

import Mathlib

open ENNReal

lemma problem (h :  (a c d : ENNReal), a / (c * d) = a / c / d) : False := by
  specialize h 1 0 
  simp at h

Aaron Liu (Jul 30 2025 at 23:35):

yeah that's a problem

Kenny Lau (Jul 30 2025 at 23:41):

yeah, it's a bit hard to prove False unless you were using a version of mathlib a few months ago


Last updated: Dec 20 2025 at 21:32 UTC