Zulip Chat Archive

Stream: Is there code for X?

Topic: identDistrib and hasLaw


Joris van Winden (Feb 04 2026 at 15:43):

Is there a theorem which says that if two functions have the same law (via ProbabilityTheory.HasLaw), then the functions have the same distribution (via ProbabilityTheory.IdentDistrib)?

I found no results when combining the mentioned types in loogle.

Etienne Marion (Feb 04 2026 at 16:19):

@loogle ProbabilityTheory.IdentDistrib, ProbabilityTheory.HasLaw

loogle (Feb 04 2026 at 16:19):

:shrug: nothing found

Etienne Marion (Feb 04 2026 at 16:19):

No there isn't.

Joris van Winden (Feb 04 2026 at 16:20):

Would it be nice to have in mathlib? I think the proof should be easy.

Joris van Winden (Feb 04 2026 at 17:05):

#34844 feat(Probability/IdentDistrib): add of_hasLaw lemma


Last updated: Feb 28 2026 at 14:05 UTC