Skip to content

Set bug in comparison of finite groups #40041

@microncomputer

Description

@microncomputer

Steps To Reproduce

Hi, I am using Set to check equality of groups by making Sets of the permutations. It should be true for all x 0-9 inclusive and gives true for 1-8 but false for 0 and 9 despite the fact that all the elements are there.

pete = graphs.PetersenGraph()
autpete = pete.automorphism_group()
pointstabilizers = [[g for g in autpete if g(x) == x] for x in pete.vertices()]

subgroup_check = [PermutationGroup(pointstabilizers[i]) for i in range(len(pointstabilizers))]

for i in range(10):
    print(Set(subgroup_check[i])  == Set(pointstabilizers[i]), all([u in Set(subgroup_check[i]) for u in Set(pointstabilizers[i])]))

returns

False True
True True
True True
True True
True True
True True
True True
True True
True True
False True

Expected Behavior

equality

Actual Behavior

only sometimes

Additional Information

No response

Environment

  • OS: WSL2 ubuntu 22
  • Sage Version: 10.4

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions