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

Function good_basic_def

crates/kernel/src/tutorial/basic.rs:17–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 /// good_def basicDef : Type := Prop
16 #[test]
17 fn good_basic_def() {
18 let mut env = KEnv::<Meta>::new();
19 let (id, c) = mk_defn(
20 "basicDef",
21 0,
22 vec![],
23 sort1(),
24 sort0(),
25 ReducibilityHints::Abbrev,
26 );
27 env.insert(id.clone(), c);
28 check_accepts(&mut env, &id);
29 }
30
31 /// bad_def badDef : Prop := Type
32 /// Value `Type` has type `Type 1`, not `Prop`.

Callers

nothing calls this directly

Calls 6

mk_defnFunction · 0.85
check_acceptsFunction · 0.85
sort1Function · 0.50
sort0Function · 0.50
insertMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected