Skip to content
Open
Show file tree
Hide file tree
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/ecSection.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1478,12 +1478,12 @@ and generalize_ctheory

match compiled with
| None ->
genenv
{ genenv_tmp with tg_env = genenv.tg_env }
| Some compiled when List.is_empty compiled.ctheory.cth_items ->
genenv
{ genenv_tmp with tg_env = genenv.tg_env }
| Some compiled ->
let scenv = add_th ~import:true compiled genenv.tg_env in
{ genenv with tg_env = scenv; }
{ genenv_tmp with tg_env = scenv; }

and generalize_lc_item (genenv : to_gen) (prefix : path) (item : sc_item) =
match item with
Expand Down
12 changes: 12 additions & 0 deletions tests/theory-in-section-w-declare-type.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
section.
declare type t.
theory T.
op foo : t.
end T.
op bar : t = T.foo.
end section.

lemma L (y x : unit): (idfun bar = y) =>
idfun T.foo = x /\ idfun bar = y.
move => yP.
rewrite yP.
Loading