You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having some trouble in using the replace function.
I was trying to substitute $$ 0 $$ using the equality $$ 0 = b \cdot 0 $$ in $$c = 0 + c$$ to hopefully get $$c = b \cdot 0 + c $$.
But in the function call below:
I am getting an error claiming that in the second variable of replace, idris expects a value of the type P 0. The documentation on thisP function couldn't clarify much. Any inputs here would be much appreciated.
The overall goal is the existence and uniqueness (up to permutation) of the prime decomposition. But there are many steps along the way.
Primes and Composites
Factorization n = (a, b, n = a * b, a > 1, b > 1)
Prime n = (n > 1, (n= a * b) -> (a = 1) | (b = 1))
n
either gives a factorisation ofn
or a proof that it is a prime.Existence of prime factorisation
(m : Nat ** Prime m)
to combine the values with proofs.n
Uniqueness
p divides mn => (p divides m) or (p divides n)
The text was updated successfully, but these errors were encountered: