r/functionalprogramming • u/Ok-Buddy-3338 • Jul 04 '24
Question Lean4 proving program properties
Is it possible in lean to build proof about certain property of program? Something like 'in this program that function is never called with argument longer than 20 chars'
11
Upvotes
View all comments
Show parent comment
2
u/Ok-Buddy-3338 Jul 05 '24
I think right now Dafny is more in line with what I'm looking for but what I've heard it struggles with proofs for more complex pieces and works best for small simple functions. Haven't tried myself though.