Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sgdt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gradual-typing
sgdt
Commits
e10bef9d
Commit
e10bef9d
authored
1 year ago
by
Eric Giovannini
Browse files
Options
Downloads
Patches
Plain Diff
More proofs involving Lift
parent
7f06e646
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
formalizations/guarded-cubical/Semantics/Lift.agda
+52
-1
52 additions, 1 deletion
formalizations/guarded-cubical/Semantics/Lift.agda
with
52 additions
and
1 deletion
formalizations/guarded-cubical/Semantics/Lift.agda
+
52
−
1
View file @
e10bef9d
...
...
@@ -267,7 +267,6 @@ ext-theta f l =
θ (fix (ext' f) <$> l) ∎
monad-unit-l : ∀ (a : A) (f : A -> L℧ B) -> ext f (ret a) ≡ f a
monad-unit-l = ext-eta
...
...
@@ -293,6 +292,52 @@ monad-assoc : {A B C : Type} -> (f : A -> L℧ B) (g : B -> L℧ C) (la : L℧ A
monad-assoc = {!!}
ext-comp-ret : (f : L℧ A -> L℧ B) (a : A) (n : ℕ) ->
ext (f ∘ ret) ((δ ^ n) (η a)) ≡ (δ ^ n) (f (η a))
ext-comp-ret f a zero = ext-eta a (f ∘ ret)
ext-comp-ret f a (suc n) =
ext (f ∘ ret) (δ ((δ ^ n) (η a)))
≡⟨ ext-theta (f ∘ ret) _ ⟩
θ (ext (f ∘ ret) <$> (next ((δ ^ n) (η a))))
≡⟨ refl ⟩
θ (λ t -> ext (f ∘ ret) (next ((δ ^ n) (η a)) t))
≡⟨ refl ⟩
δ (ext (f ∘ ret) ((δ ^ n) (η a)))
≡⟨ cong δ (ext-comp-ret f a n) ⟩
δ ((δ ^ n) (f (η a))) ∎
-- Need f to preserve ℧ and preserve θ...
ext-comp-ret' : (f : L℧ A -> L℧ B) ->
▹ ((la : L℧ A) -> ext (f ∘ ret) la ≡ f la) ->
(la : L℧ A) -> ext (f ∘ ret) la ≡ f la
ext-comp-ret' f IH (η a) = ext-eta a (f ∘ ret)
ext-comp-ret' f IH ℧ = {!!}
ext-comp-ret' f IH (θ la~) = {!!}
-- Ext commutes with delay
ext-delay : (f : A -> L℧ B) (la : L℧ A) (n : ℕ) ->
ext f ((δ ^ n) la) ≡ (δ ^ n) (ext f la)
ext-delay f la zero = refl
ext-delay f la (suc n) =
ext f (δ ((δ ^ n) la))
≡⟨ refl ⟩
ext f (θ (next ((δ ^ n) la)))
≡⟨ ext-theta f _ ⟩
θ (ext f <$> next ((δ ^ n) la))
≡⟨ refl ⟩
θ (λ t -> ext f (next ((δ ^ n) la) t))
≡⟨ refl ⟩
θ (λ t -> ext f ((δ ^ n) la))
≡⟨ (λ i -> θ λ t -> ext-delay f la n i) ⟩
θ (λ t -> (δ ^ n) (ext f la))
≡⟨ refl ⟩
δ ((δ ^ n) (ext f la)) ∎
{-
monad-assoc-def =
{A B C : Type} ->
...
...
@@ -413,6 +458,12 @@ mapL-comp : (g : B -> C) (f : A -> B) -> (la : L℧ A) ->
mapL (g ∘ f) la ≡ (mapL g ∘ mapL f) la
mapL-comp g f = fix (mapL-comp' g f)
-- MapL commutes with delta
mapL-delay : (f : A -> B) (la : L℧ A) (n : ℕ) ->
mapL f ((δ ^ n) la) ≡ (δ ^ n) (mapL f la)
mapL-delay f la n = ext-delay (ret ∘ f) la n
-- Strong monadic structure
retStrong : {Γ X : Type ℓ} -> Γ -> X -> L℧ X
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment