feat(Combinatorics/SimpleGraph/Clique): use IsContained instead of an explicit embedding from top#35613
Conversation
…an explicit embedding from top
PR summary 4fea51b80cImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
…ned` / `Iso.isContained'`
| noncomputable def completeGraphEmbeddingOfNotCliqueFree {n : ℕ} (h : ¬G.CliqueFree n) : | ||
| completeGraph (Fin n) ↪g G := by |
There was a problem hiding this comment.
I don't see the point of renaming this
| noncomputable def completeGraphEmbeddingOfNotCliqueFree {n : ℕ} (h : ¬G.CliqueFree n) : | |
| completeGraph (Fin n) ↪g G := by | |
| noncomputable def topEmbeddingOfNotCliqueFree {n : ℕ} (h : ¬G.CliqueFree n) : | |
| completeGraph (Fin n) ↪g G := by |
There was a problem hiding this comment.
The convention can't be to use completeGraph but then to name things with "top". This doesn't align with Mathlib's conventions. If this remains "top", then I can revert the completeGraph change.
The same applies to the other comment.
There was a problem hiding this comment.
Yet unfolding abbrevs that are there for discoverability when naming a lemma is the convention. See also typeLT vs type_lt for another example
There was a problem hiding this comment.
typeLT is notation, not abbrev
There was a problem hiding this comment.
I know, I know, but this is an implementation detail
There was a problem hiding this comment.
What about WellFoundedLT which is an abbrev for WellFounded?
Almost all lemmas that reference it are named with wellFoundedLT and not wellFounded_lt.
YaelDillies
left a comment
There was a problem hiding this comment.
Thanks! 🚀
maintainer merge
|
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
This makes theorems require only a proof that a
Copyexists rather than provide an explicitEmbedding.Also tag monotonicity lemmas with
@[gcongr], and addCopy.isContained/Embedding.isIndContained/Embedding.isContained/Iso.isContained'.This isn't a generalization per-se since one could use choice plus
Copy.topEmbeddingto upgrade theIsContainedto an embedding, butIsContainedmakes more sense in theorems.