Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/MathlibTest/CategoryTheory/     Datei vom 15.10.2026 mit Größe 874 B image not shown  

Quelle  SubstHomLift.lean   Sprache: Lean

 

module

public import Mathlib.CategoryTheory.FiberedCategory.HomLift

universe u₁ v₁ u₂ v₂

open CategoryTheory Category

variable {�� : Type u₁} {�� : Type u₂} [Category.{v₁} ��] [Category.{v₂} ��] (p : �� ⥤ ��)


/-- Testing simple substitution -/
example {R S : ��} {a b : ��} (f : R ⟶ S) (φ : a ⟶ b) [p.IsHomLift f φ] : f = f := by
  subst_hom_lift p f φ
  rename_i h
  guard_hyp h : p.IsHomLift (p.map φ) φ
  guard_target = p.map φ = p.map φ
  trivial

/-- Test substitution with more complicated expression -/
example {R S T : ��} {a b c : ��} (f : R ⟶ S) (g : S ⟶ T) (φ : a ⟶ b) (ψ : b ⟶ c)
    [p.IsHomLift f (φ ≫ ψ)] : f = f := by
  subst_hom_lift p f (φ ≫ ψ)
  rename_i h
  guard_hyp h : p.IsHomLift (p.map (φ ≫ ψ)) (φ ≫ ψ)
  guard_target = p.map (φ ≫ ψ) = p.map (φ ≫ ψ)
  trivial

Messung
CHZG
9410010097

¤ Dauer der Verarbeitung: 0.2 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland