Skip to content

Commit

Permalink
Generate base construtors for inductives with univ params.
Browse files Browse the repository at this point in the history
  • Loading branch information
gebner committed Jan 7, 2025
1 parent 4970ac9 commit e7b8a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smtencoding/FStarC.SMTEncoding.Encode.fst
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ let encode_datacon (env:env_t) (se:sigelt)
constr_fields=univ_fields@fields;
constr_sort=Term_sort;
constr_id=Some (varops.next_id());
constr_base=not injective_type_params
constr_base=not injective_type_params || not (List.isEmpty univ_fields);
} |> Term.constructor_to_decl (Ident.range_of_lid d) in
let app = mk_Apply ddtok_tm vars in
let guard = mk_and_l guards in
Expand Down

0 comments on commit e7b8a51

Please sign in to comment.