-
Notifications
You must be signed in to change notification settings - Fork 980
feat: add lemmas about doubly stochastic matrices #33394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat: add lemmas about doubly stochastic matrices #33394
Conversation
PR summary 69fc0048aaImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
j-loreaux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @[simp, grind .] | ||
| lemma permMatrix_mem_doublyStochastic {σ : Equiv.Perm n} : | ||
| σ.permMatrix R ∈ doublyStochastic R n := by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this mean that grind will add a σ.permMatrix R ∈ doublyStochastic R n fact to the context whenever it sees σ : Equiv.Perm n? That seems a bit much to me, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, here's the pattern this generates:
permMatrix_mem_doublyStochastic: [@Membership.mem _ (Submonoid _ _) _ (doublyStochastic #7 #6 #5 #4 #3 #2 #1) (@PEquiv.toMatrix _ _ _ _ _ _ (@Equiv.toPEquiv _ _ #0))]
So it's quite specific, it pretty much needs to see this exact statement.
This PR adds a few basic lemmas about doubly stochastic matrices.