Skip to content

[Question]: How to correctly use the library for the construction of a BoundedLattice #22

@aleSuglia

Description

@aleSuglia

Hi @phadej,

I'm working with your library in order to define a bounded lattice. I've seen that everything should be constructed using joins and meets methods.
I want to construct it from a set or a range of values. Please, can you give me an example?

I've tried to use the methods joins and meets in this way:

      let s = Data.Set.fromList [1,2,3,4,5]
      let a = L.joins s
      let b = L.meets s

I don't understand how to obtain a single bounded lattice using the defined methods.
I've also tried to take the bottom and top element from a and b, but I obtain some errors. I think that I'm not correctly using the methods.

Thank you for your help.

Cheers,
Alessandro

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions