File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -62,14 +62,27 @@ nil : list A | cons : A -> list A -> list A.
6262
6363Set Printing Universes .
6464
65- (*Module to.
66- (* TODO : fix this *)
65+ Definition clean_universes_entry e :=
66+ match e with
67+ | Monomorphic_entry e => Monomorphic_entry e
68+ | Polymorphic_entry names e => Polymorphic_entry (map (fun x => nAnon) names) e
69+ end .
70+
71+ Definition clean_universes_decl (m : mutual_inductive_entry) : mutual_inductive_entry :=
72+ {| mind_entry_record := m.(mind_entry_record);
73+ mind_entry_finite := m.(mind_entry_finite);
74+ mind_entry_params := m.(mind_entry_params);
75+ mind_entry_inds := m.(mind_entry_inds);
76+ mind_entry_universes := clean_universes_entry m.(mind_entry_universes);
77+ mind_entry_variance := m.(mind_entry_variance);
78+ mind_entry_private := m.(mind_entry_private) |}.
79+
80+ Module to.
6781 Run TemplateProgram (t <- tmQuoteInductive "list" ;;
6882 t <- tmEval all (mind_body_to_entry t) ;;
6983 tmPrint t ;;
70- tmMkInductive t ).
84+ tmMkInductive (clean_universes_decl t) ).
7185End to.
72- *)
7386
7487Definition f@{i j k} := fun (E:Type@{i}) => Type@{max(i,j)}.
7588Quote Definition qf := Eval cbv in f.
You can’t perform that action at this time.
0 commit comments