MCPcopy Create free account
hub / github.com/argumentcomputer/ix / mk_thm

Function mk_thm

crates/kernel/src/testing.rs:156–177  ·  view source on GitHub ↗
(
  name: &str,
  lvls: u64,
  level_params: Vec<Name>,
  ty: ME,
  val: ME,
)

Source from the content-addressed store, hash-verified

154}
155
156pub fn mk_thm(
157 name: &str,
158 lvls: u64,
159 level_params: Vec<Name>,
160 ty: ME,
161 val: ME,
162) -> (MId, KConst<Meta>) {
163 let id = mk_id(name);
164 let c = KConst::Defn {
165 name: mk_name(name),
166 level_params,
167 kind: DefKind::Theorem,
168 safety: DefinitionSafety::Safe,
169 hints: ReducibilityHints::Opaque,
170 lvls,
171 ty,
172 val,
173 lean_all: vec![id.clone()],
174 block: id.clone(),
175 };
176 (id, c)
177}
178
179pub fn mk_axiom(
180 name: &str,

Callers 15

good_peano1Function · 0.85
good_peano2Function · 0.85
good_peano3Function · 0.85
good_bool_rec_reductionFunction · 0.85
good_n_rec_reductionFunction · 0.85
good_rtree_rec_reductionFunction · 0.85
good_nat_lit_eqFunction · 0.85
good_proj_redFunction · 0.85
good_struct_etaFunction · 0.85
good_prod_rec_reductionFunction · 0.85

Calls 3

mk_idFunction · 0.70
mk_nameFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected