Skip to content

Commit

Permalink
refactor: minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia committed May 31, 2024
1 parent dbe60b7 commit 78462d6
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/Mugen/Algebra/Displacement/Instances/Endomorphism.agda
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ open import Mugen.Prelude

open import Mugen.Algebra.Displacement
open import Mugen.Cat.Monad
open import Mugen.Cat.StrictOrders
open import Mugen.Cat.Instances.StrictOrders
open import Mugen.Order.StrictOrder
open import Mugen.Order.Instances.Endomorphism
renaming (Endomorphism to Endomorphism-poset)
Expand Down
2 changes: 1 addition & 1 deletion src/Mugen/Cat/HierarchyTheory.agda
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ open import Cat.Diagram.Monad
import Cat.Reasoning as Cat

open import Mugen.Prelude
open import Mugen.Cat.StrictOrders
open import Mugen.Cat.Instances.StrictOrders
open import Mugen.Order.StrictOrder

--------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Mugen/Cat/HierarchyTheory/McBride.agda
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ open import Mugen.Prelude
open import Mugen.Algebra.Displacement
open import Mugen.Order.Instances.LeftInvariantRightCentered
open import Mugen.Order.StrictOrder
open import Mugen.Cat.StrictOrders
open import Mugen.Cat.Instances.StrictOrders
open import Mugen.Cat.HierarchyTheory

import Mugen.Order.Reasoning
Expand Down
13 changes: 3 additions & 10 deletions src/Mugen/Cat/HierarchyTheory/Universality.agda
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,13 @@ open import Mugen.Prelude
open import Mugen.Algebra.Displacement
open import Mugen.Algebra.Displacement.Instances.Endomorphism

open import Mugen.Cat.Endomorphisms
open import Mugen.Cat.Indexed
open import Mugen.Cat.StrictOrders
open import Mugen.Cat.Instances.Endomorphisms
open import Mugen.Cat.Instances.Indexed
open import Mugen.Cat.Instances.StrictOrders
open import Mugen.Cat.Monad
open import Mugen.Cat.HierarchyTheory
open import Mugen.Cat.HierarchyTheory.McBride

open import Mugen.Order.StrictOrder
open import Mugen.Order.Instances.Endomorphism renaming (Endomorphism to Endomorphism-poset)
open import Mugen.Order.Instances.LeftInvariantRightCentered
open import Mugen.Order.Instances.Lift
open import Mugen.Order.Instances.Singleton

import Mugen.Order.Reasoning as Reasoning

--------------------------------------------------------------------------------
Expand All @@ -53,7 +47,6 @@ module Mugen.Cat.HierarchyTheory.Universality {o o' r}
-- Notation

private
open Strictly-monotone
open Algebra-hom
module H = Monad H

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ open import Mugen.Prelude
open import Mugen.Algebra.Displacement
open import Mugen.Algebra.Displacement.Instances.Endomorphism

open import Mugen.Cat.Endomorphisms
open import Mugen.Cat.StrictOrders
open import Mugen.Cat.Instances.Endomorphisms
open import Mugen.Cat.Instances.StrictOrders
open import Mugen.Cat.Monad
open import Mugen.Cat.HierarchyTheory
open import Mugen.Cat.HierarchyTheory.McBride
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ open import Mugen.Prelude
open import Mugen.Algebra.Displacement
open import Mugen.Algebra.Displacement.Instances.Endomorphism

open import Mugen.Cat.Endomorphisms
open import Mugen.Cat.StrictOrders
open import Mugen.Cat.Instances.Endomorphisms
open import Mugen.Cat.Instances.StrictOrders
open import Mugen.Cat.Monad
open import Mugen.Cat.HierarchyTheory
open import Mugen.Cat.HierarchyTheory.McBride
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-- vim: nowrap
open import Data.Nat

open import Order.Instances.Discrete
open import Order.Instances.Disjoint

Expand All @@ -12,15 +13,14 @@ import Cat.Reasoning as Cat

open import Mugen.Prelude

open import Mugen.Cat.Endomorphisms
open import Mugen.Cat.Indexed
open import Mugen.Cat.StrictOrders
open import Mugen.Cat.Instances.Endomorphisms
open import Mugen.Cat.Instances.Indexed
open import Mugen.Cat.Instances.StrictOrders
open import Mugen.Cat.Monad
open import Mugen.Cat.HierarchyTheory

open import Mugen.Order.StrictOrder
open import Mugen.Order.Instances.Copower
open import Mugen.Order.Instances.Singleton

import Mugen.Order.Reasoning as Reasoning

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
open import Cat.Prelude

module Mugen.Cat.Endomorphisms {o ℓ} where
module Mugen.Cat.Instances.Endomorphisms {o ℓ} where

--------------------------------------------------------------------------------
-- The category of endomorphisms on an object.
--
-- /Technically/ this is a monoid, but it's easier to work with
-- in this form w/o having to introduce a delooping.

open import Mugen.Cat.Indexed
open import Mugen.Cat.Instances.Indexed

Endos : (𝒞 : Precategory o ℓ) (X : 𝒞 .Precategory.Ob) Precategory lzero ℓ
Endos 𝒞 X = Indexed {I = ⊤} 𝒞 λ _ X
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
open import Cat.Prelude

module Mugen.Cat.Indexed {o o' ℓ} {I : Type o'} where
module Mugen.Cat.Instances.Indexed {o o' ℓ} {I : Type o'} where

import Cat.Reasoning as Cat

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Mugen.Cat.StrictOrders where
module Mugen.Cat.Instances.StrictOrders where

open import Mugen.Prelude
open import Mugen.Order.StrictOrder
Expand Down
6 changes: 3 additions & 3 deletions src/Mugen/Everything.agda
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ import Mugen.Algebra.Displacement.Instances.Product
import Mugen.Algebra.Displacement.Instances.Support
import Mugen.Algebra.Displacement.Subalgebra
import Mugen.Algebra.OrderedMonoid
import Mugen.Cat.Endomorphisms
import Mugen.Cat.HierarchyTheory
import Mugen.Cat.HierarchyTheory.McBride
import Mugen.Cat.HierarchyTheory.Universality
import Mugen.Cat.HierarchyTheory.Universality.EndomorphismEmbedding
import Mugen.Cat.HierarchyTheory.Universality.EndomorphismEmbeddingNaturality
import Mugen.Cat.HierarchyTheory.Universality.SubcategoryEmbedding
import Mugen.Cat.Indexed
import Mugen.Cat.Instances.Endomorphisms
import Mugen.Cat.Instances.Indexed
import Mugen.Cat.Instances.StrictOrders
import Mugen.Cat.Monad
import Mugen.Cat.StrictOrders
import Mugen.Data.List
import Mugen.Data.NonEmpty
import Mugen.Order.Instances.BasedSupport
Expand Down
2 changes: 1 addition & 1 deletion src/Mugen/Order/Instances/Endomorphism.agda
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import Cat.Reasoning as Cat
open import Mugen.Prelude

open import Mugen.Order.StrictOrder
open import Mugen.Cat.StrictOrders
open import Mugen.Cat.Monad
open import Mugen.Cat.Instances.StrictOrders

import Mugen.Order.Reasoning as Reasoning

Expand Down

0 comments on commit 78462d6

Please sign in to comment.