Skip to content
Snippets Groups Projects
Commit 04ee53b0 authored by gabrielhdt's avatar gabrielhdt
Browse files

some comments

parent 549e25cb
No related branches found
Tags v0.16.1
No related merge requests found
......@@ -81,5 +81,7 @@ rule ↑ {&T} &T _ &x → &x // Identity cast
and ↑ {Psub &T &P} &T _ → fst &P
// and a "downcast" is the pair constructor
set declared "↓"
// [↓ {T} P t π] down casts term [t] to type [{x: T | P(x)}] given the
// proof [π] that [t] verifies predicate [P].
definition ↓ {T} ≔ pair {T}
// NOTE: we can only down-cast from a type to its direct sub-type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment