Skip to content

[Merged by Bors] - feat: computation of Levenshtein edit distance#6117

Closed
kim-em wants to merge 19 commits intomasterfrom
edit_distance_defs
Closed

[Merged by Bors] - feat: computation of Levenshtein edit distance#6117
kim-em wants to merge 19 commits intomasterfrom
edit_distance_defs

Conversation

@kim-em
Copy link
Copy Markdown
Contributor

@kim-em kim-em commented Jul 25, 2023

Subsequent PRs will prove properties of this definition, and implement the rw_search tactic using it.


Open in Gitpod

@kim-em kim-em added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. labels Jul 25, 2023
@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jul 25, 2023
@kim-em kim-em added the t-combinatorics Combinatorics label Aug 6, 2023
@jcommelin
Copy link
Copy Markdown
Member

Thanks 🎉

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Aug 14, 2023
Comment on lines +282 to +288
#guard
(suffixLevenshtein Levenshtein.defaultCost "kitten".toList "sitting".toList).1 =
[3, 3, 4, 5, 6, 6, 7]

#guard levenshtein Levenshtein.defaultCost
"but our fish said, 'no! no!'".toList
"'put me down!' said the fish.".toList = 21
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.

Should these be in a separate test file? Should we have a style guide that gives an opinion on this?

(no need to un-bors the PR, we can clean this type of thing up another time)

bors bot pushed a commit that referenced this pull request Aug 14, 2023
Subsequent PRs will prove properties of this definition, and implement the `rw_search` tactic using it.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@bors
Copy link
Copy Markdown

bors bot commented Aug 14, 2023

This PR was included in a batch that was canceled, it will be automatically retried

bors bot pushed a commit that referenced this pull request Aug 14, 2023
Subsequent PRs will prove properties of this definition, and implement the `rw_search` tactic using it.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
bors bot pushed a commit that referenced this pull request Aug 14, 2023
Subsequent PRs will prove properties of this definition, and implement the `rw_search` tactic using it.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
bors bot pushed a commit that referenced this pull request Aug 14, 2023
Subsequent PRs will prove properties of this definition, and implement the `rw_search` tactic using it.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
bors bot pushed a commit that referenced this pull request Aug 14, 2023
Subsequent PRs will prove properties of this definition, and implement the `rw_search` tactic using it.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
bors bot pushed a commit that referenced this pull request Aug 14, 2023
Subsequent PRs will prove properties of this definition, and implement the `rw_search` tactic using it.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
bors bot pushed a commit that referenced this pull request Aug 14, 2023
Subsequent PRs will prove properties of this definition, and implement the `rw_search` tactic using it.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
bors bot pushed a commit that referenced this pull request Aug 14, 2023
Subsequent PRs will prove properties of this definition, and implement the `rw_search` tactic using it.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
bors bot pushed a commit that referenced this pull request Aug 14, 2023
Subsequent PRs will prove properties of this definition, and implement the `rw_search` tactic using it.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@bors
Copy link
Copy Markdown

bors bot commented Aug 14, 2023

Canceled.

@github-actions github-actions bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Aug 14, 2023
@eric-wieser
Copy link
Copy Markdown
Member

This won't compile against master due to auto implicit.

I pushed the four character fix, but wonder if the offending lemma should exist at all (see my comment above).

tb65536 and others added 11 commits August 15, 2023 17:04
This PR protects `Function.Commute`, so that it no longer clashes with `Commute` in the root namespace, as suggested by @j-loreaux in #6290.
… ≃ (Aᵐᵒᵖ ≃ₐ[R] B)` (#6525)

This also adds the missing `AlgEquiv.equivCongr` as a more general version of `AlgEquiv.autCongr`.
…ar order (#6571)

Currently, in a conditionally complete linear order, the supremum of an unbounded set hasn't any specific property. However, in all instances in mathlib, all unbounded sets have the same supremum. This PR adds this requirement in mathlib. This will be convenient to remove boundedness assumptions in measurability statements.
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
Removing some linters and error codes that are not Lean 4 relevant



Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Prove [Gershgorin circle theorem](https://en.wikipedia.org/wiki/Gershgorin_circle_theorem) and some applications that will be useful for the proof of Dirichlet's unit theorem #5960
… identities (#6139)

Co-authored-by: michaellee94 <michael.a.rodrigues.lee@gmail.com>
Co-authored-by: Oliver Nash <github@olivernash.org>
@eric-wieser
Copy link
Copy Markdown
Member

@semorrison, it looks like you ran a rebase with the wrong arguments; can you revert the last few commits and try again?

@kim-em
Copy link
Copy Markdown
Contributor Author

kim-em commented Aug 15, 2023

It was an automatic rebase, no arguments from me! :-) In any case, I'd already merged this branch up into all the dependent PRs before seeing this, so I think it's done now. I'll happily share the credit!

@kim-em
Copy link
Copy Markdown
Contributor Author

kim-em commented Aug 15, 2023

bors merge

@kim-em
Copy link
Copy Markdown
Contributor Author

kim-em commented Aug 16, 2023

bors seems to be confused on this one.

bors r-

@kim-em
Copy link
Copy Markdown
Contributor Author

kim-em commented Aug 16, 2023

bors r+

bors bot pushed a commit that referenced this pull request Aug 16, 2023
Subsequent PRs will prove properties of this definition, and implement the `rw_search` tactic using it.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Thomas Browning <tb65536@uw.edu>
Co-authored-by: Chris Hughes <chrishughes24@gmail.com>
Co-authored-by: Oliver Nash <github@olivernash.org>
Co-authored-by: sgouezel <sebastien.gouezel@univ-rennes1.fr>
Co-authored-by: Alex J Best <alex.j.best@gmail.com>
Co-authored-by: Xavier Roblot <46200072+xroblot@users.noreply.github.com>
Co-authored-by: michaellee94 <michael_lee1@brown.edu>
@bors
Copy link
Copy Markdown

bors bot commented Aug 16, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title feat: computation of Levenshtein edit distance [Merged by Bors] - feat: computation of Levenshtein edit distance Aug 16, 2023
@bors bors bot closed this Aug 16, 2023
@bors bors bot deleted the edit_distance_defs branch August 16, 2023 04:31
kim-em added a commit that referenced this pull request Aug 17, 2023
Subsequent PRs will prove properties of this definition, and implement the `rw_search` tactic using it.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Thomas Browning <tb65536@uw.edu>
Co-authored-by: Chris Hughes <chrishughes24@gmail.com>
Co-authored-by: Oliver Nash <github@olivernash.org>
Co-authored-by: sgouezel <sebastien.gouezel@univ-rennes1.fr>
Co-authored-by: Alex J Best <alex.j.best@gmail.com>
Co-authored-by: Xavier Roblot <46200072+xroblot@users.noreply.github.com>
Co-authored-by: michaellee94 <michael_lee1@brown.edu>
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). ready-to-merge This PR has been sent to bors. t-combinatorics Combinatorics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants