Qcert.Compiler.QLib.QType



Module QType(runtime:CompilerRuntime).

  Definition empty_brand_model (x:unit) := TBrandModel.empty_brand_model.

  Definition record_kind : Set
    := RType.record_kind.

  Definition open_kind : record_kind
    := RType.Open.

  Definition closed_kind : record_kind
    := RType.Closed.

  Definition camp_type {m:brand_relation} : Set
    := RType.rtype.
  Definition t {m:brand_relation} : Set
    := camp_type.

  Definition sorted_pf_type {m:brand_relation} srl
      := RSort.is_list_sorted RBindings.ODT_lt_dec (@RAssoc.domain String.string camp_type srl) = true.

  Definition bottom {m:brand_relation} : camp_type
    := RType.Bottom.
  Definition top {m:brand_relation} : camp_type
    := RType.Top.
  Definition unit {m:brand_relation} : camp_type
    := RType.Unit.
  Definition nat {m:brand_relation} : camp_type
    := RType.Nat.
  Definition bool {m:brand_relation} : camp_type
    := RType.Bool.
  Definition string {m:brand_relation} : camp_type
    := RType.String.
  Definition bag {m:brand_relation} : camp_type camp_type
    := RType.Coll.
  Definition record {m:brand_relation} : record_kind (r:list (String.string×camp_type)), sorted_pf_type r camp_type
    := RType.Rec.
  Definition either {m:brand_relation} : camp_type camp_type camp_type
    := RType.Either.
  Definition arrow {m:brand_relation} : camp_type camp_type camp_type
    := RType.Arrow.
  Definition brand {m:brand_relation} : list String.string camp_type
    := RType.Brand.


  Definition brand_model : Set := brand_model.
  Definition make_brand_model := make_brand_model_fails.
  Definition typing_runtime : Set := typing_runtime.


  Definition json_to_rtype {m:brand_relation} := json_to_rtype.

  Definition json_to_rtype_with_fail {m:brand_relation} := json_to_rtype_with_fail.


  Definition camp_dtype {m:brand_relation} : Set
    := DType.drtype.
  Definition dt {m:brand_relation} : Set
    := camp_dtype.

  Definition json_to_drtype {m:brand_relation} : JSON.json camp_dtype := json_to_drtype.

  Definition json_to_vrtype_with_fail {m:brand_relation} : JSON.json option (String.string × camp_type) := json_to_vrtype_with_fail.

  Definition tlocal {m:brand_relation} : camp_type camp_dtype := DType.Tlocal.
  Definition tdistr {m:brand_relation} : camp_type camp_dtype := DType.Tdistr.


  Definition camp_type_uncoll (m:brand_model) : camp_type option camp_type
    := @TUtil.tuncoll _ m.

  Definition data_to_sjson (m:brand_model) : data camp_type option String.string
    := @SparkData.data_to_sjson _ _ _ m.

End QType.