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
¤ Dauer der Verarbeitung: 0.14 Sekunden
¤
*© Formatika GbR, Deutschland