diff options
| author | Pierre-Marie Pédrot | 2020-01-29 15:47:17 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-01-29 15:47:17 +0100 |
| commit | d135b30704dff9ce1dce700f49a41e4089153d8f (patch) | |
| tree | 19b7173c01a7d02c7a50676c5a2488f3535905c0 /kernel/uGraph.ml | |
| parent | a510adb17481ae2c007463c083f562725cda9896 (diff) | |
| parent | 458cf1324163821b60ab0b731a60bb1977576d9f (diff) | |
Merge PR #11455: Small API additions to kernel/univ
Reviewed-by: ppedrot
Diffstat (limited to 'kernel/uGraph.ml')
| -rw-r--r-- | kernel/uGraph.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/uGraph.ml b/kernel/uGraph.ml index 33336079bb..4d15ce741c 100644 --- a/kernel/uGraph.ml +++ b/kernel/uGraph.ml @@ -128,7 +128,7 @@ let enforce_leq_alg u v g = | exception (UniverseInconsistency _ as e) -> Inr e) in (* max(us) <= max(vs) <-> forall u in us, exists v in vs, u <= v *) - let c = Universe.map (fun u -> Universe.map (fun v -> (u,v)) v) u in + let c = List.map (fun u -> List.map (fun v -> (u,v)) (Universe.repr v)) (Universe.repr u) in let c = List.cartesians enforce_one (Inl (Constraint.empty,g)) c in (* We pick a best constraint: smallest number of constraints, not an error if possible. *) let order x y = match x, y with |
