Last active
September 16, 2025 15:13
-
-
Save damienstanton/64432ee22e0826d1f4fb66518ebeaa3d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
structure Box α where | |
val: α | |
namespace Box | |
def extract (b : Box α) := b.val | |
end Box | |
def a := Box.mk 42 | |
def b := a.extract | |
def c := Box.mk b | |
example : a = c := by rfl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment