Skip to content

Remove some confusion in gap interface conversion method#39909

Merged
vbraun merged 15 commits intosagemath:developfrom
user202729:gap-fix-interface
Jan 6, 2026
Merged

Remove some confusion in gap interface conversion method#39909
vbraun merged 15 commits intosagemath:developfrom
user202729:gap-fix-interface

Conversation

@user202729
Copy link
Copy Markdown
Contributor

@user202729 user202729 commented Apr 8, 2025

See the documentation changes in the issue below for an explanation why this change is correct. Basically _gap_ must take in an interface object and return element of that object; while _libgap_ must take no argument and return libgap element.

Also make IncidenceStructure inherit from SageObject — as noted in the documentation of SageObject, all objects visible to the user ought to inherit from it.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

#39905

Not strictly necessary, but useful to see why this change is correct.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2025

Documentation preview for this PR (built with commit d6b3f14; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@fchapoton fchapoton self-assigned this May 24, 2025
Comment thread src/sage/combinat/designs/incidence_structures.py Outdated
@user202729
Copy link
Copy Markdown
Contributor Author

user202729 commented Jun 29, 2025

All tests passed. Not sure about gap/libgap separation correctness though.

The task is made worse by some files such as /src/sage/groups/class_function.py having two classes that is almost identical except that one uses gap and the other uses libgap. And also minor inconsistencies such as

sage: gap([1, 2])[1]
1
sage: libgap([1, 2])[1]
2

@user202729 user202729 marked this pull request as ready for review June 29, 2025 04:52
@user202729 user202729 changed the title Remove confusion in gap interface conversion method Remove some confusion in gap interface conversion method Jun 29, 2025
@fchapoton fchapoton mentioned this pull request Jan 1, 2026
3 tasks
Copy link
Copy Markdown
Contributor

@fchapoton fchapoton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks reasonable ; this will require further cleanup though

vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 4, 2026
sagemathgh-39909: Remove some confusion in gap interface conversion method
    
See the documentation changes in the issue below for an explanation why
this change is correct. Basically `_gap_` must take in an interface
object and return element of that object; while `_libgap_` must take no
argument and return libgap element.

Also make `IncidenceStructure` inherit from `SageObject` — as noted in
the documentation of `SageObject`, all objects visible to the user ought
to inherit from it.

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

sagemath#39905

Not strictly necessary, but useful to see why this change is correct.
    
URL: sagemath#39909
Reported by: user202729
Reviewer(s): Frédéric Chapoton, user202729
@vbraun vbraun merged commit 845d8d4 into sagemath:develop Jan 6, 2026
22 of 24 checks passed
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 13, 2026
sagemathgh-41372: some details in Galois groups
    
in particular, explicit use of  `_libgap_`

motivated by sagemath#39909

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
    
URL: sagemath#41372
Reported by: Frédéric Chapoton
Reviewer(s): Travis Scrimshaw
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 14, 2026
sagemathgh-41372: some details in Galois groups
    
in particular, explicit use of  `_libgap_`

motivated by sagemath#39909

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
    
URL: sagemath#41372
Reported by: Frédéric Chapoton
Reviewer(s): Travis Scrimshaw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants