Advertisement
JoelSjogren

meta numbers

Dec 2nd, 2016
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. Let's define the Meta type. In grammar terms, Meta -> [ Meta* ].
  2.  
  3. Meta is a number type. Every meta number is an mset of meta numbers.
  4.  
  5. The sum of a meta number is the number constructed by taking each number in each number in the original number.
  6.  
  7. The product of a meta number is the number constructed by taking each sum of numbers taken one from each number in the original number.
  8.  
  9. Suppose for example that a b c d e f are meta numbers. Then:
  10. sum [] = []
  11. sum [a] = a
  12. sum [a []] = a
  13. sum [[a b] [c d e] [f]] = [a b c d e f]
  14. prod [] = [[]]
  15. prod [a] = a
  16. prod [a [[]]] = a
  17. prod [[a b] [c d e] [f]] = [(sum [a c f]) (sum [a d f]) (sum [a e f]) (sum [b c f]) (sum [b d f]) (sum [b e f])]
  18.  
  19. Here's how we connect to existing notation:
  20. 0 = []
  21. 1 = [[]]
  22. 2 = [[][]]
  23. 3 = [[][][]]
  24.  
  25. Please convince yourself by using the definitions above that:
  26. prod [0 a] = sum [] = 0
  27. prod [1 a] = sum [a] = a
  28. prod [2 a] = sum [a a]
  29. prod [3 a] = sum [a a a].
  30.  
  31. This is exciting!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement