aboutsummaryrefslogtreecommitdiff
path: root/rego-proofs/examples/04-rule-free-variables.prune.lean
blob: dd406a1a730b4cccd577429d8fe902d2357e1582 (plain)
1
2
3
4
5
6
7
8
-- Lean 4's syntax makes this quite nice...

def t2 : Option Bool :=
  let x := 42
  let y := 41
  if x > y then some true else none

-- Lift any local assignments and compile the rest to an ITE?

© 2015 - 2026 Jakob L. Kreuze