let module Con = Content in
function
Con.Aux n ->
- P.Mtext ([],"aux " ^ string_of_int n)
+ P.Mtext ([],"aux " ^ n)
| Con.Premise prem ->
P.Mtext ([],"premise")
| Con.Term t ->
let inductive_arg,args_for_cases =
(match conclude.Con.conclude_args with
Con.Aux(n)::_::tl ->
- let l1,l2 = split n tl in
+ let l1,l2 = split (int_of_string n) tl in
let last_pos = (List.length l2)-1 in
List.nth l2 last_pos,l1
| _ -> assert false) in
Binder (Some id,binder,decl,acic2cexpr t))
| C.ACast (id,v,t) -> acic2cexpr v
| C.ALambda (id,n,s,t) ->
- (match n with
- Cic.Anonymous -> assert false
- | Cic.Name name ->
- let decl = (name, acic2cexpr s) in
- Binder (Some id,"Lambda",decl,acic2cexpr t))
+ let name =
+ (match n with
+ Cic.Anonymous -> "_"
+ | Cic.Name name -> name) in
+ let decl = (name, acic2cexpr s) in
+ Binder (Some id,"Lambda",decl,acic2cexpr t)
| C.ALetIn (id,n,s,t) ->
(match n with
Cic.Anonymous -> assert false