Skip to content

Commit

Permalink
updated extra/Subtyping-phil.lagda.md (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
wadler authored Jul 24, 2024
1 parent 496fdb1 commit ed27745
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions extra/Subtyping-phil.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,15 @@ Field = String
## Types

```agda
data Type : Set
Type* : List Field → Set
Type* as = ∀ (a : Field) → (a ∈ as) → Type
data Type : Set where
data Type where
_⇒_ : Type → Type → Type
`ℕ : Type
⦗_⦂_⦘ : (as : List Field) → (AS : Map as Type) → {distinct as} → Type
Type* as = ∀ (a : Field) → (a ∈ as) → Type
⦗_⦂_⦘ : (as : List Field) → (AS : Type* as) → {distinct as} → Type
```

In addition to function types `A ⇒ B` and natural numbers ``, we
Expand Down

0 comments on commit ed27745

Please sign in to comment.