Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  Basic.lean   Sprache: Lean

 

module
import Mathlib.Tactic.CategoryTheory.Monoidal.Basic

open CategoryTheory Mathlib.Tactic BicategoryLike
open MonoidalCategory

universe v u

variable {C : Type u} [Category.{v} C] [MonoidalCategory C]
variable {X Y Z W : C} (f : X ⟶ Y) (g : Y ⟶ Z)

example (f : U ⟶ V ⊗ (W ⊗ X)) (g : (V ⊗ W) ⊗ X ⟶ Y) :
    f ⊗≫ g = f ≫ (α_ _ _ _).inv ≫ g := by
  monoidal

example (f : Z ⟶ W) : (X ⊗ Y) ◁ f = (α_ _ _ _).hom ≫ X ◁ Y ◁ f ≫ (α_ _ _ _).inv := by
  monoidal

example : f ≫ g = f ≫ g := by
  monoidal

example : (f ⊗ₘ g) ▷ X = (α_ _ _ _).hom ≫ (f ⊗ₘ g ▷ X) ≫ (α_ _ _ _).inv := by
  monoidal

-- `monoidal` used to build a proof term rejected by the kernel for `f ⊗ₘ (X ◁ g)` (#44543).
example : f ⊗ₘ (W ◁ g) = (α_ _ _ _).inv ≫ ((f ▷ W) ⊗ₘ g) ≫ (α_ _ _ _).hom := by
  monoidal

example {V₁ V₂ V₃ : C} (R : ∀ V₁ V₂ : C, V₁ ⊗ V₂ ⟶ V₂ ⊗ V₁) :
    R V₁ V₂ ▷ V₃ ⊗≫ V₂ ◁ R V₁ V₃ =
      R V₁ V₂ ▷ V₃ ≫ (α_ _ _ _).hom ⊗≫ �� _ ≫ V₂ ◁ R V₁ V₃ := by
  monoidal

/-- error: expression contains metavariables:
x ⊗ y ⊗ ?_ -/

#guard_msgs in
example {x y z w : C} (f : x ⟶ y) (g : y ⟶ z) (h : x ⊗ y ⊗ w ⟶ y ⊗ z ⊗ w)
    (η : f ⊗ₘ (g ▷ w) = h) :
    (f ⊗ₘ g) ▷ w = �� _ ⊗≫ h ⊗≫ �� _ := by
  calc
    (f ⊗ₘ g) ▷ w = �� _ ⊗≫ (f ⊗ₘ g ▷ _) ⊗≫ �� _ := by monoidal
      _ = �� _ ⊗≫ h ⊗≫ �� _ := by rw [η]

Messung
CHZG
9310010097

¤ Dauer der Verarbeitung: 0.12 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,088
#Domains=862,474