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

Method get_level_params

crates/common/src/env.rs:1437–1448  ·  view source on GitHub ↗

Returns the universe level parameter names of this constant.

(&self)

Source from the content-addressed store, hash-verified

1435 ConstantInfo::QuotInfo(v) => &v.cnst.typ,
1436 ConstantInfo::InductInfo(v) => &v.cnst.typ,
1437 ConstantInfo::CtorInfo(v) => &v.cnst.typ,
1438 ConstantInfo::RecInfo(v) => &v.cnst.typ,
1439 }
1440 }
1441
1442 /// Returns the value of this constant, if it has one (definitions, theorems, opaques).
1443 pub fn get_value(&self) -> Option<&Expr> {
1444 match self {
1445 ConstantInfo::DefnInfo(v) => Some(&v.value),
1446 ConstantInfo::ThmInfo(v) => Some(&v.value),
1447 ConstantInfo::OpaqueInfo(v) => Some(&v.value),
1448 _ => None,
1449 }
1450 }
1451

Callers 3

const_alpha_eqFunction · 0.80
const_alpha_eq_with_permFunction · 0.80
const_congruentFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected