Skip to content
Snippets Groups Projects
Commit 47689951 authored by gabrielhdt's avatar gabrielhdt
Browse files

existential builtin, string as list of numbers

parent 355911e0
No related branches found
No related tags found
No related merge requests found
......@@ -15,3 +15,11 @@ set builtin "+1" ≔ succ
rule ε (succ $n = succ $m) ↪ ε ($n = $m)
with ε (zero = succ _) ↪ ε false
with ε (zero = zero) ↪ ε true
// Define strings as list of numbers
constant symbol {|!String!|}: θ {|set|}
constant symbol str_empty: η {|!String!|}
constant symbol str_cons: η {|!Number!|} → η {|!String!|} → η {|!String!|}
set declared "∃"
definition ∃ {T: Set} (P: η T → η bool) ≔ ¬ (∀ (λx, ¬ (P x)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment