This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Mathlib | |
| lemma le_iff_inf_compl_eq_bot [BooleanAlgebra B] (x y : B) : | |
| x ≤ y ↔ x ⊓ yᶜ = ⊥ | |
| := by | |
| constructor<;> intro H | |
| · rw [<- sup_eq_right] at H | |
| rw [<- H, compl_sup, <- inf_assoc, inf_compl_eq_bot, bot_inf_eq] | |
| · rw [<- bot_sup_eq (a := y), <- H, sup_inf_right, compl_sup_eq_top, inf_top_eq] | |
| apply le_sup_left |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Mathlib | |
| open Order | |
| instance Ideal.isCoatomic (B : Type _) [BooleanAlgebra B] : | |
| IsCoatomic (Ideal B) | |
| := { | |
| eq_top_or_exists_le_coatom I := by | |
| rw [or_iff_not_imp_left]; intro HI | |
| let 𝓙 := {J : Ideal B | J.IsProper ∧ I ≤ J} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| variable {α : Type} | |
| /-- リストの長さが偶数であることを表す述語 -/ | |
| @[grind] | |
| inductive EvenLength : List α → Prop | |
| | nil : EvenLength [] | |
| | cons_cons {a b : α} {l : List α} (h : EvenLength l) : | |
| EvenLength (a :: b :: l) | |
| example (xs : List α) : EvenLength xs ↔ xs.length % 2 = 0 := by |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Mathlib | |
| namespace TAL | |
| class BoolAlg (P : Type) extends DistribLattice P, HasCompl P, BoundedOrder P where | |
| inf_compl_eq_bot (x : P) : x ⊓ xᶜ = ⊥ | |
| sup_compl_eq_top (x : P) : x ⊔ xᶜ = ⊤ | |
| class BoolRing (P : Type _ )extends Ring P where | |
| idempotent (a : P) : a * a = a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Notes on regular, exact and additive categories | |
| -- Marino Gran | |
| import Mathlib | |
| open CategoryTheory | |
| open Limits | |
| #check Balanced |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Mathlib | |
| import Mathlib.CategoryTheory.Limits.Shapes.Terminal | |
| import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts | |
| import Mathlib.CategoryTheory.Limits.Shapes.Products | |
| open CategoryTheory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Mathlib | |
| open CategoryTheory | |
| example [Category 𝓐] [Category 𝓑] (U : 𝓐 ⥤ 𝓑) : | |
| U.IsRightAdjoint ↔ ∀ B : 𝓑, (U ⋙ coyoneda.obj (Opposite.op B)).IsCorepresentable | |
| := by | |
| constructor<;> intro H | |
| · rcases H with ⟨F, ⟨σ⟩⟩ | |
| intro B; constructor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Mathlib | |
| import Mathlib.CategoryTheory.Limits.Preserves.Basic | |
| open CategoryTheory | |
| open Limits | |
| example [Category 𝓒] (F : 𝓒ᵒᵖ ⥤ Type v) (HF : F.IsRepresentable) : | |
| PreservesLimits F |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Mathlib | |
| import Mathlib.CategoryTheory.Category.Basic | |
| import Mathlib.CategoryTheory.Yoneda | |
| open CategoryTheory | |
| open Limits | |
| #check Functor.cones | |
| /- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Mathlib | |
| import Mathlib.CategoryTheory.Limits.Shapes.Pullback.HasPullback | |
| import Mathlib.CategoryTheory.Limits.Shapes.Pullback.PullbackCone | |
| open CategoryTheory | |
| open Limits | |
| section PB2 | |
| variable [Category 𝓒] (A B C D E F : 𝓒) |
NewerOlder