SNAPKITTYWEST's picture
push from SNAPKITTYWEST/hyperkitty-constraint-dsl
224e773 verified
Raw History Blame Contribute Delete
5.51 kB
145
theorem system_consistency :
    ∃ (qlg : Vec3) (sla : Ledger) (qra : Glyph),
      QLG.canonical qlg ∧
      sla.balance ∧
      true := by
proof · 6 lines
  use {x:=1, y:=0, z:=0}
  use Ledger.mkBalanced 1 1 0
  use Glyph.Pi
  constructor
  · norm_num [QLG.canonical]
  · simp [Ledger.balance, Ledger.mkBalanced]; omega
163
theorem decidability_instance :
    ∀ (g1 g2 : Glyph), Decidable (g1 = g2) :=
proof · 1 line
  fun _ _ => inferInstance