state
stringlengths
0
159k
srcUpToTactic
stringlengths
387
167k
nextTactic
stringlengths
3
9k
declUpToTactic
stringlengths
22
11.5k
declId
stringlengths
38
95
decl
stringlengths
16
1.89k
file_tag
stringlengths
17
73
X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) ⊢ ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (BinaryCofan.inl c) ∨ x ∈ Set.range (Binar...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
rw [eq_compl_iff_isCompl.mpr h₃.symm]
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) ⊢ ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (BinaryCofan.inl c) ∨ x ∈ (Set.range (Bina...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
exact fun _ => or_not
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (BinaryCofan.i...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
refine' ⟨BinaryCofan.IsColimit.mk _ _ _ _ _⟩
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_1 X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (Bin...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
intro T f g x
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_1 X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (Bin...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
exact if h : x ∈ Set.range c.inl then f ((Equiv.ofInjective _ h₁).symm ⟨x, h⟩) else g ((Equiv.ofInjective _ h₂).symm ⟨x, (this x).resolve_left h⟩)
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_2 X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (Bin...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
intro T f g
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_2 X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (Bin...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
funext x
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_2.h X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (B...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
dsimp
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_2.h X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (B...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
simp [h₁.eq_iff]
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_3 X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (Bin...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
intro T f g
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_3 X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (Bin...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
funext x
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_3.h X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (B...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
dsimp
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_3.h X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (B...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
simp only [Set.mem_range, Equiv.ofInjective_symm_apply, dite_eq_right_iff, forall_exists_index]
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_3.h X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (B...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
intro y e
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_3.h X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (B...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
have : c.inr x ∈ Set.range c.inl ⊓ Set.range c.inr := ⟨⟨_, e⟩, ⟨_, rfl⟩⟩
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_3.h X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this✝ : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
rw [disjoint_iff.mp h₃.1] at this
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_3.h X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this✝ : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
exact this.elim
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_4 X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (Bin...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
rintro T _ _ m rfl rfl
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_4 X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (Bin...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
funext x
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_4.h X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (B...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
dsimp
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case mpr.intro.intro.refine'_4.h X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (B...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
split_ifs
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case pos X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (BinaryCofan.inl c) ∨ x ∈ ...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
exact congr_arg _ (Equiv.apply_ofInjective_symm _ ⟨_, _⟩).symm
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
case neg X Y : Type u c : BinaryCofan X Y h₁ : Injective (BinaryCofan.inl c) h₂ : Injective (BinaryCofan.inr c) h₃ : IsCompl (Set.range (BinaryCofan.inl c)) (Set.range (BinaryCofan.inr c)) this : ∀ (x : ((Functor.const (Discrete WalkingPair)).obj c.pt).obj { as := left }), x ∈ Set.range (BinaryCofan.inl c) ∨ x ∈ ...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
exact congr_arg _ (Equiv.apply_ofInjective_symm _ ⟨_, _⟩).symm
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr) := by classical constructor · rintro ⟨h⟩ rw [← show _ = c.inl from h.comp_coconePointUniqueUpToIso_inv (bi...
Mathlib.CategoryTheory.Limits.Shapes.Types.302_0.ctQAUYXLRXnvMGw
theorem binaryCofan_isColimit_iff {X Y : Type u} (c : BinaryCofan X Y) : Nonempty (IsColimit c) ↔ Injective c.inl ∧ Injective c.inr ∧ IsCompl (Set.range c.inl) (Set.range c.inr)
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y : Type u f : X ⟶ Y inst✝ : Mono f ⊢ IsColimit (BinaryCofan.mk f Subtype.val)
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
apply Nonempty.some
/-- Any monomorphism in `Type` is a coproduct injection. -/ noncomputable def isCoprodOfMono {X Y : Type u} (f : X ⟶ Y) [Mono f] : IsColimit (BinaryCofan.mk f (Subtype.val : ↑(Set.range f)ᶜ → Y)) := by
Mathlib.CategoryTheory.Limits.Shapes.Types.350_0.ctQAUYXLRXnvMGw
/-- Any monomorphism in `Type` is a coproduct injection. -/ noncomputable def isCoprodOfMono {X Y : Type u} (f : X ⟶ Y) [Mono f] : IsColimit (BinaryCofan.mk f (Subtype.val : ↑(Set.range f)ᶜ → Y))
Mathlib_CategoryTheory_Limits_Shapes_Types
case h X Y : Type u f : X ⟶ Y inst✝ : Mono f ⊢ Nonempty (IsColimit (BinaryCofan.mk f Subtype.val))
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
rw [binaryCofan_isColimit_iff]
/-- Any monomorphism in `Type` is a coproduct injection. -/ noncomputable def isCoprodOfMono {X Y : Type u} (f : X ⟶ Y) [Mono f] : IsColimit (BinaryCofan.mk f (Subtype.val : ↑(Set.range f)ᶜ → Y)) := by apply Nonempty.some
Mathlib.CategoryTheory.Limits.Shapes.Types.350_0.ctQAUYXLRXnvMGw
/-- Any monomorphism in `Type` is a coproduct injection. -/ noncomputable def isCoprodOfMono {X Y : Type u} (f : X ⟶ Y) [Mono f] : IsColimit (BinaryCofan.mk f (Subtype.val : ↑(Set.range f)ᶜ → Y))
Mathlib_CategoryTheory_Limits_Shapes_Types
case h X Y : Type u f : X ⟶ Y inst✝ : Mono f ⊢ Injective (BinaryCofan.inl (BinaryCofan.mk f Subtype.val)) ∧ Injective (BinaryCofan.inr (BinaryCofan.mk f Subtype.val)) ∧ IsCompl (Set.range (BinaryCofan.inl (BinaryCofan.mk f Subtype.val))) (Set.range (BinaryCofan.inr (BinaryCofan.mk f Subtype.val)))
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
refine' ⟨(mono_iff_injective f).mp inferInstance, Subtype.val_injective, _⟩
/-- Any monomorphism in `Type` is a coproduct injection. -/ noncomputable def isCoprodOfMono {X Y : Type u} (f : X ⟶ Y) [Mono f] : IsColimit (BinaryCofan.mk f (Subtype.val : ↑(Set.range f)ᶜ → Y)) := by apply Nonempty.some rw [binaryCofan_isColimit_iff]
Mathlib.CategoryTheory.Limits.Shapes.Types.350_0.ctQAUYXLRXnvMGw
/-- Any monomorphism in `Type` is a coproduct injection. -/ noncomputable def isCoprodOfMono {X Y : Type u} (f : X ⟶ Y) [Mono f] : IsColimit (BinaryCofan.mk f (Subtype.val : ↑(Set.range f)ᶜ → Y))
Mathlib_CategoryTheory_Limits_Shapes_Types
case h X Y : Type u f : X ⟶ Y inst✝ : Mono f ⊢ IsCompl (Set.range (BinaryCofan.inl (BinaryCofan.mk f Subtype.val))) (Set.range (BinaryCofan.inr (BinaryCofan.mk f Subtype.val)))
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
symm
/-- Any monomorphism in `Type` is a coproduct injection. -/ noncomputable def isCoprodOfMono {X Y : Type u} (f : X ⟶ Y) [Mono f] : IsColimit (BinaryCofan.mk f (Subtype.val : ↑(Set.range f)ᶜ → Y)) := by apply Nonempty.some rw [binaryCofan_isColimit_iff] refine' ⟨(mono_iff_injective f).mp inferInstance, Subtype...
Mathlib.CategoryTheory.Limits.Shapes.Types.350_0.ctQAUYXLRXnvMGw
/-- Any monomorphism in `Type` is a coproduct injection. -/ noncomputable def isCoprodOfMono {X Y : Type u} (f : X ⟶ Y) [Mono f] : IsColimit (BinaryCofan.mk f (Subtype.val : ↑(Set.range f)ᶜ → Y))
Mathlib_CategoryTheory_Limits_Shapes_Types
case h X Y : Type u f : X ⟶ Y inst✝ : Mono f ⊢ IsCompl (Set.range (BinaryCofan.inr (BinaryCofan.mk f Subtype.val))) (Set.range (BinaryCofan.inl (BinaryCofan.mk f Subtype.val)))
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
rw [← eq_compl_iff_isCompl]
/-- Any monomorphism in `Type` is a coproduct injection. -/ noncomputable def isCoprodOfMono {X Y : Type u} (f : X ⟶ Y) [Mono f] : IsColimit (BinaryCofan.mk f (Subtype.val : ↑(Set.range f)ᶜ → Y)) := by apply Nonempty.some rw [binaryCofan_isColimit_iff] refine' ⟨(mono_iff_injective f).mp inferInstance, Subtype...
Mathlib.CategoryTheory.Limits.Shapes.Types.350_0.ctQAUYXLRXnvMGw
/-- Any monomorphism in `Type` is a coproduct injection. -/ noncomputable def isCoprodOfMono {X Y : Type u} (f : X ⟶ Y) [Mono f] : IsColimit (BinaryCofan.mk f (Subtype.val : ↑(Set.range f)ᶜ → Y))
Mathlib_CategoryTheory_Limits_Shapes_Types
case h X Y : Type u f : X ⟶ Y inst✝ : Mono f ⊢ Set.range (BinaryCofan.inr (BinaryCofan.mk f Subtype.val)) = (Set.range (BinaryCofan.inl (BinaryCofan.mk f Subtype.val)))ᶜ
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
exact Subtype.range_val
/-- Any monomorphism in `Type` is a coproduct injection. -/ noncomputable def isCoprodOfMono {X Y : Type u} (f : X ⟶ Y) [Mono f] : IsColimit (BinaryCofan.mk f (Subtype.val : ↑(Set.range f)ᶜ → Y)) := by apply Nonempty.some rw [binaryCofan_isColimit_iff] refine' ⟨(mono_iff_injective f).mp inferInstance, Subtype...
Mathlib.CategoryTheory.Limits.Shapes.Types.350_0.ctQAUYXLRXnvMGw
/-- Any monomorphism in `Type` is a coproduct injection. -/ noncomputable def isCoprodOfMono {X Y : Type u} (f : X ⟶ Y) [Mono f] : IsColimit (BinaryCofan.mk f (Subtype.val : ↑(Set.range f)ᶜ → Y))
Mathlib_CategoryTheory_Limits_Shapes_Types
J : Type v F : J → Type u inst✝ : Small.{u, v} J this : Small.{u, max u v} ((j : J) → F j) s : Cone (Discrete.functor F) m : s.pt ⟶ { pt := Shrink.{u, max u v} ((j : J) → F j), π := Discrete.natTrans fun x f => match x, f with | { as := j }, f => (equivShrink ((j : J) → F...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
simpa using (congr_fun (w ⟨j⟩) x : _)
/-- A variant of `productLimitCone` using a `Small` hypothesis rather than a function to `TypeMax`. -/ noncomputable def productLimitCone : Limits.LimitCone (Discrete.functor F) where cone := { pt := Shrink (∀ j, F j) π := Discrete.natTrans (fun ⟨j⟩ f => (equivShrink (∀ j, F j)).symm f j) } isLimit :=...
Mathlib.CategoryTheory.Limits.Shapes.Types.403_0.ctQAUYXLRXnvMGw
/-- A variant of `productLimitCone` using a `Small` hypothesis rather than a function to `TypeMax`. -/ noncomputable def productLimitCone : Limits.LimitCone (Discrete.functor F) where cone
Mathlib_CategoryTheory_Limits_Shapes_Types
J : Type v F : J → TypeMax s : Cocone (Discrete.functor F) m : { pt := (j : J) × F j, ι := Discrete.natTrans fun x x_1 => match x, x_1 with | { as := j }, x => { fst := j, snd := x } }.pt ⟶ s.pt w : ∀ (j : Discrete J), { pt := (j : J) × F j, ι := ...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
funext ⟨j, x⟩
/-- The category of types has `Σ j, f j` as the coproduct of a type family `f : J → Type`. -/ def coproductColimitCocone {J : Type v} (F : J → TypeMax.{v, u}) : Limits.ColimitCocone (Discrete.functor F) where cocone := { pt := Σj, F j ι := Discrete.natTrans (fun ⟨j⟩ x => ⟨j, x⟩)} isColimit := { de...
Mathlib.CategoryTheory.Limits.Shapes.Types.442_0.ctQAUYXLRXnvMGw
/-- The category of types has `Σ j, f j` as the coproduct of a type family `f : J → Type`. -/ def coproductColimitCocone {J : Type v} (F : J → TypeMax.{v, u}) : Limits.ColimitCocone (Discrete.functor F) where cocone
Mathlib_CategoryTheory_Limits_Shapes_Types
case h J : Type v F : J → TypeMax s : Cocone (Discrete.functor F) m : { pt := (j : J) × F j, ι := Discrete.natTrans fun x x_1 => match x, x_1 with | { as := j }, x => { fst := j, snd := x } }.pt ⟶ s.pt w : ∀ (j : Discrete J), { pt := (j : J) × F j, ι...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
exact congr_fun (w ⟨j⟩) x
/-- The category of types has `Σ j, f j` as the coproduct of a type family `f : J → Type`. -/ def coproductColimitCocone {J : Type v} (F : J → TypeMax.{v, u}) : Limits.ColimitCocone (Discrete.functor F) where cocone := { pt := Σj, F j ι := Discrete.natTrans (fun ⟨j⟩ x => ⟨j, x⟩)} isColimit := { de...
Mathlib.CategoryTheory.Limits.Shapes.Types.442_0.ctQAUYXLRXnvMGw
/-- The category of types has `Σ j, f j` as the coproduct of a type family `f : J → Type`. -/ def coproductColimitCocone {J : Type v} (F : J → TypeMax.{v, u}) : Limits.ColimitCocone (Discrete.functor F) where cocone
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : ∀ (y : Y), g y = h y → ∃! x, f x = y s : Fork g h ⊢ { l // l ≫ Fork.ι (Fork.ofι f w) = Fork.ι s ∧ ∀ {m : ((Functor.const WalkingParallelPair).obj s.pt).obj WalkingParallelPair.zero ⟶ ((Functor.const WalkingParallelPair).o...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
refine' ⟨fun i => _, _, _⟩
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w) := Fork.IsLimit.mk' _ fun s => by
Mathlib.CategoryTheory.Limits.Shapes.Types.478_0.ctQAUYXLRXnvMGw
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w)
Mathlib_CategoryTheory_Limits_Shapes_Types
case refine'_1 X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : ∀ (y : Y), g y = h y → ∃! x, f x = y s : Fork g h i : ((Functor.const WalkingParallelPair).obj s.pt).obj WalkingParallelPair.zero ⊢ ((Functor.const WalkingParallelPair).obj (Fork.ofι f w).pt).obj WalkingParallelPair.zero
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
apply Classical.choose (t (s.ι i) _)
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w) := Fork.IsLimit.mk' _ fun s => by r...
Mathlib.CategoryTheory.Limits.Shapes.Types.478_0.ctQAUYXLRXnvMGw
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w)
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : ∀ (y : Y), g y = h y → ∃! x, f x = y s : Fork g h i : ((Functor.const WalkingParallelPair).obj s.pt).obj WalkingParallelPair.zero ⊢ g (Fork.ι s i) = h (Fork.ι s i)
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
apply congr_fun s.condition i
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w) := Fork.IsLimit.mk' _ fun s => by r...
Mathlib.CategoryTheory.Limits.Shapes.Types.478_0.ctQAUYXLRXnvMGw
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w)
Mathlib_CategoryTheory_Limits_Shapes_Types
case refine'_2 X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : ∀ (y : Y), g y = h y → ∃! x, f x = y s : Fork g h ⊢ (fun i => Classical.choose (_ : ∃! x, f x = Fork.ι s i)) ≫ Fork.ι (Fork.ofι f w) = Fork.ι s
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
funext i
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w) := Fork.IsLimit.mk' _ fun s => by r...
Mathlib.CategoryTheory.Limits.Shapes.Types.478_0.ctQAUYXLRXnvMGw
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w)
Mathlib_CategoryTheory_Limits_Shapes_Types
case refine'_2.h X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : ∀ (y : Y), g y = h y → ∃! x, f x = y s : Fork g h i : ((Functor.const WalkingParallelPair).obj s.pt).obj WalkingParallelPair.zero ⊢ ((fun i => Classical.choose (_ : ∃! x, f x = Fork.ι s i)) ≫ Fork.ι (Fork.ofι f w)) i = Fork.ι s i
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
exact (Classical.choose_spec (t (s.ι i) (congr_fun s.condition i))).1
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w) := Fork.IsLimit.mk' _ fun s => by r...
Mathlib.CategoryTheory.Limits.Shapes.Types.478_0.ctQAUYXLRXnvMGw
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w)
Mathlib_CategoryTheory_Limits_Shapes_Types
case refine'_3 X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : ∀ (y : Y), g y = h y → ∃! x, f x = y s : Fork g h ⊢ ∀ {m : ((Functor.const WalkingParallelPair).obj s.pt).obj WalkingParallelPair.zero ⟶ ((Functor.const WalkingParallelPair).obj (Fork.ofι f w).pt).obj WalkingParallelPair.zero}, ...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
intro m hm
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w) := Fork.IsLimit.mk' _ fun s => by r...
Mathlib.CategoryTheory.Limits.Shapes.Types.478_0.ctQAUYXLRXnvMGw
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w)
Mathlib_CategoryTheory_Limits_Shapes_Types
case refine'_3 X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : ∀ (y : Y), g y = h y → ∃! x, f x = y s : Fork g h m : ((Functor.const WalkingParallelPair).obj s.pt).obj WalkingParallelPair.zero ⟶ ((Functor.const WalkingParallelPair).obj (Fork.ofι f w).pt).obj WalkingParallelPair.zero hm : m ≫ Fork.ι (Fo...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
funext i
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w) := Fork.IsLimit.mk' _ fun s => by r...
Mathlib.CategoryTheory.Limits.Shapes.Types.478_0.ctQAUYXLRXnvMGw
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w)
Mathlib_CategoryTheory_Limits_Shapes_Types
case refine'_3.h X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : ∀ (y : Y), g y = h y → ∃! x, f x = y s : Fork g h m : ((Functor.const WalkingParallelPair).obj s.pt).obj WalkingParallelPair.zero ⟶ ((Functor.const WalkingParallelPair).obj (Fork.ofι f w).pt).obj WalkingParallelPair.zero hm : m ≫ Fork.ι (...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
exact (Classical.choose_spec (t (s.ι i) (congr_fun s.condition i))).2 _ (congr_fun hm i)
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w) := Fork.IsLimit.mk' _ fun s => by r...
Mathlib.CategoryTheory.Limits.Shapes.Types.478_0.ctQAUYXLRXnvMGw
/-- Show the given fork in `Type u` is an equalizer given that any element in the "difference kernel" comes from `X`. The converse of `unique_of_type_equalizer`. -/ noncomputable def typeEqualizerOfUnique (t : ∀ y : Y, g y = h y → ∃! x : X, f x = y) : IsLimit (Fork.ofι _ w)
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : IsLimit (Fork.ofι f w) y : Y hy : g y = h y ⊢ ∃! x, f x = y
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
let y' : PUnit ⟶ Y := fun _ => y
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y := by
Mathlib.CategoryTheory.Limits.Shapes.Types.496_0.ctQAUYXLRXnvMGw
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : IsLimit (Fork.ofι f w) y : Y hy : g y = h y y' : PUnit.{u + 1} ⟶ Y := fun x => y ⊢ ∃! x, f x = y
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
have hy' : y' ≫ g = y' ≫ h := funext fun _ => hy
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y := by let y' : PUnit ⟶ Y := fun _ => y
Mathlib.CategoryTheory.Limits.Shapes.Types.496_0.ctQAUYXLRXnvMGw
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : IsLimit (Fork.ofι f w) y : Y hy : g y = h y y' : PUnit.{u + 1} ⟶ Y := fun x => y hy' : y' ≫ g = y' ≫ h ⊢ ∃! x, f x = y
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
refine' ⟨(Fork.IsLimit.lift' t _ hy').1 ⟨⟩, congr_fun (Fork.IsLimit.lift' t y' _).2 ⟨⟩, _⟩
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y := by let y' : PUnit ⟶ Y := fun _ => y have hy' : y' ≫ g = y' ≫ h := funext fun _ => hy
Mathlib.CategoryTheory.Limits.Shapes.Types.496_0.ctQAUYXLRXnvMGw
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : IsLimit (Fork.ofι f w) y : Y hy : g y = h y y' : PUnit.{u + 1} ⟶ Y := fun x => y hy' : y' ≫ g = y' ≫ h ⊢ ∀ (y_1 : X), (fun x => f x = y) y_1 → y_1 = ↑(Fork.IsLimit.lift' t y' hy') PUnit.unit
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
intro x' hx'
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y := by let y' : PUnit ⟶ Y := fun _ => y have hy' : y' ≫ g = y' ≫ h := funext fun _ => hy refine' ⟨(Fork.IsLimit.lift' t _ hy').1 ⟨⟩, congr_fun (Fork.IsLi...
Mathlib.CategoryTheory.Limits.Shapes.Types.496_0.ctQAUYXLRXnvMGw
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : IsLimit (Fork.ofι f w) y : Y hy : g y = h y y' : PUnit.{u + 1} ⟶ Y := fun x => y hy' : y' ≫ g = y' ≫ h x' : X hx' : f x' = y ⊢ x' = ↑(Fork.IsLimit.lift' t y' hy') PUnit.unit
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
suffices (fun _ : PUnit => x') = (Fork.IsLimit.lift' t y' hy').1 by rw [← this]
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y := by let y' : PUnit ⟶ Y := fun _ => y have hy' : y' ≫ g = y' ≫ h := funext fun _ => hy refine' ⟨(Fork.IsLimit.lift' t _ hy').1 ⟨⟩, congr_fun (Fork.IsLi...
Mathlib.CategoryTheory.Limits.Shapes.Types.496_0.ctQAUYXLRXnvMGw
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : IsLimit (Fork.ofι f w) y : Y hy : g y = h y y' : PUnit.{u + 1} ⟶ Y := fun x => y hy' : y' ≫ g = y' ≫ h x' : X hx' : f x' = y this : (fun x => x') = ↑(Fork.IsLimit.lift' t y' hy') ⊢ x' = ↑(Fork.IsLimit.lift' t y' hy') PUnit.unit
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
rw [← this]
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y := by let y' : PUnit ⟶ Y := fun _ => y have hy' : y' ≫ g = y' ≫ h := funext fun _ => hy refine' ⟨(Fork.IsLimit.lift' t _ hy').1 ⟨⟩, congr_fun (Fork.IsLi...
Mathlib.CategoryTheory.Limits.Shapes.Types.496_0.ctQAUYXLRXnvMGw
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : IsLimit (Fork.ofι f w) y : Y hy : g y = h y y' : PUnit.{u + 1} ⟶ Y := fun x => y hy' : y' ≫ g = y' ≫ h x' : X hx' : f x' = y ⊢ (fun x => x') = ↑(Fork.IsLimit.lift' t y' hy')
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
apply Fork.IsLimit.hom_ext t
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y := by let y' : PUnit ⟶ Y := fun _ => y have hy' : y' ≫ g = y' ≫ h := funext fun _ => hy refine' ⟨(Fork.IsLimit.lift' t _ hy').1 ⟨⟩, congr_fun (Fork.IsLi...
Mathlib.CategoryTheory.Limits.Shapes.Types.496_0.ctQAUYXLRXnvMGw
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : IsLimit (Fork.ofι f w) y : Y hy : g y = h y y' : PUnit.{u + 1} ⟶ Y := fun x => y hy' : y' ≫ g = y' ≫ h x' : X hx' : f x' = y ⊢ (fun x => x') ≫ Fork.ι (Fork.ofι f w) = ↑(Fork.IsLimit.lift' t y' hy') ≫ Fork.ι (Fork.ofι f w)
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
funext ⟨⟩
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y := by let y' : PUnit ⟶ Y := fun _ => y have hy' : y' ≫ g = y' ≫ h := funext fun _ => hy refine' ⟨(Fork.IsLimit.lift' t _ hy').1 ⟨⟩, congr_fun (Fork.IsLi...
Mathlib.CategoryTheory.Limits.Shapes.Types.496_0.ctQAUYXLRXnvMGw
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y
Mathlib_CategoryTheory_Limits_Shapes_Types
case h X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h t : IsLimit (Fork.ofι f w) y : Y hy : g y = h y y' : PUnit.{u + 1} ⟶ Y := fun x => y hy' : y' ≫ g = y' ≫ h x' : X hx' : f x' = y ⊢ ((fun x => x') ≫ Fork.ι (Fork.ofι f w)) PUnit.unit = (↑(Fork.IsLimit.lift' t y' hy') ≫ Fork.ι (Fork.ofι f w)) PUnit.unit
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
apply hx'.trans (congr_fun (Fork.IsLimit.lift' t _ hy').2 ⟨⟩).symm
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y := by let y' : PUnit ⟶ Y := fun _ => y have hy' : y' ≫ g = y' ≫ h := funext fun _ => hy refine' ⟨(Fork.IsLimit.lift' t _ hy').1 ⟨⟩, congr_fun (Fork.IsLi...
Mathlib.CategoryTheory.Limits.Shapes.Types.496_0.ctQAUYXLRXnvMGw
/-- The converse of `type_equalizer_of_unique`. -/ theorem unique_of_type_equalizer (t : IsLimit (Fork.ofι _ w)) (y : Y) (hy : g y = h y) : ∃! x : X, f x = y
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h s : Fork g h i : ((Functor.const WalkingParallelPair).obj s.pt).obj WalkingParallelPair.zero ⊢ g (Fork.ι s i) = h (Fork.ι s i)
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
apply congr_fun s.condition i
/-- Show that the subtype `{x : Y // g x = h x}` is an equalizer for the pair `(g,h)`. -/ def equalizerLimit : Limits.LimitCone (parallelPair g h) where cone := Fork.ofι (Subtype.val : { x : Y // g x = h x } → Y) (funext Subtype.prop) isLimit := Fork.IsLimit.mk' _ fun s => ⟨fun i => ⟨s.ι i, by
Mathlib.CategoryTheory.Limits.Shapes.Types.516_0.ctQAUYXLRXnvMGw
/-- Show that the subtype `{x : Y // g x = h x}` is an equalizer for the pair `(g,h)`. -/ def equalizerLimit : Limits.LimitCone (parallelPair g h) where cone
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f : X ⟶ Y g h : Y ⟶ Z w : f ≫ g = f ≫ h ⊢ (equalizerIso g h).hom ≫ Subtype.val = equalizer.ι g h
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
rfl
@[simp] theorem equalizerIso_hom_comp_subtype : (equalizerIso g h).hom ≫ Subtype.val = equalizer.ι g h := by
Mathlib.CategoryTheory.Limits.Shapes.Types.533_0.ctQAUYXLRXnvMGw
@[simp] theorem equalizerIso_hom_comp_subtype : (equalizerIso g h).hom ≫ Subtype.val = equalizer.ι g h
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f g : X ⟶ Y s : Cofork f g a b : Y h : CoequalizerRel f g a b ⊢ Cofork.π s a = Cofork.π s b
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
cases h
/-- Show that the quotient by the relation generated by `f(x) ~ g(x)` is a coequalizer for the pair `(f, g)`. -/ def coequalizerColimit : Limits.ColimitCocone (parallelPair f g) where cocone := Cofork.ofπ (Quot.mk (CoequalizerRel f g)) (funext fun x => Quot.sound (CoequalizerRel.Rel x)) isColimit := Cofork....
Mathlib.CategoryTheory.Limits.Shapes.Types.554_0.ctQAUYXLRXnvMGw
/-- Show that the quotient by the relation generated by `f(x) ~ g(x)` is a coequalizer for the pair `(f, g)`. -/ def coequalizerColimit : Limits.ColimitCocone (parallelPair f g) where cocone
Mathlib_CategoryTheory_Limits_Shapes_Types
case Rel X Y Z : Type u f g : X ⟶ Y s : Cofork f g x✝ : X ⊢ Cofork.π s (f x✝) = Cofork.π s (g x✝)
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
apply congr_fun s.condition
/-- Show that the quotient by the relation generated by `f(x) ~ g(x)` is a coequalizer for the pair `(f, g)`. -/ def coequalizerColimit : Limits.ColimitCocone (parallelPair f g) where cocone := Cofork.ofπ (Quot.mk (CoequalizerRel f g)) (funext fun x => Quot.sound (CoequalizerRel.Rel x)) isColimit := Cofork....
Mathlib.CategoryTheory.Limits.Shapes.Types.554_0.ctQAUYXLRXnvMGw
/-- Show that the quotient by the relation generated by `f(x) ~ g(x)` is a coequalizer for the pair `(f, g)`. -/ def coequalizerColimit : Limits.ColimitCocone (parallelPair f g) where cocone
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U ⊢ π ⁻¹' (π '' U) = U
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
have lem : ∀ x y, CoequalizerRel f g x y → (x ∈ U ↔ y ∈ U) := by rintro _ _ ⟨x⟩ change x ∈ f ⁻¹' U ↔ x ∈ g ⁻¹' U rw [H]
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U ⊢ ∀ (x y : Y), CoequalizerRel f g x y → (x ∈ U ↔ y ∈ U)
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
rintro _ _ ⟨x⟩
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
case Rel X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U x : X ⊢ f x ∈ U ↔ g x ∈ U
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
change x ∈ f ⁻¹' U ↔ x ∈ g ⁻¹' U
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
case Rel X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U x : X ⊢ x ∈ f ⁻¹' U ↔ x ∈ g ⁻¹' U
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
rw [H]
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U lem : ∀ (x y : Y), CoequalizerRel f g x y → (x ∈ U ↔ y ∈ U) ⊢ π ⁻¹' (π '' U) = U
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
have eqv : _root_.Equivalence fun x y => x ∈ U ↔ y ∈ U := { refl := by tauto symm := by tauto trans := by tauto }
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U lem : ∀ (x y : Y), CoequalizerRel f g x y → (x ∈ U ↔ y ∈ U) ⊢ ∀ (x : Y), x ∈ U ↔ x ∈ U
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
tauto
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U lem : ∀ (x y : Y), CoequalizerRel f g x y → (x ∈ U ↔ y ∈ U) ⊢ ∀ {x y : Y}, (x ∈ U ↔ y ∈ U) → (y ∈ U ↔ x ∈ U)
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
tauto
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U lem : ∀ (x y : Y), CoequalizerRel f g x y → (x ∈ U ↔ y ∈ U) ⊢ ∀ {x y z : Y}, (x ∈ U ↔ y ∈ U) → (y ∈ U ↔ z ∈ U) → (x ∈ U ↔ z ∈ U)
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
tauto
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U lem : ∀ (x y : Y), CoequalizerRel f g x y → (x ∈ U ↔ y ∈ U) eqv : _root_.Equivalence fun x y => x ∈ U ↔ y ∈ U ⊢ π ⁻¹' (π '' U) = U
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
ext
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
case h X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U lem : ∀ (x y : Y), CoequalizerRel f g x y → (x ∈ U ↔ y ∈ U) eqv : _root_.Equivalence fun x y => x ∈ U ↔ y ∈ U x✝ : Y ⊢ x✝ ∈ π ⁻¹' (π '' U) ↔ x✝ ∈ U
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
constructor
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
case h.mp X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U lem : ∀ (x y : Y), CoequalizerRel f g x y → (x ∈ U ↔ y ∈ U) eqv : _root_.Equivalence fun x y => x ∈ U ↔ y ∈ U x✝ : Y ⊢ x✝ ∈ π ⁻¹' (π '' U) → x✝ ∈ U
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
rw [← show _ = π from h.comp_coconePointUniqueUpToIso_inv (coequalizerColimit f g).2 WalkingParallelPair.one]
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
case h.mp X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U lem : ∀ (x y : Y), CoequalizerRel f g x y → (x ∈ U ↔ y ∈ U) eqv : _root_.Equivalence fun x y => x ∈ U ↔ y ∈ U x✝ : Y ⊢ x✝ ∈ ((coequalizerColimit f g).cocone.ι.app WalkingParallelPair.one...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
rintro ⟨y, hy, e'⟩
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
case h.mp.intro.intro X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U lem : ∀ (x y : Y), CoequalizerRel f g x y → (x ∈ U ↔ y ∈ U) eqv : _root_.Equivalence fun x y => x ∈ U ↔ y ∈ U x✝ y : Y hy : y ∈ U e' : ((coequalizerColimit f g).cocone.ι.app Walk...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
dsimp at e'
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
case h.mp.intro.intro X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U lem : ∀ (x y : Y), CoequalizerRel f g x y → (x ∈ U ↔ y ∈ U) eqv : _root_.Equivalence fun x y => x ∈ U ↔ y ∈ U x✝ y : Y hy : y ∈ U e' : (IsColimit.coconePointUniqueUpToIso h (coeq...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
replace e' := (mono_iff_injective (h.coconePointUniqueUpToIso (coequalizerColimit f g).isColimit).inv).mp inferInstance e'
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
case h.mp.intro.intro X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U lem : ∀ (x y : Y), CoequalizerRel f g x y → (x ∈ U ↔ y ∈ U) eqv : _root_.Equivalence fun x y => x ∈ U ↔ y ∈ U x✝ y : Y hy : y ∈ U e' : Cofork.π (coequalizerColimit f g).cocone y = ...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
exact (eqv.eqvGen_iff.mp (EqvGen.mono lem (Quot.exact _ e'))).mp hy
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
case h.mpr X Y Z : Type u f g : X ⟶ Y π : Y ⟶ Z e : f ≫ π = g ≫ π h : IsColimit (Cofork.ofπ π e) U : Set Y H : f ⁻¹' U = g ⁻¹' U lem : ∀ (x y : Y), CoequalizerRel f g x y → (x ∈ U ↔ y ∈ U) eqv : _root_.Equivalence fun x y => x ∈ U ↔ y ∈ U x✝ : Y ⊢ x✝ ∈ U → x✝ ∈ π ⁻¹' (π '' U)
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
exact fun hx => ⟨_, hx, rfl⟩
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U := by have lem : ...
Mathlib.CategoryTheory.Limits.Shapes.Types.570_0.ctQAUYXLRXnvMGw
/-- If `π : Y ⟶ Z` is an equalizer for `(f, g)`, and `U ⊆ Y` such that `f ⁻¹' U = g ⁻¹' U`, then `π ⁻¹' (π '' U) = U`. -/ theorem coequalizer_preimage_image_eq_of_preimage_eq (π : Y ⟶ Z) (e : f ≫ π = g ≫ π) (h : IsColimit (Cofork.ofπ π e)) (U : Set Y) (H : f ⁻¹' U = g ⁻¹' U) : π ⁻¹' (π '' U) = U
Mathlib_CategoryTheory_Limits_Shapes_Types
W X Y Z : Type u f✝ : X ⟶ Z g✝ : Y ⟶ Z f : X ⟶ Z g : Y ⟶ Z ⊢ ∀ (s : PullbackCone f g), (fun s x => { val := (PullbackCone.fst s x, PullbackCone.snd s x), property := (_ : (PullbackCone.fst s ≫ f) x = (PullbackCone.snd s ≫ g) x) }) s ≫ PullbackCone.fst (pullbackCone f g) =...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
aesop
/-- The explicit pullback in the category of types, bundled up as a `LimitCone` for given `f` and `g`. -/ @[simps] def pullbackLimitCone (f : X ⟶ Z) (g : Y ⟶ Z) : Limits.LimitCone (cospan f g) where cone := pullbackCone f g isLimit := PullbackCone.isLimitAux _ (fun s x => ⟨⟨s.fst x, s.snd x⟩, congr_fun s.condit...
Mathlib.CategoryTheory.Limits.Shapes.Types.658_0.ctQAUYXLRXnvMGw
/-- The explicit pullback in the category of types, bundled up as a `LimitCone` for given `f` and `g`. -/ @[simps] def pullbackLimitCone (f : X ⟶ Z) (g : Y ⟶ Z) : Limits.LimitCone (cospan f g) where cone
Mathlib_CategoryTheory_Limits_Shapes_Types
W X Y Z : Type u f✝ : X ⟶ Z g✝ : Y ⟶ Z f : X ⟶ Z g : Y ⟶ Z ⊢ ∀ (s : PullbackCone f g), (fun s x => { val := (PullbackCone.fst s x, PullbackCone.snd s x), property := (_ : (PullbackCone.fst s ≫ f) x = (PullbackCone.snd s ≫ g) x) }) s ≫ PullbackCone.snd (pullbackCone f g) =...
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Math...
aesop
/-- The explicit pullback in the category of types, bundled up as a `LimitCone` for given `f` and `g`. -/ @[simps] def pullbackLimitCone (f : X ⟶ Z) (g : Y ⟶ Z) : Limits.LimitCone (cospan f g) where cone := pullbackCone f g isLimit := PullbackCone.isLimitAux _ (fun s x => ⟨⟨s.fst x, s.snd x⟩, congr_fun s.condit...
Mathlib.CategoryTheory.Limits.Shapes.Types.658_0.ctQAUYXLRXnvMGw
/-- The explicit pullback in the category of types, bundled up as a `LimitCone` for given `f` and `g`. -/ @[simps] def pullbackLimitCone (f : X ⟶ Z) (g : Y ⟶ Z) : Limits.LimitCone (cospan f g) where cone
Mathlib_CategoryTheory_Limits_Shapes_Types
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R M : Matrix n n R ⊢ det M = ∑ σ : Perm n, ↑↑(sign σ) * ∏ i : n, M (σ i) i
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
simp [det_apply, Units.smul_def]
theorem det_apply' (M : Matrix n n R) : M.det = ∑ σ : Perm n, ε σ * ∏ i, M (σ i) i := by
Mathlib.LinearAlgebra.Matrix.Determinant.74_0.U1f6HO8zRbnvZ95
theorem det_apply' (M : Matrix n n R) : M.det = ∑ σ : Perm n, ε σ * ∏ i, M (σ i) i
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R d : n → R ⊢ det (diagonal d) = ∏ i : n, d i
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
rw [det_apply']
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i := by
Mathlib.LinearAlgebra.Matrix.Determinant.78_0.U1f6HO8zRbnvZ95
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R d : n → R ⊢ ∑ σ : Perm n, ↑↑(sign σ) * ∏ i : n, diagonal d (σ i) i = ∏ i : n, d i
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
refine' (Finset.sum_eq_single 1 _ _).trans _
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i := by rw [det_apply']
Mathlib.LinearAlgebra.Matrix.Determinant.78_0.U1f6HO8zRbnvZ95
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i
Mathlib_LinearAlgebra_Matrix_Determinant
case refine'_1 m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R d : n → R ⊢ ∀ b ∈ univ, b ≠ 1 → ↑↑(sign b) * ∏ i : n, diagonal d (b i) i = 0
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
rintro σ - h2
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i := by rw [det_apply'] refine' (Finset.sum_eq_single 1 _ _).trans _ ·
Mathlib.LinearAlgebra.Matrix.Determinant.78_0.U1f6HO8zRbnvZ95
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i
Mathlib_LinearAlgebra_Matrix_Determinant
case refine'_1 m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R d : n → R σ : Perm n h2 : σ ≠ 1 ⊢ ↑↑(sign σ) * ∏ i : n, diagonal d (σ i) i = 0
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
cases' not_forall.1 (mt Equiv.ext h2) with x h3
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i := by rw [det_apply'] refine' (Finset.sum_eq_single 1 _ _).trans _ · rintro σ - h2
Mathlib.LinearAlgebra.Matrix.Determinant.78_0.U1f6HO8zRbnvZ95
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i
Mathlib_LinearAlgebra_Matrix_Determinant
case refine'_1.intro m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R d : n → R σ : Perm n h2 : σ ≠ 1 x : n h3 : ¬σ x = 1 x ⊢ ↑↑(sign σ) * ∏ i : n, diagonal d (σ i) i = 0
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
convert mul_zero (ε σ)
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i := by rw [det_apply'] refine' (Finset.sum_eq_single 1 _ _).trans _ · rintro σ - h2 cases' not_forall.1 (mt Equiv.ext h2) with x h3
Mathlib.LinearAlgebra.Matrix.Determinant.78_0.U1f6HO8zRbnvZ95
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i
Mathlib_LinearAlgebra_Matrix_Determinant
case h.e'_2.h.e'_6 m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R d : n → R σ : Perm n h2 : σ ≠ 1 x : n h3 : ¬σ x = 1 x ⊢ ∏ i : n, diagonal d (σ i) i = 0
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
apply Finset.prod_eq_zero (mem_univ x)
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i := by rw [det_apply'] refine' (Finset.sum_eq_single 1 _ _).trans _ · rintro σ - h2 cases' not_forall.1 (mt Equiv.ext h2) with x h3 convert mul_zero (ε σ)
Mathlib.LinearAlgebra.Matrix.Determinant.78_0.U1f6HO8zRbnvZ95
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i
Mathlib_LinearAlgebra_Matrix_Determinant
case h.e'_2.h.e'_6 m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R d : n → R σ : Perm n h2 : σ ≠ 1 x : n h3 : ¬σ x = 1 x ⊢ diagonal d (σ x) x = 0
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
exact if_neg h3
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i := by rw [det_apply'] refine' (Finset.sum_eq_single 1 _ _).trans _ · rintro σ - h2 cases' not_forall.1 (mt Equiv.ext h2) with x h3 convert mul_zero (ε σ) apply Finset.prod_eq_zero (mem_univ x)
Mathlib.LinearAlgebra.Matrix.Determinant.78_0.U1f6HO8zRbnvZ95
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i
Mathlib_LinearAlgebra_Matrix_Determinant
case refine'_2 m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R d : n → R ⊢ 1 ∉ univ → ↑↑(sign 1) * ∏ i : n, diagonal d (1 i) i = 0
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
simp
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i := by rw [det_apply'] refine' (Finset.sum_eq_single 1 _ _).trans _ · rintro σ - h2 cases' not_forall.1 (mt Equiv.ext h2) with x h3 convert mul_zero (ε σ) apply Finset.prod_eq_zero (mem_univ x) exact if_neg h3 ·
Mathlib.LinearAlgebra.Matrix.Determinant.78_0.U1f6HO8zRbnvZ95
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i
Mathlib_LinearAlgebra_Matrix_Determinant
case refine'_3 m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R d : n → R ⊢ ↑↑(sign 1) * ∏ i : n, diagonal d (1 i) i = ∏ i : n, d i
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
simp
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i := by rw [det_apply'] refine' (Finset.sum_eq_single 1 _ _).trans _ · rintro σ - h2 cases' not_forall.1 (mt Equiv.ext h2) with x h3 convert mul_zero (ε σ) apply Finset.prod_eq_zero (mem_univ x) exact if_neg h3 · simp ·
Mathlib.LinearAlgebra.Matrix.Determinant.78_0.U1f6HO8zRbnvZ95
@[simp] theorem det_diagonal {d : n → R} : det (diagonal d) = ∏ i, d i
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R ⊢ det 1 = 1
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
rw [← diagonal_one]
@[simp] theorem det_one : det (1 : Matrix n n R) = 1 := by
Mathlib.LinearAlgebra.Matrix.Determinant.96_0.U1f6HO8zRbnvZ95
@[simp] theorem det_one : det (1 : Matrix n n R) = 1
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R ⊢ det (diagonal fun x => 1) = 1
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
simp [-diagonal_one]
@[simp] theorem det_one : det (1 : Matrix n n R) = 1 := by rw [← diagonal_one];
Mathlib.LinearAlgebra.Matrix.Determinant.96_0.U1f6HO8zRbnvZ95
@[simp] theorem det_one : det (1 : Matrix n n R) = 1
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁵ : DecidableEq n inst✝⁴ : Fintype n inst✝³ : DecidableEq m inst✝² : Fintype m R : Type v inst✝¹ : CommRing R inst✝ : IsEmpty n A : Matrix n n R ⊢ det A = 1
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
simp [det_apply]
theorem det_isEmpty [IsEmpty n] {A : Matrix n n R} : det A = 1 := by
Mathlib.LinearAlgebra.Matrix.Determinant.100_0.U1f6HO8zRbnvZ95
theorem det_isEmpty [IsEmpty n] {A : Matrix n n R} : det A = 1
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁵ : DecidableEq n inst✝⁴ : Fintype n inst✝³ : DecidableEq m inst✝² : Fintype m R : Type v inst✝¹ : CommRing R inst✝ : IsEmpty n ⊢ det = const (Matrix n n R) 1
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
ext
@[simp] theorem coe_det_isEmpty [IsEmpty n] : (det : Matrix n n R → R) = Function.const _ 1 := by
Mathlib.LinearAlgebra.Matrix.Determinant.103_0.U1f6HO8zRbnvZ95
@[simp] theorem coe_det_isEmpty [IsEmpty n] : (det : Matrix n n R → R) = Function.const _ 1
Mathlib_LinearAlgebra_Matrix_Determinant
case h m : Type u_1 n : Type u_2 inst✝⁵ : DecidableEq n inst✝⁴ : Fintype n inst✝³ : DecidableEq m inst✝² : Fintype m R : Type v inst✝¹ : CommRing R inst✝ : IsEmpty n x✝ : Matrix n n R ⊢ det x✝ = const (Matrix n n R) 1 x✝
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
exact det_isEmpty
@[simp] theorem coe_det_isEmpty [IsEmpty n] : (det : Matrix n n R → R) = Function.const _ 1 := by ext
Mathlib.LinearAlgebra.Matrix.Determinant.103_0.U1f6HO8zRbnvZ95
@[simp] theorem coe_det_isEmpty [IsEmpty n] : (det : Matrix n n R → R) = Function.const _ 1
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n✝ : Type u_2 inst✝⁷ : DecidableEq n✝ inst✝⁶ : Fintype n✝ inst✝⁵ : DecidableEq m inst✝⁴ : Fintype m R : Type v inst✝³ : CommRing R n : Type u_3 inst✝² : Unique n inst✝¹ : DecidableEq n inst✝ : Fintype n A : Matrix n n R ⊢ det A = A default default
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
simp [det_apply, univ_unique]
/-- If `n` has only one element, the determinant of an `n` by `n` matrix is just that element. Although `Unique` implies `DecidableEq` and `Fintype`, the instances might not be syntactically equal. Thus, we need to fill in the args explicitly. -/ @[simp] theorem det_unique {n : Type*} [Unique n] [DecidableEq n] [Fintyp...
Mathlib.LinearAlgebra.Matrix.Determinant.114_0.U1f6HO8zRbnvZ95
/-- If `n` has only one element, the determinant of an `n` by `n` matrix is just that element. Although `Unique` implies `DecidableEq` and `Fintype`, the instances might not be syntactically equal. Thus, we need to fill in the args explicitly. -/ @[simp] theorem det_unique {n : Type*} [Unique n] [DecidableEq n] [Fintyp...
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁵ : DecidableEq n inst✝⁴ : Fintype n inst✝³ : DecidableEq m inst✝² : Fintype m R : Type v inst✝¹ : CommRing R inst✝ : Subsingleton n A : Matrix n n R k : n ⊢ det A = A k k
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
have := uniqueOfSubsingleton k
theorem det_eq_elem_of_subsingleton [Subsingleton n] (A : Matrix n n R) (k : n) : det A = A k k := by
Mathlib.LinearAlgebra.Matrix.Determinant.122_0.U1f6HO8zRbnvZ95
theorem det_eq_elem_of_subsingleton [Subsingleton n] (A : Matrix n n R) (k : n) : det A = A k k
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁵ : DecidableEq n inst✝⁴ : Fintype n inst✝³ : DecidableEq m inst✝² : Fintype m R : Type v inst✝¹ : CommRing R inst✝ : Subsingleton n A : Matrix n n R k : n this : Unique n ⊢ det A = A k k
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
convert det_unique A
theorem det_eq_elem_of_subsingleton [Subsingleton n] (A : Matrix n n R) (k : n) : det A = A k k := by have := uniqueOfSubsingleton k
Mathlib.LinearAlgebra.Matrix.Determinant.122_0.U1f6HO8zRbnvZ95
theorem det_eq_elem_of_subsingleton [Subsingleton n] (A : Matrix n n R) (k : n) : det A = A k k
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R M N : Matrix n n R p : n → n H : ¬Bijective p ⊢ ∑ σ : Perm n, ↑↑(sign σ) * ∏ x : n, M (σ x) (p x) * N (p x) x = 0
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
obtain ⟨i, j, hpij, hij⟩ : ∃ i j, p i = p j ∧ i ≠ j := by rw [← Finite.injective_iff_bijective, Injective] at H push_neg at H exact H
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0 := by
Mathlib.LinearAlgebra.Matrix.Determinant.134_0.U1f6HO8zRbnvZ95
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R M N : Matrix n n R p : n → n H : ¬Bijective p ⊢ ∃ i j, p i = p j ∧ i ≠ j
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
rw [← Finite.injective_iff_bijective, Injective] at H
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0 := by obtain ⟨i, j, hpij, hij⟩ : ∃ i j, p i = p j ∧ i ≠ j := by
Mathlib.LinearAlgebra.Matrix.Determinant.134_0.U1f6HO8zRbnvZ95
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R M N : Matrix n n R p : n → n H : ¬∀ ⦃a₁ a₂ : n⦄, p a₁ = p a₂ → a₁ = a₂ ⊢ ∃ i j, p i = p j ∧ i ≠ j
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
push_neg at H
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0 := by obtain ⟨i, j, hpij, hij⟩ : ∃ i j, p i = p j ∧ i ≠ j := by rw [← Finite.injective_iff_bijective, Injective] at H
Mathlib.LinearAlgebra.Matrix.Determinant.134_0.U1f6HO8zRbnvZ95
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R M N : Matrix n n R p : n → n H : ∃ a₁ a₂, p a₁ = p a₂ ∧ a₁ ≠ a₂ ⊢ ∃ i j, p i = p j ∧ i ≠ j
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
exact H
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0 := by obtain ⟨i, j, hpij, hij⟩ : ∃ i j, p i = p j ∧ i ≠ j := by rw [← Finite.injective_iff_bijective, Injective] at H push_neg at H
Mathlib.LinearAlgebra.Matrix.Determinant.134_0.U1f6HO8zRbnvZ95
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0
Mathlib_LinearAlgebra_Matrix_Determinant
case intro.intro.intro m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R M N : Matrix n n R p : n → n H : ¬Bijective p i j : n hpij : p i = p j hij : i ≠ j ⊢ ∑ σ : Perm n, ↑↑(sign σ) * ∏ x : n, M (σ x) (p x) * N (p x) x = 0
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
exact sum_involution (fun σ _ => σ * Equiv.swap i j) (fun σ _ => by have : (∏ x, M (σ x) (p x)) = ∏ x, M ((σ * Equiv.swap i j) x) (p x) := Fintype.prod_equiv (swap i j) _ _ (by simp [apply_swap_eq_self hpij]) simp [this, sign_swap hij, -sign_swap', prod_mul_distrib]) (fun σ _ _...
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0 := by obtain ⟨i, j, hpij, hij⟩ : ∃ i j, p i = p j ∧ i ≠ j := by rw [← Finite.injective_iff_bijective, Injective] at H push_neg at H exact H
Mathlib.LinearAlgebra.Matrix.Determinant.134_0.U1f6HO8zRbnvZ95
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R M N : Matrix n n R p : n → n H : ¬Bijective p i j : n hpij : p i = p j hij : i ≠ j σ : Perm n x✝ : σ ∈ univ ⊢ ↑↑(sign σ) * ∏ x : n, M (σ x) (p x) * N (p x) x + ↑↑(sign ((fun ...
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
have : (∏ x, M (σ x) (p x)) = ∏ x, M ((σ * Equiv.swap i j) x) (p x) := Fintype.prod_equiv (swap i j) _ _ (by simp [apply_swap_eq_self hpij])
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0 := by obtain ⟨i, j, hpij, hij⟩ : ∃ i j, p i = p j ∧ i ≠ j := by rw [← Finite.injective_iff_bijective, Injective] at H push_neg at H exact H exact sum_involution (fun...
Mathlib.LinearAlgebra.Matrix.Determinant.134_0.U1f6HO8zRbnvZ95
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R M N : Matrix n n R p : n → n H : ¬Bijective p i j : n hpij : p i = p j hij : i ≠ j σ : Perm n x✝ : σ ∈ univ ⊢ ∀ (x : n), M (σ x) (p x) = M ((σ * Equiv.swap i j) ((Equiv.swap i j) x...
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
simp [apply_swap_eq_self hpij]
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0 := by obtain ⟨i, j, hpij, hij⟩ : ∃ i j, p i = p j ∧ i ≠ j := by rw [← Finite.injective_iff_bijective, Injective] at H push_neg at H exact H exact sum_involution (fun...
Mathlib.LinearAlgebra.Matrix.Determinant.134_0.U1f6HO8zRbnvZ95
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R M N : Matrix n n R p : n → n H : ¬Bijective p i j : n hpij : p i = p j hij : i ≠ j σ : Perm n x✝ : σ ∈ univ this : ∏ x : n, M (σ x) (p x) = ∏ x : n, M ((σ * Equiv.swap i j) x) (p x...
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
simp [this, sign_swap hij, -sign_swap', prod_mul_distrib]
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0 := by obtain ⟨i, j, hpij, hij⟩ : ∃ i j, p i = p j ∧ i ≠ j := by rw [← Finite.injective_iff_bijective, Injective] at H push_neg at H exact H exact sum_involution (fun...
Mathlib.LinearAlgebra.Matrix.Determinant.134_0.U1f6HO8zRbnvZ95
theorem det_mul_aux {M N : Matrix n n R} {p : n → n} (H : ¬Bijective p) : (∑ σ : Perm n, ε σ * ∏ x, M (σ x) (p x) * N (p x) x) = 0
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R M N : Matrix n n R ⊢ det (M * N) = ∑ p : n → n, ∑ σ : Perm n, ↑↑(sign σ) * ∏ i : n, M (σ i) (p i) * N (p i) i
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
simp only [det_apply', mul_apply, prod_univ_sum, mul_sum, Fintype.piFinset_univ]
@[simp] theorem det_mul (M N : Matrix n n R) : det (M * N) = det M * det N := calc det (M * N) = ∑ p : n → n, ∑ σ : Perm n, ε σ * ∏ i, M (σ i) (p i) * N (p i) i := by
Mathlib.LinearAlgebra.Matrix.Determinant.150_0.U1f6HO8zRbnvZ95
@[simp] theorem det_mul (M N : Matrix n n R) : det (M * N) = det M * det N
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R M N : Matrix n n R ⊢ ∑ x : Perm n, ∑ x_1 : n → n, ↑↑(sign x) * ∏ x_2 : n, M (x x_2) (x_1 x_2) * N (x_1 x_2) x_2 = ∑ p : n → n, ∑ σ : Perm n, ↑↑(sign σ) * ∏ i : n, M (σ i) (p i)...
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
rw [Finset.sum_comm]
@[simp] theorem det_mul (M N : Matrix n n R) : det (M * N) = det M * det N := calc det (M * N) = ∑ p : n → n, ∑ σ : Perm n, ε σ * ∏ i, M (σ i) (p i) * N (p i) i := by simp only [det_apply', mul_apply, prod_univ_sum, mul_sum, Fintype.piFinset_univ]
Mathlib.LinearAlgebra.Matrix.Determinant.150_0.U1f6HO8zRbnvZ95
@[simp] theorem det_mul (M N : Matrix n n R) : det (M * N) = det M * det N
Mathlib_LinearAlgebra_Matrix_Determinant
m : Type u_1 n : Type u_2 inst✝⁴ : DecidableEq n inst✝³ : Fintype n inst✝² : DecidableEq m inst✝¹ : Fintype m R : Type v inst✝ : CommRing R M N : Matrix n n R f : n → n x✝ : f ∈ univ hbij : f ∉ filter Bijective univ ⊢ ¬Bijective fun i => f i
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Anne Baanen -/ import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.Data.Fintype.BigOperators impor...
simpa only [true_and_iff, mem_filter, mem_univ] using hbij
@[simp] theorem det_mul (M N : Matrix n n R) : det (M * N) = det M * det N := calc det (M * N) = ∑ p : n → n, ∑ σ : Perm n, ε σ * ∏ i, M (σ i) (p i) * N (p i) i := by simp only [det_apply', mul_apply, prod_univ_sum, mul_sum, Fintype.piFinset_univ] rw [Finset.sum_comm] _ = ∑ p in (@univ (n ...
Mathlib.LinearAlgebra.Matrix.Determinant.150_0.U1f6HO8zRbnvZ95
@[simp] theorem det_mul (M N : Matrix n n R) : det (M * N) = det M * det N
Mathlib_LinearAlgebra_Matrix_Determinant