Zulip Chat Archive
Stream: new members
Topic: How to construct a frame with two elements
Christian Corbett (Apr 28 2025 at 19:20):
Hello,
I am trying to construct a frame {0,1} consisting of only two elements. In lieu of building it manually, I am using the fact that Lean recognizes Prop as an object in the typeclass Frame:
import Mathlib.Order.CompleteBooleanAlgebra
open Order
#check (inferInstance : Frame Prop)
However, I am wary that there might be some conflicts that arise when using Prop as a two element frame. I tried using Bool:
#check (inferInstance : Frame Bool)
but this fails in Lean. Does anyone have any recommendations about how they would construct a two element frame?
Christian Corbett (Apr 28 2025 at 19:34):
Oops, I realized I needed
import Mathlib.Data.Fintype.Order
for
#check (inferInstance : Frame Bool)
to pass. I'm still unsure if this is the best way to construct a two element frame in Lean.
Eric Wieser (Apr 29 2025 at 00:54):
Generally I would recommend import Mathlib
when trying to answer the question "does this instance exist"
Matt Diamond (Apr 29 2025 at 02:35):
also, you can do #synth Frame Bool
Last updated: May 02 2025 at 03:31 UTC