interplane.Get Omega
Read in your language

interplane-forge

INTERPLANE Forge

Brought by drakestapleton

branch main Branches Tags History

interplane-forge / docs / salvage / Visibility.lean

23 lines · 912 bytes Raw Blame History
1/- The Boolean decision used by slpubgate. This is a proof of the decision predicate,
2 not a proof of the compiler, authentication, filesystem, sandbox, or whole application. -/
3def publicPart (published passingReceipt publicParent : Bool) : Bool :=
4 (published && passingReceipt) && publicParent
5
6theorem public_requires_receipt (p r a : Bool) :
7 publicPart p r a = true → r = true := by
8 cases p <;> cases r <;> cases a <;> decide
9
10theorem withdrawn_parent_hides_part (p r : Bool) :
11 publicPart p r false = false := by
12 cases p <;> cases r <;> decide
13
14theorem draft_is_not_public (r a : Bool) :
15 publicPart false r a = false := by
16 cases r <;> cases a <;> decide
17
18theorem all_requirements_suffice : publicPart true true true = true := rfl
19
20#print axioms public_requires_receipt
21#print axioms withdrawn_parent_hides_part
22#print axioms draft_is_not_public
23#print axioms all_requirements_suffice