Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/lean.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1142,9 +1142,9 @@ let rec to_constr =
let ((ind, _) as indu) =
Constr.destInd (EConstr.Unsafe.to_constr tc)
in
let mib = Global.lookup_mind (fst ind) in
let mib, mip = Inductive.lookup_mind_specif (Global.env()) ind in
begin
match mib.mind_record with
match mip.mind_record with
| PrimRecord infos ->
let p, r =
Declareops.inductive_make_projection ind mib ~proj_arg:field
Expand All @@ -1153,7 +1153,7 @@ let rec to_constr =
mkProj (Projection.make p false, r, c)
| NotRecord | FakeRecord ->
if
mib.mind_packets.(snd ind).mind_relevance
mip.mind_relevance
== EConstr.Unsafe.to_relevance EConstr.ERelevance.irrelevant
then
CErrors.user_err
Expand Down