Zulip Chat Archive
Stream: general
Topic: Representing units / dimensional analysis?
Lhr (Feb 11 2026 at 14:52):
In other languages you can use branded opaque types for representing units like seconds or minutes. In F# you can parameterize the builtin scalar types by a unit, Int<Second> or something like that.
What would be the recommended way for encoding units and doing dimensional analysis in lean4? Thanks
Niels Voss (Feb 11 2026 at 17:16):
You might be interested in https://leanprover.zulipchat.com/#narrow/channel/479953-PhysLean/topic/physical.20units/with/547978619
Last updated: Feb 28 2026 at 14:05 UTC