Skip to content

[Merged by Bors] - feat(Data/List/Sigma): Lemmas relating List.dlookup and List.append - #15951

Closed
vihdzp wants to merge 3 commits into
masterfrom
vi.dlookup_append
Closed

vihdzp wants to merge 3 commits into
masterfrom
vi.dlookup_append

Conversation

@vihdzp

@vihdzp vihdzp commented Aug 18, 2024 •

Copy link
Copy Markdown
Collaborator

Conflicts with #15928 but can be merged in any order.

Both of these lemmas are used in my development of the Cantor normal form.

Open in Gitpod

@vihdzp vihdzp added the t-data Data (lists, quotients, numbers, etc) label Aug 18, 2024
@github-actions

github-actions Bot commented Aug 18, 2024 •

Copy link
Copy Markdown

PR summary a1862bb66f

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ dlookup_append

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.

@vihdzp vihdzp changed the title feat(Data/List/Sigma): lemmas relating dlookup and append feat(Data/List/Sigma): Lemmas relating List.dlookup and List.append Aug 18, 2024
Comment thread Mathlib/Data/List/Sigma.lean Resolved

@eric-wieser eric-wieser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I pushed some tweaks, from least to most opinionated:

  • Arguments to lemmas about = are usually explicit
  • induction is now preferred to induction'
  • iterate makes the proof a little harder to inspect, and rfl is usually worse than finding the right lemma if you're already using other lemmas
  • Decidable.eq_or_ne saves needing Classical.choice, but no one really cares

Feel free to revert either of the last two if you disagree with them

bors d+

@mathlib-bors

mathlib-bors Bot commented Aug 21, 2024

Copy link
Copy Markdown
Contributor

✌️ vihdzp can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Aug 21, 2024
@vihdzp

vihdzp commented Aug 21, 2024

Copy link
Copy Markdown
Collaborator Author

I like this statement a lot better.

bors r+

mathlib-bors Bot pushed a commit that referenced this pull request Aug 21, 2024
@mathlib-bors

mathlib-bors Bot commented Aug 21, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Data/List/Sigma): Lemmas relating List.dlookup and List.append [Merged by Bors] - feat(Data/List/Sigma): Lemmas relating List.dlookup and List.append Aug 21, 2024
@mathlib-bors mathlib-bors Bot closed this Aug 21, 2024
@mathlib-bors
mathlib-bors Bot deleted the vi.dlookup_append branch August 21, 2024 23:14
bjoernkjoshanssen pushed a commit that referenced this pull request Sep 9, 2024
bjoernkjoshanssen pushed a commit that referenced this pull request Sep 9, 2024
bjoernkjoshanssen pushed a commit that referenced this pull request Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-data Data (lists, quotients, numbers, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants