aboutsummaryrefslogtreecommitdiff
path: root/lib/Quote.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Quote.ml')
-rw-r--r--lib/Quote.ml15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/Quote.ml b/lib/Quote.ml
index 611843a..4b88e91 100644
--- a/lib/Quote.ml
+++ b/lib/Quote.ml
@@ -15,9 +15,9 @@ struct
let rec quote = function
| D.Neutral ne -> quote_ne ne
- | D.Pi (base, fam) -> S.Pi (quote base, quote_clo fam)
- | D.Lam clo -> S.Lam (quote_clo clo)
- | D.Sg (base, fam) -> S.Sg (quote base, quote_clo fam)
+ | D.Pi (name, base, fam) -> S.Pi (name, quote base, quote_clo fam)
+ | D.Lam (name, clo) -> S.Lam (name, quote_clo clo)
+ | D.Sg (name, base, fam) -> S.Sg (name, quote base, quote_clo fam)
| D.Pair (v, w) -> S.Pair (quote v, quote w)
| D.Type -> S.Type
| D.Bool -> S.Bool
@@ -34,11 +34,12 @@ struct
| D.App v -> S.App (hd, quote v)
| D.Fst -> S.Fst hd
| D.Snd -> S.Snd hd
- | D.BoolElim { cmot; vtrue; vfalse } ->
+ | D.BoolElim { motive_var; motive; true_case; false_case } ->
S.BoolElim {
- motive = quote_clo cmot;
- true_case = quote vtrue;
- false_case = quote vfalse;
+ motive_var;
+ motive = quote_clo motive;
+ true_case = quote true_case;
+ false_case = quote false_case;
scrut = hd;
}
end