Skip to content

refactor(GreensOpenProblems): add tests for Green 51#4309

Merged
mo271 merged 2 commits into
google-deepmind:mainfrom
jeangud:green-51-refactor
Jun 25, 2026
Merged

refactor(GreensOpenProblems): add tests for Green 51#4309
mo271 merged 2 commits into
google-deepmind:mainfrom
jeangud:green-51-refactor

Conversation

@jeangud

@jeangud jeangud commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Description

Proposing a small refactor for Green 51 as I prepare Green 52, 53.

  • Adds tests for the maxCosetDim construct
  • Factor construct out into FormalConjecturesForMathlib for re-usability
  • 🤖 Initial draft obtained with Gemini 3.1 Pro and refined manually for style and correctness. Test suite devised manually and then fully implemented through Gemini 3.1 Pro.

Testing

✅ Files build successfully

$ lake build FormalConjectures/GreensOpenProblems/51.lean
Build completed successfully (8035 jobs).

✅ Tests pass

$ lake build FormalConjecturesTest/ForMathlib/Combinatorics/Additive/CosetTest.lean
Build completed successfully (7886 jobs).

@github-actions

Copy link
Copy Markdown

👋 This is an automated welcome message. 🤖
Thanks for the contributions!

A few friendly reminders while the review gets started:

  • Please take a look at the style guidelines,
    especially the conventions for references, categories, AMS tags, and answer(sorry).
  • You can manage some PR labels by leaving a comment with +label-name or -label-name; for example, +awaiting-author or -awaiting-author.
  • This repository is mainly for formalised statements. Proofs longer than about 25-50 lines are usually out of scope; longer proofs are welcome to be included/linked via the formal_proof mechanism.

Thanks again for helping improve Formal Conjectures.

@github-actions github-actions Bot added the green-problems Problems from https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf label Jun 24, 2026
Comment thread FormalConjecturesForMathlib/Data/ZMod/F2.lean Outdated

@mo271 mo271 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks, LGTM!

Comment thread FormalConjectures/GreensOpenProblems/51.lean Outdated
@mo271 mo271 added the awaiting-author The author should answer a question or perform changes. Reply when done. label Jun 24, 2026
@jeangud jeangud force-pushed the green-51-refactor branch from fa5f1be to 5227fc8 Compare June 24, 2026 15:22
mo271 pushed a commit that referenced this pull request Jun 24, 2026
# Description
This PR proposes to introduce a notation shorthand for 𝔽-p groups, which
is already used (and redefined each time) in files over the repo.

**Note:** to be merged before #4305 and #4309

# Testing
:white_check_mark: Built the whole repo successfully
```shell
$ lake --wfail build
Build completed successfully (8814 jobs).
```
@jeangud jeangud force-pushed the green-51-refactor branch from 5227fc8 to 6407aad Compare June 24, 2026 19:23
@jeangud jeangud force-pushed the green-51-refactor branch from 0db8e0e to 8475324 Compare June 24, 2026 19:55
@jeangud jeangud removed the awaiting-author The author should answer a question or perform changes. Reply when done. label Jun 25, 2026

@mo271 mo271 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks again!

@mo271 mo271 merged commit a4f6ee1 into google-deepmind:main Jun 25, 2026
12 of 13 checks passed
mo271 pushed a commit that referenced this pull request Jun 25, 2026
# Description
> Suppose that $A \subset \mathbb{F}_2^n$ is a set with an additive
complement of size $K$ (that is, for which there is another set $S
\subset \mathbb{F}_2^n$, $|S| = K$, with $A + S = \mathbb{F}_2^n$). Does
$2A$ contain a coset of codimension $O_K(1)$? Could it even contain a
coset of codimension $O(\log K)$?
[[Gr24](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.52)]

- Closes #1657
- **Update:** I had initially implemented this with the `maxCosetDim`
helper from [Green
51](https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/GreensOpenProblems/51.lean)
but it complicated everything
- This present implementation is simpler, and focuses on existential
statements, without unnecessary maximality considerations.
- The byproducts of the first attempt might still be useful and were
filed under #4309 if needed
- 🤖 Initial draft obtained with **Gemini 3.1 Pro** and refined
manually for style and correctness.
- Variants left as a later exercise to keep this PR short

# Testing
✅ Files build successfully

```shell
$ lake build FormalConjectures/GreensOpenProblems/52.lean
Build completed successfully (8035 jobs).
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

green-problems Problems from https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants