Skip to content

Commit 13180fd

Browse files
committed
fix TypeBase
1 parent ffa1256 commit 13180fd

File tree

2 files changed

+26
-23
lines changed

2 files changed

+26
-23
lines changed

src/1/TypeBase.sig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ sig
3131
val case_cong_of : hol_type -> thm
3232
val case_def_of : hol_type -> thm
3333
val case_eq_of : hol_type -> thm
34+
val constant_case_of : hol_type -> thm
3435
val nchotomy_of : hol_type -> thm
3536
val distinct_of : hol_type -> thm
3637
val fields_of : hol_type -> (string * rcd_fieldinfo) list

src/1/TypeBase.sml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ val bool_info =
7171
case_def = boolTheory.bool_case_thm,
7272
nchotomy = boolTheory.BOOL_CASES_AX
7373
},
74+
constant_case = boolTheory.bool_case_CONST,
7475
case_cong = boolTheory.COND_CONG,
7576
distinct = SOME (CONJUNCT1 boolTheory.BOOL_EQ_DISTINCT),
7677
nchotomy = boolTheory.BOOL_CASES_AX,
@@ -146,32 +147,33 @@ fun pfetch s ty =
146147
("unable to find "^
147148
Lib.quote (print_sp_type ty)^" in the TypeBase");
148149

149-
fun axiom_of ty = TypeBasePure.axiom_of (pfetch "axiom_of" ty)
150-
fun induction_of ty = TypeBasePure.induction_of (pfetch "induction_of" ty)
151-
fun constructors_of ty = TypeBasePure.constructors_of (pfetch "constructors_of" ty)
152-
fun destructors_of ty = TypeBasePure.destructors_of (pfetch "destructors_of" ty)
153-
fun recognizers_of ty = TypeBasePure.recognizers_of (pfetch "recognizers_of" ty)
154-
fun case_const_of ty = TypeBasePure.case_const_of (pfetch "case_const_of" ty)
155-
fun case_cong_of ty = TypeBasePure.case_cong_of (pfetch "case_cong_of" ty)
156-
fun case_def_of ty = TypeBasePure.case_def_of (pfetch "case_def_of" ty)
157-
fun case_eq_of ty = TypeBasePure.case_eq_of (pfetch "case_eq_of" ty)
158-
fun nchotomy_of ty = TypeBasePure.nchotomy_of (pfetch "nchotomy_of" ty)
159-
fun fields_of ty = TypeBasePure.fields_of (pfetch "fields_of" ty)
160-
fun accessors_of ty = TypeBasePure.accessors_of (pfetch "accessors_of" ty)
161-
fun updates_of ty = TypeBasePure.updates_of (pfetch "updates_of" ty)
162-
fun simpls_of ty = TypeBasePure.simpls_of (pfetch "simpls_of" ty)
163-
fun axiom_of0 ty = TypeBasePure.axiom_of0 (pfetch "axiom_of" ty)
164-
fun induction_of0 ty = TypeBasePure.induction_of0 (pfetch "induction_of0" ty)
165-
166-
fun distinct_of ty = valOf2 ty "distinct_of"
150+
fun axiom_of ty = TypeBasePure.axiom_of (pfetch "axiom_of" ty)
151+
fun induction_of ty = TypeBasePure.induction_of (pfetch "induction_of" ty)
152+
fun constructors_of ty = TypeBasePure.constructors_of (pfetch "constructors_of" ty)
153+
fun destructors_of ty = TypeBasePure.destructors_of (pfetch "destructors_of" ty)
154+
fun recognizers_of ty = TypeBasePure.recognizers_of (pfetch "recognizers_of" ty)
155+
fun case_const_of ty = TypeBasePure.case_const_of (pfetch "case_const_of" ty)
156+
fun case_cong_of ty = TypeBasePure.case_cong_of (pfetch "case_cong_of" ty)
157+
fun case_def_of ty = TypeBasePure.case_def_of (pfetch "case_def_of" ty)
158+
fun case_eq_of ty = TypeBasePure.case_eq_of (pfetch "case_eq_of" ty)
159+
fun constant_case_of ty = TypeBasePure.constant_case_of (pfetch "case_eq_of" ty)
160+
fun nchotomy_of ty = TypeBasePure.nchotomy_of (pfetch "nchotomy_of" ty)
161+
fun fields_of ty = TypeBasePure.fields_of (pfetch "fields_of" ty)
162+
fun accessors_of ty = TypeBasePure.accessors_of (pfetch "accessors_of" ty)
163+
fun updates_of ty = TypeBasePure.updates_of (pfetch "updates_of" ty)
164+
fun simpls_of ty = TypeBasePure.simpls_of (pfetch "simpls_of" ty)
165+
fun axiom_of0 ty = TypeBasePure.axiom_of0 (pfetch "axiom_of" ty)
166+
fun induction_of0 ty = TypeBasePure.induction_of0 (pfetch "induction_of0" ty)
167+
168+
fun distinct_of ty = valOf2 ty "distinct_of"
167169
(TypeBasePure.distinct_of (pfetch "distinct_of" ty))
168-
fun one_one_of ty = valOf2 ty "one_one_of"
170+
fun one_one_of ty = valOf2 ty "one_one_of"
169171
(TypeBasePure.one_one_of (pfetch "one_one_of" ty))
170-
fun size_of0 ty = TypeBasePure.size_of0 (pfetch "size_of0" ty)
171-
fun encode_of0 ty = TypeBasePure.encode_of0 (pfetch "encode_of0" ty)
172-
fun size_of ty = valOf2 ty "size_of"
172+
fun size_of0 ty = TypeBasePure.size_of0 (pfetch "size_of0" ty)
173+
fun encode_of0 ty = TypeBasePure.encode_of0 (pfetch "encode_of0" ty)
174+
fun size_of ty = valOf2 ty "size_of"
173175
(TypeBasePure.size_of (pfetch "size_of" ty))
174-
fun encode_of ty = valOf2 ty "encode_of"
176+
fun encode_of ty = valOf2 ty "encode_of"
175177
(TypeBasePure.encode_of (pfetch "encode_of" ty))
176178

177179

0 commit comments

Comments
 (0)