Zulip Chat Archive
Stream: general
Topic: Mathematics behind 'structure'
Bart Michels (Jun 04 2022 at 10:07):
I wonder what structures in Lean correspond to in type theory. My hypothesis is that they're not really a mathematical thing but an abstraction to avoid code repetition, and which Lean is able to translate into actual mathematics. A bit like abstract classes in Java, with the theorems about structures being non-abstract methods?
Johan Commelin (Jun 04 2022 at 10:07):
I think it's just syntactic sugar around an inductive type with one constructor... but I might be wrong.
Last updated: Dec 20 2023 at 11:08 UTC