-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into adomani/slimmer_min…
…_imports
- Loading branch information
Showing
203 changed files
with
4,716 additions
and
1,825 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/- | ||
Copyright (c) 2024 Eric Wieser. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Eric Wieser | ||
-/ | ||
import Mathlib.Algebra.BigOperators.Group.Finset | ||
import Mathlib.Data.Finset.Sym | ||
import Mathlib.Data.Sym.Sym2.Order | ||
|
||
/-! | ||
# Lemmas on `Finset.sum` and `Finset.prod` involving `Finset.sym2` | ||
-/ | ||
|
||
theorem Finset.sum_sym2_filter_not_isDiag {ι α} [LinearOrder ι] [AddCommMonoid α] | ||
(s : Finset ι) (p : Sym2 ι → α) : | ||
∑ i ∈ s.sym2 with ¬ i.IsDiag, p i = ∑ i ∈ s.offDiag with i.1 < i.2, p s(i.1, i.2) := by | ||
rw [Finset.offDiag_filter_lt_eq_filter_le] | ||
conv_rhs => rw [← Finset.sum_subtype_eq_sum_filter] | ||
refine (Finset.sum_equiv Sym2.sortEquiv.symm ?_ ?_).symm | ||
· rintro ⟨⟨i₁, j₁⟩, hij₁⟩ | ||
simp [and_assoc] | ||
· rintro ⟨⟨i₁, j₁⟩, hij₁⟩ | ||
simp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/- | ||
Copyright (c) 2024 Christian Merten. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Christian Merten | ||
-/ | ||
import Mathlib.Algebra.Category.Ring.Constructions | ||
import Mathlib.CategoryTheory.Limits.Shapes.Pullback.CommSq | ||
import Mathlib.LinearAlgebra.Basis.VectorSpace | ||
import Mathlib.RingTheory.Flat.FaithfullyFlat | ||
|
||
/-! | ||
# Results on the category of rings requiring linear algebra | ||
## Results | ||
- `CommRingCat.nontrivial_of_isPushout_of_isField`: the pushout of non-trivial rings over a field | ||
is non-trivial. | ||
-/ | ||
|
||
universe u | ||
|
||
open CategoryTheory Limits TensorProduct | ||
|
||
namespace CommRingCat | ||
|
||
lemma nontrivial_of_isPushout_of_isField {A B C D : CommRingCat.{u}} | ||
(hA : IsField A) {f : A ⟶ B} {g : A ⟶ C} {inl : B ⟶ D} {inr : C ⟶ D} | ||
[Nontrivial B] [Nontrivial C] | ||
(h : IsPushout f g inl inr) : Nontrivial D := by | ||
letI : Field A := hA.toField | ||
algebraize [RingHomClass.toRingHom f, RingHomClass.toRingHom g] | ||
let e : D ≅ .of (B ⊗[A] C) := | ||
IsColimit.coconePointUniqueUpToIso h.isColimit (CommRingCat.pushoutCoconeIsColimit A B C) | ||
let e' : D ≃ B ⊗[A] C := e.commRingCatIsoToRingEquiv.toEquiv | ||
exact e'.nontrivial | ||
|
||
end CommRingCat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.