╭
𝟚𝟚·
Sapphire is a language I'm developing to learn about symbolic logic. I enjoy logic puzzles like Sudoku and studied a bit of math in college, so it's a fun project.
┊
Integers and strings, along with sets, maps and finite sequences are all ‘built in’. So far, I'm looking at it from the perspective of constraint satisfaction. I
┊
support partial evaluation of expressions in one layer (the ‘Iron Interpreter’) and another implements constraint propogation (the ‘Silver Solver’). I'm hoping to
ℕ
┊
develop a ‘Gold Proof Verifier’ but that's been on the back burner.
𝕠
┊
𝕧
┊
I started with Python, but now use the same block structuring front end I use for Sapphire and generate Python - I call that mostly Python language ‘Midnight’. I do
┊
the same with C code, from ‘Cobalt’ source. While Cobalt is used for efficiency, Midnight presents the same abstract types as Sapphire but with mutable variants.
┊
Sapphire is genuinely declarative, but solvers identify ever narrowing constraints on values: what's known to be true must remain true, but becomes more specific in
╰
seeking the solution.