Skip to content

Commit

Permalink
fumula direct products: generalize universe levels
Browse files Browse the repository at this point in the history
  • Loading branch information
pthariensflame committed Jun 8, 2024
1 parent 3a7f83e commit 497b3ea
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Algebra/Fumula/Construct.agda
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ module Reverse where
reversibleFumula F = record { isReversibleFumula = isReversibleFumula F.isReversibleFumula }
where module F = ReversibleFumula F

module DirectProduct {c} where
module DirectProduct {c₁ ℓ₁ c₂ ℓ₂} where

rawAlmostFumula : RawAlmostFumula c RawAlmostFumula c RawAlmostFumula c ℓ
rawAlmostFumula : RawAlmostFumula c₁ ℓ₁ RawAlmostFumula c₂ ℓ₂ RawAlmostFumula (c₁ ⊔ c₂) (ℓ₁ ⊔ ℓ₂)
rawAlmostFumula F₁ F₂ = record
{ Carrier = F₁.Carrier × F₂.Carrier
; _≈_ = Pointwise F₁._≈_ F₂._≈_
Expand All @@ -223,7 +223,7 @@ module DirectProduct {c ℓ} where
module F₁ = RawAlmostFumula F₁
module F₂ = RawAlmostFumula F₂

rawFumula : RawFumula c RawFumula c RawFumula c ℓ
rawFumula : RawFumula c₁ ℓ₁ RawFumula c₂ ℓ₂ RawFumula (c₁ ⊔ c₂) (ℓ₁ ⊔ ℓ₂)
rawFumula F₁ F₂ = record
{ Carrier = Almost.Carrier
; _≈_ = Almost._≈_
Expand All @@ -235,7 +235,7 @@ module DirectProduct {c ℓ} where
module F₂ = RawFumula F₂
module Almost = RawAlmostFumula (rawAlmostFumula F₁.rawAlmostFumula F₂.rawAlmostFumula)

almostFumula : AlmostFumula c AlmostFumula c AlmostFumula c ℓ
almostFumula : AlmostFumula c₁ ℓ₁ AlmostFumula c₂ ℓ₂ AlmostFumula (c₁ ⊔ c₂) (ℓ₁ ⊔ ℓ₂)
almostFumula F₁ F₂ = record
{ Carrier = Raw.Carrier
; _≈_ = Raw._≈_
Expand All @@ -254,7 +254,7 @@ module DirectProduct {c ℓ} where
module _ F₁ F₂ where
open AlmostFumula (almostFumula F₁ F₂) public using (isAlmostFumula)

reversibleAlmostFumula : ReversibleAlmostFumula c ReversibleAlmostFumula c ReversibleAlmostFumula c ℓ
reversibleAlmostFumula : ReversibleAlmostFumula c₁ ℓ₁ ReversibleAlmostFumula c₂ ℓ₂ ReversibleAlmostFumula (c₁ ⊔ c₂) (ℓ₁ ⊔ ℓ₂)
reversibleAlmostFumula F₁ F₂ = record
{ Carrier = Unrev.Carrier
; _≈_ = Unrev._≈_
Expand All @@ -271,7 +271,7 @@ module DirectProduct {c ℓ} where
module _ F₁ F₂ where
open ReversibleAlmostFumula (reversibleAlmostFumula F₁ F₂) public using (isReversibleAlmostFumula)

fumula : Fumula c Fumula c Fumula c ℓ
fumula : Fumula c₁ ℓ₁ Fumula c₂ ℓ₂ Fumula (c₁ ⊔ c₂) (ℓ₁ ⊔ ℓ₂)
fumula F₁ F₂ = record
{ Carrier = Raw.Carrier
; _≈_ = Raw._≈_
Expand Down Expand Up @@ -308,7 +308,7 @@ module DirectProduct {c ℓ} where
module _ F₁ F₂ where
open Fumula (fumula F₁ F₂) public using (isFumula)

reversibleFumula : ReversibleFumula c ReversibleFumula c ReversibleFumula c ℓ
reversibleFumula : ReversibleFumula c₁ ℓ₁ ReversibleFumula c₂ ℓ₂ ReversibleFumula (c₁ ⊔ c₂) (ℓ₁ ⊔ ℓ₂)
reversibleFumula F₁ F₂ = record
{ Carrier = Unrev.Carrier
; _≈_ = Unrev._≈_
Expand Down

0 comments on commit 497b3ea

Please sign in to comment.