Modal type theory people: Given a judgmental proposition P (that is, not necessa...

@olynch@mathstodon.xyz

Modal type theory people:

Given a judgmental proposition P (that is, not necessarily a type, a meta-level proposition), there is an open modality associated to it which looks like (P -> A), this is right adjoint to adding a proof of P to the context. So far, so good.

I want to now instead have a context formation operator which acts like (P -> Γ). My intuition here is that (P -> Γ) "locks" the context Γ, and Γ,P "unlocks" the context. This seems to make sense because (P -> Γ,P) = (P -> Γ), (locking something unlocked is the same as locking the original thing) and (P -> Γ),P = Γ,P (unlocking something that has been locked is the same as unlocking the original thing).

Now, I don't expect (P -> Γ) to have a further right adjoint (I'm using it for a different purpose). But is this a kind of context operation that people have looked at?