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

Method check_nested_ctor_fields_loop

crates/kernel/src/inductive.rs:1898–1915  ·  view source on GitHub ↗

Walk the remaining forall binders of a nested constructor type and check each field domain for positivity against the augmented address set.

(
    &mut self,
    ty: &KExpr<M>,
    augmented_addrs: &[Address],
  )

Source from the content-addressed store, hash-verified

1896 return Err(TcError::Other(
1897 "positivity: nested ctor not found".into(),
1898 ));
1899 },
1900 };
1901 self.check_nested_ctor_fields(
1902 &ctor_ty,
1903 n_params,
1904 &param_args,
1905 &us,
1906 &augmented,
1907 )?;
1908 }
1909
1910 Ok(())
1911 },
1912 _ => {
1913 Err(TcError::Other("positivity: not a valid inductive app".into()))
1914 },
1915 }
1916 },
1917 }
1918 }

Callers 1

Calls 7

whnfMethod · 0.80
open_binder_anonMethod · 0.80
truncateMethod · 0.80
dataMethod · 0.45
lenMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected