Section mechanism in Coq. Forbid omitting of hypotheses from context

Question

I need more primitive mechanism of generalization in sections. For example,

Section sec.
  Context (n : nat).
  Definition Q := bool.
End sec.
Q : Set

I will obtain Q : Set, but I need Q : nat -> Set.

I've tried Context, Hypotheses, Variables. It doesn't work. How to obtain such behavior?

Answer

This is not a thing you can do with Definition ... :=. However, you can use Proof using:

Section sec.
  Context (n : nat).
  
n: nat

Set
n: nat

Set
exact bool. Defined. End sec.
Q : nat -> Set