Skip to content

Commit

Permalink
add substitutions in assumed type_act
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoDralliam committed Oct 30, 2023
1 parent d044ffb commit ea111db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions theories/DirectedSemantics.v
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Section MorphismDefinition.

where "[ Δ |- w : t -( d )- u : A ]" := (TermRel Δ t u d A w).

Context (type_act : forall (γ : list direction) (dA : direction) (A : term) (wdA : [γ |- A ◃ dA]) (φ : list term), term).
Context (type_act : forall (γ : list direction) (dA : direction) (A : term) (wdA : [γ |- A ◃ dA]) (σ τ : nat -> term) (φ : list term), term).

(* Given a context of directions γ coming from Θ,
substitutions, Δ |- σ, τ : |Θ|,
Expand All @@ -51,9 +51,9 @@ Section MorphismDefinition.
(* Discrete case, A[σ] ≅ A[τ], no transport needed *)
| Discr => (t, u, A[σ])
(* Fun case, A @ φ : A[σ] → A[τ] *)
| Fun => (tApp (type_act γ dA A wdA φ) t, u, A[τ])
| Fun => (tApp (type_act γ dA A wdA σ τ φ) t, u, A[τ])
(* Cofun case, A @ φ : A[τ] → A[σ] *)
| Cofun => (t, tApp (type_act γ dA A wdA φ) u, A[σ])
| Cofun => (t, tApp (type_act γ dA A wdA σ τ φ) u, A[σ])
end.

Inductive SubstRel (Δ: Context.context) :
Expand Down

0 comments on commit ea111db

Please sign in to comment.