Skip to content

Diamond for CompleteBooleanAlgebra of Set's #10941

Closed

Description

@mattrobball

From leanprover-community/mathlib3#16932, we have

import Mathlib.Data.Set.Lattice

variable {α : Type*}

-- Succeeds
example : @Set.instBooleanAlgebraSet α = Pi.booleanAlgebra := by
  with_reducible_and_instances rfl

-- Fails
example : (@Set.completeAtomicBooleanAlgebra α).toCompleteBooleanAlgebra = Pi.completeBooleanAlgebra := rfl

See also the Zulip discussion

Activity

  1. urkud commented on Feb 25, 2024

    @urkud
    Member

    AFAICT, we intentionally override some fields to have better definitional equalities for a ∈ ⋃₀ S.

  2. SnirBroshi commented on Jul 24, 2026

    @SnirBroshi
    Collaborator

    I think that this is the current status:

    import Mathlib.Data.Set.Lattice
    variable {α : Type*}
    
    -- fails
    example : @Set.instBooleanAlgebra α = Pi.instBooleanAlgebra := by with_implicit rfl
    
    -- fails
    example : (@Set.instCompleteAtomicBooleanAlgebra α).toCompleteBooleanAlgebra = Pi.instCompleteBooleanAlgebra := rfl

    so I'm not sure whether this is still an issue, but the recent effort to make Set a 1-field structure (#41506) should surely solve this.

  3. added a commit that references this issue on Oct 13, 2026
    ba9c63d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions