Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pointwise Algebra #2381

Merged
merged 6 commits into from
May 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
begin removing redundant module implementation
  • Loading branch information
jamesmckinna committed May 6, 2024
commit dd5ef4ea61c50019a26a228801729fa38ca5a763
17 changes: 7 additions & 10 deletions src/Algebra/Construct/Pointwise.agda
Original file line number Diff line number Diff line change
@@ -50,16 +50,13 @@ private
------------------------------------------------------------------------
-- Setoid structure: here rather than elsewhere? (could be imported?)

module _ (isEquivalenceC : IsEquivalence _≈_) where

open IsEquivalence isEquivalenceC

isEquivalence : IsEquivalence (liftRel _≈_)
isEquivalence = record
{ refl = λ {f} x refl {f x}
; sym = λ f≈g x sym (f≈g x)
; trans = λ f≈g g≈h x trans (f≈g x) (g≈h x)
}
isEquivalence : IsEquivalence _≈_ IsEquivalence (liftRel _≈_)
isEquivalence isEquivalence = record
{ refl = λ {f} x refl {f x}
; sym = λ f≈g x sym (f≈g x)
; trans = λ f≈g g≈h x trans (f≈g x) (g≈h x)
}
where open IsEquivalence isEquivalence

------------------------------------------------------------------------
-- Structures