-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTargetsOnly.agda
More file actions
30 lines (23 loc) · 1 KB
/
TargetsOnly.agda
File metadata and controls
30 lines (23 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{-# OPTIONS --without-K --rewriting --type-in-type #-}
open import Base
open import UniverseOne
module TargetsOnly where
-- Okay. I see. In this version, trees do not carry
-- the additional information of their source types.
-- Rather, that information would be *calculated*.
data Tree₂' : Set → Set where
lf₂' : (A : Set) → Tree₂' A
nd₂' : (Γ : Ctx) (A : Set) (E : Eqv (Σ↓ Γ) A)
→ (ε : (p : CtxPos Γ) → Tree₂' (CtxTyp Γ p))
→ Tree₂' A
src : {A : Set} → Tree₂' A → Ctx
src = {!!}
data Tree₃ : (Γ : Ctx) (A : Set) → Eqv (Σ↓ Γ) A → Set where
lf₃ : (Γ : Ctx) (A : Set) (E : Eqv (Σ↓ Γ) A) → Tree₃ Γ A E
nd₃ : (A : Set) (σ : Tree₂' A)
→ (E : Eqv (Σ↓ (src σ)) A)
→ {!!}
→ Tree₃ (src σ) A E
-- If you had only this, would you be able to write a corresponding
-- frame type and all that jazz? What would a three tree be indexed by?
-- Well, it's target would be a cell.