aboutsummaryrefslogtreecommitdiff
path: root/kernel/section.mli
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-08-19 16:15:40 +0200
committerGaëtan Gilbert2019-10-05 12:10:24 +0200
commit2cdccb3f050b68fdfa36ab1ac444b7507564cb77 (patch)
tree6d6a0f43396b2371511d440d951b425658d8ee09 /kernel/section.mli
parent5685e37442e49ce77831a371c471716c3ccb0a2b (diff)
Cleanup ComAssumption
The general idea is to move tests on scope=Discharge and on Lib.sections_are_opened up in the call stack. This allows better control over the universe manipulation. There are some corner case behaviour change, eg: - [Context (foo:=bla)] outside a section correctly declares an axiom (fix #10668) - (not observable) universes for [Variable A B : Type] in section are declared only once - universes and universe names for [Axiom A B : Type] are declared only once. This changes the qualification of the universe name: before it was the last axiom (so [B.u0]), now it's the first one ([A.u0]). Probably nobody cares about this. - context outside section uses different [kind] I'm not sure why context outside a section behaves differently based on whether we're in a module type, I tried to preserve it but maybe we should uniformize. The universe manipulation for Axiom (in the declare_assumptions function) is a bit awkward, maybe when there are multiple monomorphic axioms instead of trying to attach the universes to the first one we should just declare them separately like with Context. OTOH unlike with context dropping the universe names seems incorrect.
Diffstat (limited to 'kernel/section.mli')
0 files changed, 0 insertions, 0 deletions