├── test ├── natural │ ├── empty.art │ ├── example1.art │ ├── example11.art │ ├── example3.art │ ├── example10.art │ ├── example5.art │ └── example4.art ├── repos │ └── .gitignore ├── .gitignore ├── theories │ ├── empty │ │ └── empty.thy │ ├── bool-true-def │ │ └── bool-true-def.thy │ ├── bool-and-def │ │ └── bool-and-def.thy │ ├── bool-true-assert │ │ └── bool-true-assert.thy │ ├── bool-forall-def │ │ └── bool-forall-def.thy │ ├── bool-implies-def │ │ └── bool-implies-def.thy │ ├── bool-true-thm │ │ └── bool-true-thm.thy │ ├── bool-forall-thm │ │ └── bool-forall-thm.thy │ ├── bool-and-thm │ │ └── bool-and-thm.thy │ ├── bool-and-thm-1.1 │ │ └── bool-and-thm.thy │ ├── bool-implies-thm │ │ └── bool-implies-thm.thy │ ├── bool-true │ │ └── bool-true.thy │ ├── bool-implies-thm-1.1 │ │ └── bool-implies-thm.thy │ ├── bool-forall │ │ └── bool-forall.thy │ ├── bool-and │ │ └── bool-and.thy │ ├── bool-and-1.1 │ │ └── bool-and.thy │ ├── bool-true-axiom │ │ └── bool-true-axiom.thy │ ├── bool-implies │ │ └── bool-implies.thy │ └── bool-implies-1.1 │ │ └── bool-implies.thy ├── articles │ └── .gitignore ├── summaries │ └── .gitignore └── interpretations │ └── hol-light.int ├── data ├── haskell │ ├── .gitignore │ ├── api-opentheory-unicode │ │ ├── test │ │ │ ├── valid │ │ │ │ ├── test061.txt │ │ │ │ ├── test062.txt │ │ │ │ ├── test063.txt │ │ │ │ ├── test064.txt │ │ │ │ ├── test065.txt │ │ │ │ ├── test066.txt │ │ │ │ ├── test067.txt │ │ │ │ ├── test068.txt │ │ │ │ ├── test069.txt │ │ │ │ ├── test070.txt │ │ │ │ ├── test071.txt │ │ │ │ ├── test072.txt │ │ │ │ ├── test073.txt │ │ │ │ ├── test074.txt │ │ │ │ ├── test077.txt │ │ │ │ ├── test078.txt │ │ │ │ ├── test079.txt │ │ │ │ ├── test080.txt │ │ │ │ ├── test081.txt │ │ │ │ ├── test086.txt │ │ │ │ ├── test087.txt │ │ │ │ ├── test088.txt │ │ │ │ ├── test089.txt │ │ │ │ ├── test090.txt │ │ │ │ ├── test091.txt │ │ │ │ ├── test094.txt │ │ │ │ ├── test095.txt │ │ │ │ ├── test096.txt │ │ │ │ ├── test097.txt │ │ │ │ ├── test098.txt │ │ │ │ ├── test099.txt │ │ │ │ ├── test100.txt │ │ │ │ ├── test101.txt │ │ │ │ ├── test104.txt │ │ │ │ ├── test111.txt │ │ │ │ ├── test112.txt │ │ │ │ ├── test113.txt │ │ │ │ ├── test118.txt │ │ │ │ ├── test119.txt │ │ │ │ ├── test120.txt │ │ │ │ ├── test121.txt │ │ │ │ ├── test122.txt │ │ │ │ ├── test123.txt │ │ │ │ ├── test126.txt │ │ │ │ ├── test127.txt │ │ │ │ ├── test128.txt │ │ │ │ ├── test129.txt │ │ │ │ ├── test131.txt │ │ │ │ ├── test132.txt │ │ │ │ ├── test133.txt │ │ │ │ ├── test134.txt │ │ │ │ ├── test136.txt │ │ │ │ ├── test137.txt │ │ │ │ ├── test138.txt │ │ │ │ ├── test139.txt │ │ │ │ ├── test141.txt │ │ │ │ ├── test142.txt │ │ │ │ ├── test143.txt │ │ │ │ ├── test144.txt │ │ │ │ ├── test146.txt │ │ │ │ ├── test147.txt │ │ │ │ ├── test148.txt │ │ │ │ ├── test149.txt │ │ │ │ ├── test150.txt │ │ │ │ ├── test151.txt │ │ │ │ ├── test152.txt │ │ │ │ ├── test163.txt │ │ │ │ ├── test164.txt │ │ │ │ ├── test165.txt │ │ │ │ ├── test166.txt │ │ │ │ ├── test167.txt │ │ │ │ ├── test168.txt │ │ │ │ ├── test170.txt │ │ │ │ ├── test171.txt │ │ │ │ ├── test172.txt │ │ │ │ ├── test173.txt │ │ │ │ ├── test174.txt │ │ │ │ ├── test178.txt │ │ │ │ ├── test179.txt │ │ │ │ ├── test180.txt │ │ │ │ ├── test181.txt │ │ │ │ ├── test182.txt │ │ │ │ ├── test183.txt │ │ │ │ ├── test184.txt │ │ │ │ ├── test185.txt │ │ │ │ ├── test186.txt │ │ │ │ ├── test187.txt │ │ │ │ ├── test188.txt │ │ │ │ ├── test189.txt │ │ │ │ ├── test190.txt │ │ │ │ ├── test191.txt │ │ │ │ ├── test192.txt │ │ │ │ ├── test193.txt │ │ │ │ ├── test194.txt │ │ │ │ ├── test195.txt │ │ │ │ ├── test196.txt │ │ │ │ ├── test197.txt │ │ │ │ ├── test198.txt │ │ │ │ ├── test199.txt │ │ │ │ ├── test200.txt │ │ │ │ ├── test201.txt │ │ │ │ ├── test202.txt │ │ │ │ ├── test203.txt │ │ │ │ ├── test204.txt │ │ │ │ ├── test205.txt │ │ │ │ ├── test206.txt │ │ │ │ ├── test212.txt │ │ │ │ ├── test213.txt │ │ │ │ ├── test214.txt │ │ │ │ ├── test215.txt │ │ │ │ ├── test216.txt │ │ │ │ ├── test217.txt │ │ │ │ ├── test218.txt │ │ │ │ ├── test219.txt │ │ │ │ ├── test225.txt │ │ │ │ ├── test226.txt │ │ │ │ ├── test227.txt │ │ │ │ ├── test228.txt │ │ │ │ ├── test229.txt │ │ │ │ ├── test230.txt │ │ │ │ ├── test231.txt │ │ │ │ ├── test237.txt │ │ │ │ ├── test238.txt │ │ │ │ ├── test239.txt │ │ │ │ ├── test240.txt │ │ │ │ ├── test241.txt │ │ │ │ ├── test242.txt │ │ │ │ ├── test243.txt │ │ │ │ ├── test244.txt │ │ │ │ ├── test245.txt │ │ │ │ ├── test246.txt │ │ │ │ ├── test254.txt │ │ │ │ ├── test255.txt │ │ │ │ ├── test256.txt │ │ │ │ ├── test265.txt │ │ │ │ ├── test266.txt │ │ │ │ ├── test267.txt │ │ │ │ ├── test270.txt │ │ │ │ └── test271.txt │ │ │ ├── invalid │ │ │ │ ├── test082.txt │ │ │ │ ├── test092.txt │ │ │ │ ├── test268.txt │ │ │ │ ├── test269.txt │ │ │ │ ├── test075.txt │ │ │ │ ├── test076.txt │ │ │ │ ├── test083.txt │ │ │ │ ├── test084.txt │ │ │ │ ├── test085.txt │ │ │ │ ├── test093.txt │ │ │ │ ├── test102.txt │ │ │ │ ├── test103.txt │ │ │ │ ├── test105.txt │ │ │ │ ├── test106.txt │ │ │ │ ├── test107.txt │ │ │ │ ├── test108.txt │ │ │ │ ├── test109.txt │ │ │ │ ├── test110.txt │ │ │ │ ├── test114.txt │ │ │ │ ├── test115.txt │ │ │ │ ├── test116.txt │ │ │ │ ├── test117.txt │ │ │ │ ├── test124.txt │ │ │ │ ├── test125.txt │ │ │ │ ├── test130.txt │ │ │ │ ├── test135.txt │ │ │ │ ├── test140.txt │ │ │ │ ├── test145.txt │ │ │ │ ├── test153.txt │ │ │ │ ├── test154.txt │ │ │ │ ├── test155.txt │ │ │ │ ├── test156.txt │ │ │ │ ├── test157.txt │ │ │ │ ├── test158.txt │ │ │ │ ├── test159.txt │ │ │ │ ├── test160.txt │ │ │ │ ├── test161.txt │ │ │ │ ├── test162.txt │ │ │ │ ├── test169.txt │ │ │ │ ├── test175.txt │ │ │ │ ├── test176.txt │ │ │ │ ├── test177.txt │ │ │ │ ├── test207.txt │ │ │ │ ├── test208.txt │ │ │ │ ├── test209.txt │ │ │ │ ├── test210.txt │ │ │ │ ├── test211.txt │ │ │ │ ├── test220.txt │ │ │ │ ├── test221.txt │ │ │ │ ├── test222.txt │ │ │ │ ├── test223.txt │ │ │ │ ├── test224.txt │ │ │ │ ├── test232.txt │ │ │ │ ├── test233.txt │ │ │ │ ├── test234.txt │ │ │ │ ├── test235.txt │ │ │ │ ├── test236.txt │ │ │ │ ├── test247.txt │ │ │ │ ├── test248.txt │ │ │ │ ├── test249.txt │ │ │ │ ├── test250.txt │ │ │ │ ├── test251.txt │ │ │ │ ├── test252.txt │ │ │ │ ├── test253.txt │ │ │ │ ├── test257.txt │ │ │ │ ├── test258.txt │ │ │ │ ├── test259.txt │ │ │ │ ├── test260.txt │ │ │ │ ├── test261.txt │ │ │ │ ├── test262.txt │ │ │ │ ├── test263.txt │ │ │ │ └── test264.txt │ │ │ └── test.txt │ │ └── Setup.hs │ ├── fen2s │ │ └── Setup.hs │ ├── decode-utf8 │ │ └── Setup.hs │ ├── nth-prime │ │ └── Setup.hs │ ├── opentheory │ │ ├── Setup.hs │ │ └── src │ │ │ └── OpenTheory │ │ │ ├── List.hs │ │ │ └── Natural.hs │ ├── opentheory-bits │ │ └── Setup.hs │ ├── opentheory-byte │ │ └── Setup.hs │ ├── opentheory-divides │ │ └── Setup.hs │ ├── opentheory-parser │ │ └── Setup.hs │ ├── opentheory-prime │ │ ├── Setup.hs │ │ └── src │ │ │ └── OpenTheory │ │ │ └── Natural │ │ │ └── Prime.hs │ ├── opentheory-stream │ │ └── Setup.hs │ ├── opentheory-unicode │ │ └── Setup.hs │ ├── opentheory-fibonacci │ │ └── Setup.hs │ ├── opentheory-primitive │ │ └── Setup.hs │ └── opentheory-probability │ │ └── Setup.hs ├── verilog │ └── .gitignore └── theories │ ├── empty │ ├── empty.art │ └── empty.thy │ ├── monoid-comm │ └── hol-light.int │ ├── bool-def │ └── bool-def.thy │ ├── function-def │ └── function-def.thy │ ├── axiom-choice │ └── axiom-choice.thy │ ├── bool-int │ └── bool-int.thy │ ├── pair-def │ └── pair-def.thy │ ├── unit-def │ └── unit-def.thy │ ├── axiom-extensionality │ └── axiom-extensionality.thy │ ├── natural-numeral-def │ └── natural-numeral-def.thy │ ├── unit-thm │ └── unit-thm.thy │ ├── word-witness │ ├── word-witness.thy │ └── word-witness.art │ ├── axiom-infinity │ └── axiom-infinity.thy │ ├── monoid-thm │ └── monoid-thm.thy │ ├── natural-dest │ └── natural-dest.thy │ ├── set-def │ └── set-def.thy │ ├── group-def │ └── group-def.thy │ ├── montgomery-def │ └── montgomery-def.thy │ ├── natural-numeral │ └── natural-numeral.thy │ ├── bool-ext │ └── bool-ext.thy │ ├── set-finite-def │ └── set-finite-def.thy │ ├── list-def │ └── list-def.thy │ ├── list-map-def │ └── list-map-def.thy │ ├── map-reduce-bit3x3-sat │ └── map-reduce-bit3x3-sat.thy │ ├── natural-thm │ └── natural-thm.thy │ ├── pair-thm │ └── pair-thm.thy │ ├── unit │ └── unit.thy │ ├── group-thm │ └── group-thm.thy │ ├── list-dest-def │ └── list-dest-def.thy │ ├── list-append-def │ └── list-append-def.thy │ ├── option-map-def │ └── option-map-def.thy │ ├── group-abelian │ └── group-abelian.thy │ ├── list-filter-def │ └── list-filter-def.thy │ ├── option-def │ └── option-def.thy │ ├── option-dest-def │ └── option-dest-def.thy │ ├── sum-thm │ └── sum-thm.thy │ ├── function-thm │ └── function-thm.thy │ ├── monoid-witness │ └── monoid-witness.thy │ ├── real-thm │ └── real-thm.thy │ ├── list-nub-def │ └── list-nub-def.thy │ ├── modular-thm │ └── modular-thm.thy │ ├── natural-add-def │ └── natural-add-def.thy │ ├── natural-divides-def │ └── natural-divides-def.thy │ ├── pair │ └── pair.thy │ ├── list-last-def │ └── list-last-def.thy │ ├── modular-witness │ └── modular-witness.thy │ ├── natural-dest-def │ └── natural-dest-def.thy │ ├── natural-prime-def │ └── natural-prime-def.thy │ ├── relation-def │ └── relation-def.thy │ ├── relation-well-founded-def │ └── relation-well-founded-def.thy │ ├── natural-order-def │ └── natural-order-def.thy │ ├── function │ └── function.thy │ ├── monoid-comm-witness │ └── monoid-comm-witness.thy │ ├── option-thm │ └── option-thm.thy │ ├── sum-def │ └── sum-def.thy │ ├── char-def │ └── char-def.thy │ ├── gfp-witness │ └── gfp-witness.thy │ ├── natural-fibonacci-exists │ └── natural-fibonacci-exists.thy │ ├── option-dest-thm │ └── option-dest-thm.thy │ ├── bool-class │ └── bool-class.thy │ ├── hardware-wire-def │ └── hardware-wire-def.thy │ ├── list-reverse-def │ └── list-reverse-def.thy │ ├── map-reduce-bit3x3-def │ └── map-reduce-bit3x3-def.thy │ ├── monoid-comm-thm │ └── monoid-comm-thm.thy │ ├── monoid-mult-def │ └── monoid-mult-def.thy │ ├── natural-def │ └── natural-def.thy │ ├── set-size-def │ └── set-size-def.thy │ ├── byte-bits │ └── byte-bits.thy │ ├── hardware-adder-def │ └── hardware-adder-def.thy │ ├── group-witness │ └── group-witness.thy │ ├── list-dest-thm │ └── list-dest-thm.thy │ ├── monoid-comm-mult-def │ └── monoid-comm-mult-def.thy │ ├── natural-divides-thm │ └── natural-divides-thm.thy │ ├── natural-exp-def │ └── natural-exp-def.thy │ ├── natural-mult-def │ └── natural-mult-def.thy │ ├── natural-prime-thm │ └── natural-prime-thm.thy │ ├── set-fold-thm │ └── set-fold-thm.thy │ ├── gfp-div-exp-def │ └── gfp-div-exp-def.thy │ ├── group-mult-def │ └── group-mult-def.thy │ ├── hardware-def │ └── hardware-def.thy │ ├── natural-order-thm │ └── natural-order-thm.thy │ ├── parser-stream-def │ └── parser-stream-def.thy │ ├── stream-def │ └── stream-def.thy │ ├── gfp-div-thm │ └── gfp-div-thm.thy │ ├── hardware-bus-def │ └── hardware-bus-def.thy │ ├── list-length-def │ └── list-length-def.thy │ ├── list-thm │ └── list-thm.thy │ ├── natural-funpow-def │ └── natural-funpow-def.thy │ ├── relation-natural-def │ └── relation-natural-def.thy │ ├── list-interval-def │ └── list-interval-def.thy │ ├── natural-distance-def │ └── natural-distance-def.thy │ ├── natural-factorial-def │ └── natural-factorial-def.thy │ ├── relation-thm │ └── relation-thm.thy │ ├── list-dest │ └── list-dest.thy │ ├── list-fold-def │ └── list-fold-def.thy │ ├── list-nth-def │ └── list-nth-def.thy │ ├── monoid-comm-mult-thm │ └── monoid-comm-mult-thm.thy │ ├── monoid-mult-add-def │ └── monoid-mult-add-def.thy │ ├── montgomery-hardware-def │ └── montgomery-hardware-def.thy │ ├── montgomery-thm │ └── montgomery-thm.thy │ ├── set-fold-def │ └── set-fold-def.thy │ ├── sum │ └── sum.thy │ ├── word10-bits │ └── word10-bits.thy │ ├── word12-bits │ └── word12-bits.thy │ ├── word16-bits │ └── word16-bits.thy │ ├── list-replicate-def │ └── list-replicate-def.thy │ ├── natural-order-min-max-def │ └── natural-order-min-max-def.thy │ ├── option-map-thm │ └── option-map-thm.thy │ ├── gfp-thm │ └── gfp-thm.thy │ ├── monoid-comm-mult-add │ └── monoid-comm-mult-add.thy │ ├── char-thm │ └── char-thm.thy │ ├── group-mult-add-def │ └── group-mult-add-def.thy │ ├── list-set-def │ └── list-set-def.thy │ ├── option-dest │ └── option-dest.thy │ ├── set-thm │ └── set-thm.thy │ ├── gfp-div-gcd-def │ └── gfp-div-gcd-def.thy │ ├── monoid-mult-thm │ └── monoid-mult-thm.thy │ ├── probability-def │ └── probability-def.thy │ ├── stream-thm │ └── stream-thm.thy │ ├── gfp-div-def │ └── gfp-div-def.thy │ ├── group-crypt-def │ └── group-crypt-def.thy │ ├── list-take-drop-def │ └── list-take-drop-def.thy │ ├── natural-div-def │ └── natural-div-def.thy │ ├── parser-all-def │ └── parser-all-def.thy │ ├── natural-add-thm │ └── natural-add-thm.thy │ ├── natural-bits-def │ └── natural-bits-def.thy │ ├── parser-comb-def │ └── parser-comb-def.thy │ ├── word-bits-def │ └── word-bits-def.thy │ ├── group-mult-sub-def │ └── group-mult-sub-def.thy │ ├── group-mult-thm │ └── group-mult-thm.thy │ ├── hardware-counter-def │ └── hardware-counter-def.thy │ ├── map-reduce-bit3x3-thm │ └── map-reduce-bit3x3-thm.thy │ ├── word16-bytes-def │ └── word16-bytes-def.thy │ ├── hardware-thm │ └── hardware-thm.thy │ ├── natural-add-sub-def │ └── natural-add-sub-def.thy │ ├── natural-exp-log-def │ └── natural-exp-log-def.thy │ ├── hardware-wire-thm │ └── hardware-wire-thm.thy │ ├── set-fold │ └── set-fold.thy │ ├── axiom │ └── axiom.thy │ ├── hardware-multiplier-def │ └── hardware-multiplier-def.thy │ ├── list-last-thm │ └── list-last-thm.thy │ ├── natural-divides-lcm-def │ └── natural-divides-lcm-def.thy │ ├── option-map │ └── option-map.thy │ ├── parser-stream-thm │ └── parser-stream-thm.thy │ ├── list-zip-def │ └── list-zip-def.thy │ ├── natural-prime-stream-def │ └── natural-prime-stream-def.thy │ ├── parser-comb-thm │ └── parser-comb-thm.thy │ ├── word-bits-thm │ └── word-bits-thm.thy │ ├── list-length-thm │ └── list-length-thm.thy │ ├── modular-def │ └── modular-def.thy │ ├── natural-prime-sieve-def │ └── natural-prime-sieve-def.thy │ ├── real-def │ └── real-def.thy │ ├── hardware-bus-thm │ └── hardware-bus-thm.thy │ ├── hardware-wire │ └── hardware-wire.thy │ ├── list-interval-thm │ └── list-interval-thm.thy │ ├── natural-divides-gcd-def │ └── natural-divides-gcd-def.thy │ ├── natural-mult-thm │ └── natural-mult-thm.thy │ ├── natural-order-min-max-thm │ └── natural-order-min-max-thm.thy │ ├── parser-fold-def │ └── parser-fold-def.thy │ ├── list-last │ └── list-last.thy │ ├── parser-fold-thm │ └── parser-fold-thm.thy │ ├── probability-thm │ └── probability-thm.thy │ ├── hardware-adder-thm │ └── hardware-adder-thm.thy │ ├── list-length │ └── list-length.thy │ ├── list-set-thm │ └── list-set-thm.thy │ ├── natural-bits-thm │ └── natural-bits-thm.thy │ ├── parser-comb │ └── parser-comb.thy │ ├── parser-stream │ └── parser-stream.thy │ ├── relation-well-founded-thm │ └── relation-well-founded-thm.thy │ ├── word-bits │ └── word-bits.thy │ ├── hardware-bus │ └── hardware-bus.thy │ ├── monoid │ ├── monoid.thy │ └── hol-light.int │ ├── natural-divides-lcm-thm │ └── natural-divides-lcm-thm.thy │ ├── natural-order-min-max │ └── natural-order-min-max.thy │ ├── real │ └── real.thy │ ├── list-interval │ └── list-interval.thy │ ├── natural-funpow-thm │ └── natural-funpow-thm.thy │ ├── set-finite-thm │ └── set-finite-thm.thy │ ├── group-crypt-thm │ └── group-crypt-thm.thy │ ├── list-nub-thm │ └── list-nub-thm.thy │ ├── list-set │ └── list-set.thy │ ├── natural-divides-gcd-thm │ └── natural-divides-gcd-thm.thy │ ├── relation-well-founded │ └── relation-well-founded.thy │ ├── set-size-thm │ └── set-size-thm.thy │ ├── natural-add-sub-thm │ └── natural-add-sub-thm.thy │ ├── natural-distance-thm │ └── natural-distance-thm.thy │ ├── natural-div-thm │ └── natural-div-thm.thy │ ├── parser-all-thm │ └── parser-all-thm.thy │ ├── hardware-adder │ └── hardware-adder.thy │ ├── natural-factorial-thm │ └── natural-factorial-thm.thy │ ├── natural-mult │ └── natural-mult.thy │ ├── natural-divides-lcm │ └── natural-divides-lcm.thy │ ├── natural-divides │ ├── hol-light.int │ └── haskell.int │ ├── set-finite │ └── set-finite.thy │ ├── h-thm │ └── h-thm.thy │ ├── list-fold-thm │ └── list-fold-thm.thy │ ├── parser-fold │ └── parser-fold.thy │ ├── set-size │ └── set-size.thy │ ├── group-crypt │ └── group-crypt.thy │ ├── list-nub │ └── list-nub.thy │ ├── montgomery-hardware-thm │ └── montgomery-hardware-thm.thy │ ├── natural-distance │ └── natural-distance.thy │ ├── natural-divides-gcd │ └── natural-divides-gcd.thy │ ├── natural-div │ └── natural-div.thy │ ├── natural-prime-stream-thm │ └── natural-prime-stream-thm.thy │ ├── parser-all │ └── parser-all.thy │ ├── list-append-thm │ └── list-append-thm.thy │ ├── h-def │ └── h-def.thy │ ├── natural-exp-thm │ └── natural-exp-thm.thy │ └── list-fold │ └── list-fold.thy ├── doc ├── .gitignore ├── logo.png ├── favicon.ico └── logo │ └── logo.png ├── repo ├── .gitignore ├── robots.txt ├── favicon.ico ├── google52d37dbb0c7e0950.html ├── images │ ├── logo.png │ ├── valid.png │ ├── favicon.png │ ├── katoomba.jpg │ ├── cedar-point.jpg │ ├── sunset-tree.jpg │ ├── the-castle.jpg │ ├── frozen-forest.jpg │ ├── silver-falls.jpg │ ├── flooded-fenland.jpg │ ├── easter-island-head.jpg │ ├── elephant-and-castle.jpg │ └── index.html ├── logout │ └── index.php ├── php │ └── index.html └── opentheory.js ├── src ├── .gitignore ├── Random.sig └── Lazy.sig ├── .gitignore ├── bin ├── polyml │ └── .gitignore ├── mosml │ └── .gitignore └── mlton │ └── .gitignore └── release └── .gitignore /test/natural/empty.art: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/haskell/.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | -------------------------------------------------------------------------------- /doc/.gitignore: -------------------------------------------------------------------------------- 1 | MIT-LICENSE 2 | -------------------------------------------------------------------------------- /repo/.gitignore: -------------------------------------------------------------------------------- 1 | packages.tgz 2 | -------------------------------------------------------------------------------- /data/verilog/.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *.out 3 | -------------------------------------------------------------------------------- /data/theories/empty/empty.art: -------------------------------------------------------------------------------- 1 | 6 2 | version 3 | -------------------------------------------------------------------------------- /repo/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | benchmark.sml 2 | selftest.sml 3 | -------------------------------------------------------------------------------- /test/repos/.gitignore: -------------------------------------------------------------------------------- 1 | repo 2 | test 3 | upstream 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /benchmark.out 2 | /mlmon.out 3 | /profile-* 4 | -------------------------------------------------------------------------------- /test/.gitignore: -------------------------------------------------------------------------------- 1 | mlton-result 2 | mosml-result 3 | polyml-result 4 | -------------------------------------------------------------------------------- /bin/polyml/.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | *.sml 3 | opentheory 4 | selftest 5 | -------------------------------------------------------------------------------- /doc/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/doc/logo.png -------------------------------------------------------------------------------- /doc/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/doc/favicon.ico -------------------------------------------------------------------------------- /doc/logo/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/doc/logo/logo.png -------------------------------------------------------------------------------- /repo/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/repo/favicon.ico -------------------------------------------------------------------------------- /repo/google52d37dbb0c7e0950.html: -------------------------------------------------------------------------------- 1 | google-site-verification: google52d37dbb0c7e0950.html -------------------------------------------------------------------------------- /bin/mosml/.gitignore: -------------------------------------------------------------------------------- 1 | *.sml 2 | *.ui 3 | *.uo 4 | a.out 5 | Makefile.src 6 | opentheory 7 | -------------------------------------------------------------------------------- /repo/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/repo/images/logo.png -------------------------------------------------------------------------------- /repo/images/valid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/repo/images/valid.png -------------------------------------------------------------------------------- /bin/mlton/.gitignore: -------------------------------------------------------------------------------- 1 | *.mlb 2 | *.sml 3 | *.ssa 4 | *.ssa2 5 | benchmark 6 | opentheory 7 | selftest 8 | -------------------------------------------------------------------------------- /release/.gitignore: -------------------------------------------------------------------------------- 1 | *.html 2 | *.png 3 | *.txt 4 | MIT-LICENSE 5 | favicon.ico 6 | opentheory.tar.gz 7 | -------------------------------------------------------------------------------- /repo/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/repo/images/favicon.png -------------------------------------------------------------------------------- /repo/images/katoomba.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/repo/images/katoomba.jpg -------------------------------------------------------------------------------- /repo/images/cedar-point.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/repo/images/cedar-point.jpg -------------------------------------------------------------------------------- /repo/images/sunset-tree.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/repo/images/sunset-tree.jpg -------------------------------------------------------------------------------- /repo/images/the-castle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/repo/images/the-castle.jpg -------------------------------------------------------------------------------- /repo/images/frozen-forest.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/repo/images/frozen-forest.jpg -------------------------------------------------------------------------------- /repo/images/silver-falls.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/repo/images/silver-falls.jpg -------------------------------------------------------------------------------- /repo/images/flooded-fenland.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/repo/images/flooded-fenland.jpg -------------------------------------------------------------------------------- /repo/images/easter-island-head.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/repo/images/easter-island-head.jpg -------------------------------------------------------------------------------- /repo/images/elephant-and-castle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/repo/images/elephant-and-castle.jpg -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test061.txt: -------------------------------------------------------------------------------- 1 | Here come the tests: | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test062.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test063.txt: -------------------------------------------------------------------------------- 1 | 1 Some correct UTF-8 text | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test064.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test065.txt: -------------------------------------------------------------------------------- 1 | You should see the Greek word 'kosme': "κόσμε" | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test066.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test067.txt: -------------------------------------------------------------------------------- 1 | 2 Boundary condition test cases | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test068.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test069.txt: -------------------------------------------------------------------------------- 1 | 2.1 First possible sequence of a certain length | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test070.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test071.txt: -------------------------------------------------------------------------------- 1 | 2.1.1 1 byte (U-00000000): "" -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test072.txt: -------------------------------------------------------------------------------- 1 | 2.1.2 2 bytes (U-00000080): "€" | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test073.txt: -------------------------------------------------------------------------------- 1 | 2.1.3 3 bytes (U-00000800): "ࠀ" | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test074.txt: -------------------------------------------------------------------------------- 1 | 2.1.4 4 bytes (U-00010000): "𐀀" | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test077.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test078.txt: -------------------------------------------------------------------------------- 1 | 2.2 Last possible sequence of a certain length | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test079.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test080.txt: -------------------------------------------------------------------------------- 1 | 2.2.1 1 byte (U-0000007F): "" -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test081.txt: -------------------------------------------------------------------------------- 1 | 2.2.2 2 bytes (U-000007FF): "߿" | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test086.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test087.txt: -------------------------------------------------------------------------------- 1 | 2.3 Other boundary conditions | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test088.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test089.txt: -------------------------------------------------------------------------------- 1 | 2.3.1 U-0000D7FF = ed 9f bf = "퟿" | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test090.txt: -------------------------------------------------------------------------------- 1 | 2.3.2 U-0000E000 = ee 80 80 = "" | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test091.txt: -------------------------------------------------------------------------------- 1 | 2.3.3 U-0000FFFD = ef bf bd = "�" | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test094.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test095.txt: -------------------------------------------------------------------------------- 1 | 3 Malformed sequences | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test096.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test097.txt: -------------------------------------------------------------------------------- 1 | 3.1 Unexpected continuation bytes | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test098.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test099.txt: -------------------------------------------------------------------------------- 1 | Each unexpected continuation byte should be separately signalled as a | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test100.txt: -------------------------------------------------------------------------------- 1 | malformed sequence of its own. | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test101.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test104.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test111.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test112.txt: -------------------------------------------------------------------------------- 1 | 3.1.9 Sequence of all 64 possible continuation bytes (0x80-0xbf): | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test113.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test118.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test119.txt: -------------------------------------------------------------------------------- 1 | 3.2 Lonely start characters | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test120.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test121.txt: -------------------------------------------------------------------------------- 1 | 3.2.1 All 32 first bytes of 2-byte sequences (0xc0-0xdf), | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test122.txt: -------------------------------------------------------------------------------- 1 | each followed by a space character: | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test123.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test126.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test127.txt: -------------------------------------------------------------------------------- 1 | 3.2.2 All 16 first bytes of 3-byte sequences (0xe0-0xef), | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test128.txt: -------------------------------------------------------------------------------- 1 | each followed by a space character: | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test129.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test131.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test132.txt: -------------------------------------------------------------------------------- 1 | 3.2.3 All 8 first bytes of 4-byte sequences (0xf0-0xf7), | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test133.txt: -------------------------------------------------------------------------------- 1 | each followed by a space character: | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test134.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test136.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test137.txt: -------------------------------------------------------------------------------- 1 | 3.2.4 All 4 first bytes of 5-byte sequences (0xf8-0xfb), | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test138.txt: -------------------------------------------------------------------------------- 1 | each followed by a space character: | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test139.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test141.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test142.txt: -------------------------------------------------------------------------------- 1 | 3.2.5 All 2 first bytes of 6-byte sequences (0xfc-0xfd), | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test143.txt: -------------------------------------------------------------------------------- 1 | each followed by a space character: | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test144.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test146.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test147.txt: -------------------------------------------------------------------------------- 1 | 3.3 Sequences with last continuation byte missing | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test148.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test149.txt: -------------------------------------------------------------------------------- 1 | All bytes of an incomplete sequence should be signalled as a single | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test150.txt: -------------------------------------------------------------------------------- 1 | malformed sequence, i.e., you should see only a single replacement | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test151.txt: -------------------------------------------------------------------------------- 1 | character in each of the next 10 tests. (Characters as in section 2) | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test152.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test163.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test164.txt: -------------------------------------------------------------------------------- 1 | 3.4 Concatenation of incomplete sequences | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test165.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test166.txt: -------------------------------------------------------------------------------- 1 | All the 10 sequences of 3.3 concatenated, you should see 10 malformed | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test167.txt: -------------------------------------------------------------------------------- 1 | sequences being signalled: | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test168.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test170.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test171.txt: -------------------------------------------------------------------------------- 1 | 3.5 Impossible bytes | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test172.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test173.txt: -------------------------------------------------------------------------------- 1 | The following two bytes cannot appear in a correct UTF-8 string | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test174.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test178.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test179.txt: -------------------------------------------------------------------------------- 1 | 4 Overlong sequences | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test180.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test181.txt: -------------------------------------------------------------------------------- 1 | The following sequences are not malformed according to the letter of | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test182.txt: -------------------------------------------------------------------------------- 1 | the Unicode 2.0 standard. However, they are longer then necessary and | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test183.txt: -------------------------------------------------------------------------------- 1 | a correct UTF-8 encoder is not allowed to produce them. A "safe UTF-8 | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test184.txt: -------------------------------------------------------------------------------- 1 | decoder" should reject them just like malformed sequences for two | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test185.txt: -------------------------------------------------------------------------------- 1 | reasons: (1) It helps to debug applications if overlong sequences are | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test186.txt: -------------------------------------------------------------------------------- 1 | not treated as valid representations of characters, because this helps | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test187.txt: -------------------------------------------------------------------------------- 1 | to spot problems more quickly. (2) Overlong sequences provide | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test188.txt: -------------------------------------------------------------------------------- 1 | alternative representations of characters, that could maliciously be | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test189.txt: -------------------------------------------------------------------------------- 1 | used to bypass filters that check only for ASCII characters. For | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test190.txt: -------------------------------------------------------------------------------- 1 | instance, a 2-byte encoded line feed (LF) would not be caught by a | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test191.txt: -------------------------------------------------------------------------------- 1 | line counter that counts only 0x0a bytes, but it would still be | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test192.txt: -------------------------------------------------------------------------------- 1 | processed as a line feed by an unsafe UTF-8 decoder later in the | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test193.txt: -------------------------------------------------------------------------------- 1 | pipeline. From a security point of view, ASCII compatibility of UTF-8 | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test194.txt: -------------------------------------------------------------------------------- 1 | sequences means also, that ASCII characters are *only* allowed to be | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test195.txt: -------------------------------------------------------------------------------- 1 | represented by ASCII bytes in the range 0x00-0x7f. To ensure this | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test196.txt: -------------------------------------------------------------------------------- 1 | aspect of ASCII compatibility, use only "safe UTF-8 decoders" that | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test197.txt: -------------------------------------------------------------------------------- 1 | reject overlong UTF-8 sequences for which a shorter encoding exists. | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test198.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test199.txt: -------------------------------------------------------------------------------- 1 | 4.1 Examples of an overlong ASCII character | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test200.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test201.txt: -------------------------------------------------------------------------------- 1 | With a safe UTF-8 decoder, all of the following five overlong | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test202.txt: -------------------------------------------------------------------------------- 1 | representations of the ASCII character slash ("/") should be rejected | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test203.txt: -------------------------------------------------------------------------------- 1 | like a malformed UTF-8 sequence, for instance by substituting it with | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test204.txt: -------------------------------------------------------------------------------- 1 | a replacement character. If you see a slash below, you do not have a | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test205.txt: -------------------------------------------------------------------------------- 1 | safe UTF-8 decoder! | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test206.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test212.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test213.txt: -------------------------------------------------------------------------------- 1 | 4.2 Maximum overlong sequences | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test214.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test215.txt: -------------------------------------------------------------------------------- 1 | Below you see the highest Unicode value that is still resulting in an | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test216.txt: -------------------------------------------------------------------------------- 1 | overlong sequence if represented with the given number of bytes. This | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test217.txt: -------------------------------------------------------------------------------- 1 | is a boundary test for safe UTF-8 decoders. All five characters should | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test218.txt: -------------------------------------------------------------------------------- 1 | be rejected like malformed UTF-8 sequences. | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test219.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test225.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test226.txt: -------------------------------------------------------------------------------- 1 | 4.3 Overlong representation of the NUL character | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test227.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test228.txt: -------------------------------------------------------------------------------- 1 | The following five sequences should also be rejected like malformed | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test229.txt: -------------------------------------------------------------------------------- 1 | UTF-8 sequences and should not be treated like the ASCII NUL | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test230.txt: -------------------------------------------------------------------------------- 1 | character. | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test231.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test237.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test238.txt: -------------------------------------------------------------------------------- 1 | 5 Illegal code positions | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test239.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test240.txt: -------------------------------------------------------------------------------- 1 | The following UTF-8 sequences should be rejected like malformed | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test241.txt: -------------------------------------------------------------------------------- 1 | sequences, because they never represent valid ISO 10646 characters and | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test242.txt: -------------------------------------------------------------------------------- 1 | a UTF-8 decoder that accepts them might introduce security problems | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test243.txt: -------------------------------------------------------------------------------- 1 | comparable to overlong UTF-8 sequences. | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test244.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test245.txt: -------------------------------------------------------------------------------- 1 | 5.1 Single UTF-16 surrogates | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test246.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test254.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test255.txt: -------------------------------------------------------------------------------- 1 | 5.2 Paired UTF-16 surrogates | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test256.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test265.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test266.txt: -------------------------------------------------------------------------------- 1 | 5.3 Other illegal code positions | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test267.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test270.txt: -------------------------------------------------------------------------------- 1 | | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/valid/test271.txt: -------------------------------------------------------------------------------- 1 | THE END | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test082.txt: -------------------------------------------------------------------------------- 1 | 2.2.3 3 bytes (U-0000FFFF): "￿" | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test092.txt: -------------------------------------------------------------------------------- 1 | 2.3.4 U-0010FFFF = f4 8f bf bf = "􏿿" | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test268.txt: -------------------------------------------------------------------------------- 1 | 5.3.1 U+FFFE = ef bf be = "￾" | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test269.txt: -------------------------------------------------------------------------------- 1 | 5.3.2 U+FFFF = ef bf bf = "￿" | -------------------------------------------------------------------------------- /data/haskell/fen2s/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /data/haskell/decode-utf8/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /data/haskell/nth-prime/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /data/haskell/opentheory/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /repo/logout/index.php: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/test.txt -------------------------------------------------------------------------------- /data/haskell/opentheory-bits/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /data/haskell/opentheory-byte/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /data/haskell/opentheory-divides/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /data/haskell/opentheory-parser/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /data/haskell/opentheory-prime/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /data/haskell/opentheory-stream/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /data/haskell/opentheory-unicode/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /data/haskell/opentheory-fibonacci/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /data/haskell/opentheory-primitive/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /data/haskell/opentheory-probability/Setup.hs: -------------------------------------------------------------------------------- 1 | module Main ( main ) where 2 | 3 | import Distribution.Simple 4 | 5 | main :: IO () 6 | main = defaultMain 7 | -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test075.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test075.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test076.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test076.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test083.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test083.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test084.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test084.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test085.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test085.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test093.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test093.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test102.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test102.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test103.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test103.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test105.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test105.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test106.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test106.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test107.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test107.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test108.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test108.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test109.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test109.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test110.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test110.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test114.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test114.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test115.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test115.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test116.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test116.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test117.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test117.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test124.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test124.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test125.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test125.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test130.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test130.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test135.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test135.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test140.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test140.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test145.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test145.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test153.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test153.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test154.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test154.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test155.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test155.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test156.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test156.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test157.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test157.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test158.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test158.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test159.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test159.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test160.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test160.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test161.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test161.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test162.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test162.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test169.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test169.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test175.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test175.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test176.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test176.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test177.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test177.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test207.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test207.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test208.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test208.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test209.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test209.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test210.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test210.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test211.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test211.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test220.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test220.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test221.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test221.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test222.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test222.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test223.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test223.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test224.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test224.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test232.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test232.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test233.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test233.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test234.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test234.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test235.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test235.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test236.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test236.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test247.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test247.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test248.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test248.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test249.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test249.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test250.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test250.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test251.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test251.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test252.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test252.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test253.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test253.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test257.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test257.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test258.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test258.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test259.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test259.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test260.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test260.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test261.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test261.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test262.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test262.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test263.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test263.txt -------------------------------------------------------------------------------- /data/haskell/api-opentheory-unicode/test/invalid/test264.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gilith/opentheory/HEAD/data/haskell/api-opentheory-unicode/test/invalid/test264.txt -------------------------------------------------------------------------------- /test/theories/empty/empty.thy: -------------------------------------------------------------------------------- 1 | name: empty 2 | version: 1.0 3 | description: The empty theory 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | 7 | main { } 8 | -------------------------------------------------------------------------------- /data/theories/empty/empty.thy: -------------------------------------------------------------------------------- 1 | name: empty 2 | version: 1.3 3 | description: The empty theory 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | 7 | main { 8 | article: "empty.art" 9 | } 10 | -------------------------------------------------------------------------------- /data/theories/monoid-comm/hol-light.int: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # INTERPRETATIONS FOR A PARAMETRIC THEORY OF COMMUTATIVE MONOIDS 3 | # Joe Leslie-Hurd 4 | ############################################################################### 5 | -------------------------------------------------------------------------------- /test/theories/bool-true-def/bool-true-def.thy: -------------------------------------------------------------------------------- 1 | name: bool-true-def 2 | version: 1.0 3 | description: Definition of the Boolean true constant 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | show: "Data.Bool" 7 | 8 | main { 9 | article: "bool-true-def.art" 10 | } 11 | -------------------------------------------------------------------------------- /test/theories/bool-and-def/bool-and-def.thy: -------------------------------------------------------------------------------- 1 | name: bool-and-def 2 | version: 1.0 3 | description: Definition of Boolean conjunction 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool-true 7 | show: "Data.Bool" 8 | 9 | main { 10 | article: "bool-and-def.art" 11 | } 12 | -------------------------------------------------------------------------------- /test/theories/bool-true-assert/bool-true-assert.thy: -------------------------------------------------------------------------------- 1 | name: bool-true-assert 2 | version: 1.0 3 | description: Assertion about the boolean true constant 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | show: "Data.Bool" 7 | 8 | main { 9 | article: "bool-true-assert.art" 10 | } 11 | -------------------------------------------------------------------------------- /data/theories/bool-def/bool-def.thy: -------------------------------------------------------------------------------- 1 | name: bool-def 2 | version: 1.11 3 | description: Boolean definitions 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | show: "Data.Bool" 8 | 9 | main { 10 | article: "bool-def.art" 11 | } 12 | -------------------------------------------------------------------------------- /test/theories/bool-forall-def/bool-forall-def.thy: -------------------------------------------------------------------------------- 1 | name: bool-forall-def 2 | version: 1.0 3 | description: Definition of the universal quantifier 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool-true 7 | show: "Data.Bool" 8 | 9 | main { 10 | article: "bool-forall-def.art" 11 | } 12 | -------------------------------------------------------------------------------- /test/theories/bool-implies-def/bool-implies-def.thy: -------------------------------------------------------------------------------- 1 | name: bool-implies-def 2 | version: 1.0 3 | description: Definition of Boolean implication 4 | author: Joe Programmer 5 | license: MIT 6 | requires: bool-and 7 | show: "Data.Bool" 8 | 9 | main { 10 | article: "bool-implies-def.art" 11 | } 12 | -------------------------------------------------------------------------------- /test/theories/bool-true-thm/bool-true-thm.thy: -------------------------------------------------------------------------------- 1 | name: bool-true-thm 2 | version: 1.0 3 | description: Properties of the Boolean true constant 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool-true-def 7 | show: "Data.Bool" 8 | 9 | main { 10 | article: "bool-true-thm.art" 11 | } 12 | -------------------------------------------------------------------------------- /data/theories/function-def/function-def.thy: -------------------------------------------------------------------------------- 1 | name: function-def 2 | version: 1.20 3 | description: Definition of function operators and combinators 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | requires: bool 7 | show: "Data.Bool" 8 | show: "Function" 9 | 10 | main { 11 | article: "function-def.art" 12 | } 13 | -------------------------------------------------------------------------------- /data/theories/axiom-choice/axiom-choice.thy: -------------------------------------------------------------------------------- 1 | name: axiom-choice 2 | version: 1.8 3 | description: Axiom of Choice 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-10-30 7 | requires: bool-def 8 | show: "Data.Bool" 9 | 10 | main { 11 | article: "axiom-choice.art" 12 | } 13 | -------------------------------------------------------------------------------- /data/theories/bool-int/bool-int.thy: -------------------------------------------------------------------------------- 1 | name: bool-int 2 | version: 1.18 3 | description: Intuitionistic boolean theorems 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2015-07-07 7 | requires: bool-def 8 | show: "Data.Bool" 9 | 10 | main { 11 | article: "bool-int.art" 12 | } 13 | -------------------------------------------------------------------------------- /test/theories/bool-forall-thm/bool-forall-thm.thy: -------------------------------------------------------------------------------- 1 | name: bool-forall-thm 2 | version: 1.0 3 | description: Properties of the universal quantifier 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool-forall-def 7 | requires: bool-true 8 | show: "Data.Bool" 9 | 10 | main { 11 | article: "bool-forall-thm.art" 12 | } 13 | -------------------------------------------------------------------------------- /test/theories/bool-and-thm/bool-and-thm.thy: -------------------------------------------------------------------------------- 1 | name: bool-and-thm 2 | version: 1.0 3 | description: Properties of Boolean conjunction 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool-and-def 7 | requires: bool-forall 8 | requires: bool-true 9 | show: "Data.Bool" 10 | 11 | main { 12 | article: "bool-and-thm.art" 13 | } 14 | -------------------------------------------------------------------------------- /data/theories/pair-def/pair-def.thy: -------------------------------------------------------------------------------- 1 | name: pair-def 2 | version: 1.24 3 | description: Definition of product types 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | show: "Data.Bool" 9 | show: "Data.Pair" 10 | 11 | main { 12 | article: "pair-def.art" 13 | } 14 | -------------------------------------------------------------------------------- /data/theories/unit-def/unit-def.thy: -------------------------------------------------------------------------------- 1 | name: unit-def 2 | version: 1.13 3 | description: Definition of the unit type 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | show: "Data.Bool" 9 | show: "Data.Unit" 10 | 11 | main { 12 | article: "unit-def.art" 13 | } 14 | -------------------------------------------------------------------------------- /test/theories/bool-and-thm-1.1/bool-and-thm.thy: -------------------------------------------------------------------------------- 1 | name: bool-and-thm 2 | version: 1.1 3 | description: Properties of Boolean conjunction 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool-and-def 7 | requires: bool-forall 8 | requires: bool-true 9 | show: "Data.Bool" 10 | 11 | main { 12 | article: "bool-and-thm.art" 13 | } 14 | -------------------------------------------------------------------------------- /data/theories/axiom-extensionality/axiom-extensionality.thy: -------------------------------------------------------------------------------- 1 | name: axiom-extensionality 2 | version: 1.9 3 | description: Axiom of Extensionality 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-10-30 7 | requires: bool-def 8 | show: "Data.Bool" 9 | 10 | main { 11 | article: "axiom-extensionality.art" 12 | } 13 | -------------------------------------------------------------------------------- /data/theories/natural-numeral-def/natural-numeral-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-numeral-def 2 | version: 1.8 3 | description: Definition of natural number numerals 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: natural-thm 8 | show: "Data.Bool" 9 | show: "Number.Natural" 10 | 11 | main { 12 | article: "natural-numeral-def.art" 13 | } 14 | -------------------------------------------------------------------------------- /data/theories/unit-thm/unit-thm.thy: -------------------------------------------------------------------------------- 1 | name: unit-thm 2 | version: 1.17 3 | description: Properties of the unit type 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory exported on 2018-11-26 7 | requires: bool 8 | requires: unit-def 9 | show: "Data.Bool" 10 | show: "Data.Unit" 11 | 12 | main { 13 | article: "unit-thm.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/word-witness/word-witness.thy: -------------------------------------------------------------------------------- 1 | name: word-witness 2 | version: 1.2 3 | description: Parametric theory witness for words 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2012-09-11 7 | requires: base 8 | show: "Data.Word" 9 | show: "Number.Natural" 10 | 11 | main { 12 | article: "word-witness.art" 13 | } 14 | -------------------------------------------------------------------------------- /test/natural/example1.art: -------------------------------------------------------------------------------- 1 | # Tiny example to illustrate the 2 | # article syntax - JLH 3 | # 4 | # Construct the hypothesis list 5 | nil 6 | # Construct the conclusion term 7 | "T" 8 | const 9 | "bool" 10 | typeOp 11 | nil 12 | opType 13 | constTerm 14 | 1 15 | def 16 | # Import an assumption: |- T 17 | axiom 18 | # Export a theorem: |- T 19 | nil 20 | 1 21 | remove 22 | thm 23 | -------------------------------------------------------------------------------- /data/theories/axiom-infinity/axiom-infinity.thy: -------------------------------------------------------------------------------- 1 | name: axiom-infinity 2 | version: 1.12 3 | description: Axiom of Infinity 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | requires: function 9 | show: "Data.Bool" 10 | show: "Function" 11 | 12 | main { 13 | article: "axiom-infinity.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/monoid-thm/monoid-thm.thy: -------------------------------------------------------------------------------- 1 | name: monoid-thm 2 | version: 1.6 3 | description: Properties of monoids 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: monoid-witness 9 | show: "Algebra.Monoid" 10 | show: "Data.Bool" 11 | 12 | main { 13 | article: "monoid-thm.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/natural-dest/natural-dest.thy: -------------------------------------------------------------------------------- 1 | name: natural-dest 2 | version: 1.18 3 | description: Natural number destructors 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: natural-thm 8 | show: "Data.Bool" 9 | show: "Number.Natural" 10 | 11 | def { 12 | package: natural-dest-def-1.5 13 | } 14 | 15 | main { 16 | import: def 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/set-def/set-def.thy: -------------------------------------------------------------------------------- 1 | name: set-def 2 | version: 1.52 3 | description: Definition of set types 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: bool 8 | requires: pair 9 | show: "Data.Bool" 10 | show: "Data.Pair" 11 | show: "Set" 12 | 13 | main { 14 | article: "set-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/group-def/group-def.thy: -------------------------------------------------------------------------------- 1 | name: group-def 2 | version: 1.10 3 | description: Definition of group subtraction 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2012-12-02 7 | requires: bool 8 | requires: group-witness 9 | show: "Algebra.Group" 10 | show: "Data.Bool" 11 | 12 | main { 13 | article: "group-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/montgomery-def/montgomery-def.thy: -------------------------------------------------------------------------------- 1 | name: montgomery-def 2 | version: 1.10 3 | description: Definition of Montgomery multiplication 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-10-30 7 | requires: base 8 | show: "Data.Bool" 9 | show: "Number.Natural" 10 | 11 | main { 12 | article: "montgomery-def.art" 13 | } 14 | -------------------------------------------------------------------------------- /data/theories/natural-numeral/natural-numeral.thy: -------------------------------------------------------------------------------- 1 | name: natural-numeral 2 | version: 1.20 3 | description: Natural number numerals 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: natural-thm 8 | show: "Data.Bool" 9 | show: "Number.Natural" 10 | 11 | def { 12 | package: natural-numeral-def-1.8 13 | } 14 | 15 | main { 16 | import: def 17 | } 18 | -------------------------------------------------------------------------------- /test/theories/bool-implies-thm/bool-implies-thm.thy: -------------------------------------------------------------------------------- 1 | name: bool-implies-thm 2 | version: 1.0 3 | description: Properties of Boolean implication 4 | author: Joe Programmer 5 | license: MIT 6 | requires: bool-and 7 | requires: bool-forall 8 | requires: bool-implies-def 9 | requires: bool-true 10 | show: "Data.Bool" 11 | 12 | main { 13 | article: "bool-implies-thm.art" 14 | } 15 | -------------------------------------------------------------------------------- /test/theories/bool-true/bool-true.thy: -------------------------------------------------------------------------------- 1 | name: bool-true 2 | version: 1.0 3 | description: The Boolean true constant 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | show: "Data.Bool" 7 | 8 | def { 9 | package: bool-true-def-1.0 10 | } 11 | 12 | thm { 13 | import: def 14 | package: bool-true-thm-1.0 15 | } 16 | 17 | main { 18 | import: def 19 | import: thm 20 | } 21 | -------------------------------------------------------------------------------- /data/theories/bool-ext/bool-ext.thy: -------------------------------------------------------------------------------- 1 | name: bool-ext 2 | version: 1.12 3 | description: Extensional boolean theorems 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: axiom-extensionality 8 | requires: bool-def 9 | requires: bool-int 10 | show: "Data.Bool" 11 | 12 | main { 13 | article: "bool-ext.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/set-finite-def/set-finite-def.thy: -------------------------------------------------------------------------------- 1 | name: set-finite-def 2 | version: 1.37 3 | description: Definition of finite sets 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2015-01-02 7 | requires: bool 8 | requires: set-def 9 | show: "Data.Bool" 10 | show: "Set" 11 | 12 | main { 13 | article: "set-finite-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /test/theories/bool-implies-thm-1.1/bool-implies-thm.thy: -------------------------------------------------------------------------------- 1 | name: bool-implies-thm 2 | version: 1.1 3 | description: Properties of Boolean implication 4 | author: Joe Programmer 5 | license: MIT 6 | requires: bool-and 7 | requires: bool-forall 8 | requires: bool-implies-def 9 | requires: bool-true 10 | show: "Data.Bool" 11 | 12 | main { 13 | article: "bool-implies-thm.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/list-def/list-def.thy: -------------------------------------------------------------------------------- 1 | name: list-def 2 | version: 1.63 3 | description: Definition of list types 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: natural 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "list-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/list-map-def/list-map-def.thy: -------------------------------------------------------------------------------- 1 | name: list-map-def 2 | version: 1.48 3 | description: Definition of the list map function 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: list-def 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | 12 | main { 13 | article: "list-map-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/map-reduce-bit3x3-sat/map-reduce-bit3x3-sat.thy: -------------------------------------------------------------------------------- 1 | name: map-reduce-bit3x3-sat 2 | version: 1.4 3 | description: SAT proof for the map reduce 3x3 bit matrix example 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2012-01-29 7 | requires: base 8 | show: "Data.Bool" 9 | 10 | main { 11 | article: "map-reduce-bit3x3-sat.art" 12 | } 13 | -------------------------------------------------------------------------------- /data/theories/natural-thm/natural-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-thm 2 | version: 1.22 3 | description: Properties of natural numbers 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: bool 8 | requires: natural-def 9 | show: "Data.Bool" 10 | show: "Number.Natural" 11 | 12 | main { 13 | article: "natural-thm.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/pair-thm/pair-thm.thy: -------------------------------------------------------------------------------- 1 | name: pair-thm 2 | version: 1.31 3 | description: Properties of product types 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory exported on 2018-08-28 7 | requires: bool 8 | requires: function 9 | requires: pair-def 10 | show: "Data.Bool" 11 | show: "Data.Pair" 12 | 13 | main { 14 | article: "pair-thm.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/unit/unit.thy: -------------------------------------------------------------------------------- 1 | name: unit 2 | version: 1.21 3 | description: The unit type 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | show: "Data.Bool" 8 | show: "Data.Unit" 9 | 10 | def { 11 | package: unit-def-1.13 12 | } 13 | 14 | thm { 15 | import: def 16 | package: unit-thm-1.17 17 | } 18 | 19 | main { 20 | import: def 21 | import: thm 22 | } 23 | -------------------------------------------------------------------------------- /data/theories/group-thm/group-thm.thy: -------------------------------------------------------------------------------- 1 | name: group-thm 2 | version: 1.4 3 | description: Consequences of the group axioms and subtraction 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2012-09-25 7 | requires: bool 8 | requires: group-witness 9 | show: "Algebra.Group" 10 | show: "Data.Bool" 11 | 12 | main { 13 | article: "group-thm.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/list-dest-def/list-dest-def.thy: -------------------------------------------------------------------------------- 1 | name: list-dest-def 2 | version: 1.54 3 | description: Definition of list type destructors 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: bool 8 | requires: list-def 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | 12 | main { 13 | article: "list-dest-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /test/natural/example11.art: -------------------------------------------------------------------------------- 1 | 6 2 | version 3 | "a" 4 | const 5 | 0 6 | def 7 | "bool" 8 | typeOp 9 | 1 10 | def 11 | nil 12 | opType 13 | 2 14 | def 15 | constTerm 16 | 3 17 | def 18 | assume 19 | 4 20 | def 21 | 3 22 | ref 23 | nil 24 | cons 25 | 3 26 | ref 27 | thm 28 | 4 29 | remove 30 | pop 31 | 3 32 | remove 33 | pop 34 | 2 35 | remove 36 | pop 37 | 1 38 | remove 39 | pop 40 | 0 41 | remove 42 | pop 43 | -------------------------------------------------------------------------------- /data/theories/list-append-def/list-append-def.thy: -------------------------------------------------------------------------------- 1 | name: list-append-def 2 | version: 1.52 3 | description: Definition of appending lists 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: bool 8 | requires: list-def 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | 12 | main { 13 | article: "list-append-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/option-map-def/option-map-def.thy: -------------------------------------------------------------------------------- 1 | name: option-map-def 2 | version: 1.17 3 | description: Definition of the option map function 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: option-def 9 | show: "Data.Bool" 10 | show: "Data.Option" 11 | 12 | main { 13 | article: "option-map-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/group-abelian/group-abelian.thy: -------------------------------------------------------------------------------- 1 | name: group-abelian 2 | version: 1.9 3 | description: Abelian groups 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2012-12-02 7 | requires: bool 8 | requires: group-thm 9 | requires: group-witness 10 | show: "Algebra.Group" 11 | show: "Data.Bool" 12 | 13 | main { 14 | article: "group-abelian.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/list-filter-def/list-filter-def.thy: -------------------------------------------------------------------------------- 1 | name: list-filter-def 2 | version: 1.49 3 | description: Definition of the list filter function 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: list-def 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | 12 | main { 13 | article: "list-filter-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/option-def/option-def.thy: -------------------------------------------------------------------------------- 1 | name: option-def 2 | version: 1.61 3 | description: Definition of option types 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: natural 9 | show: "Data.Bool" 10 | show: "Data.Option" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "option-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/option-dest-def/option-dest-def.thy: -------------------------------------------------------------------------------- 1 | name: option-dest-def 2 | version: 1.61 3 | description: Definition of option type destructors 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: bool 8 | requires: option-def 9 | show: "Data.Bool" 10 | show: "Data.Option" 11 | 12 | main { 13 | article: "option-dest-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/sum-thm/sum-thm.thy: -------------------------------------------------------------------------------- 1 | name: sum-thm 2 | version: 1.3 3 | description: Properties of sum types 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-04-21 7 | requires: bool 8 | requires: natural 9 | requires: sum-def 10 | show: "Data.Bool" 11 | show: "Data.Sum" 12 | show: "Number.Natural" 13 | 14 | main { 15 | article: "sum-thm.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/function-thm/function-thm.thy: -------------------------------------------------------------------------------- 1 | name: function-thm 2 | version: 1.49 3 | description: Properties of function operators and combinators 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: bool 8 | requires: function-def 9 | show: "Data.Bool" 10 | show: "Function" 11 | 12 | main { 13 | article: "function-thm.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/monoid-witness/monoid-witness.thy: -------------------------------------------------------------------------------- 1 | name: monoid-witness 2 | version: 1.9 3 | description: Parametric theory witness for monoids 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: monoid-comm-witness 9 | show: "Algebra.Monoid" 10 | show: "Data.Bool" 11 | 12 | main { 13 | article: "monoid-witness.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/real-thm/real-thm.thy: -------------------------------------------------------------------------------- 1 | name: real-thm 2 | version: 1.48 3 | description: Properties of the real numbers 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | requires: real-def 9 | requires: set 10 | show: "Data.Bool" 11 | show: "Number.Real" 12 | show: "Set" 13 | 14 | main { 15 | article: "real-thm.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/list-nub-def/list-nub-def.thy: -------------------------------------------------------------------------------- 1 | name: list-nub-def 2 | version: 1.54 3 | description: Definition of the list nub function 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: list-def 9 | requires: list-reverse 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | 13 | main { 14 | article: "list-nub-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/modular-thm/modular-thm.thy: -------------------------------------------------------------------------------- 1 | name: modular-thm 2 | version: 1.66 3 | description: Properties of modular arithmetic 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: modular-def 9 | show: "Data.Bool" 10 | show: "Number.Modular" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "modular-thm.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/natural-add-def/natural-add-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-add-def 2 | version: 1.25 3 | description: Definition of natural number addition 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: natural-thm 9 | show: "Data.Bool" 10 | show: "Number.Natural" 11 | 12 | main { 13 | article: "natural-add-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/natural-divides-def/natural-divides-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-divides-def 2 | version: 1.41 3 | description: Definition of the divides relation on natural numbers 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-10-30 7 | requires: base 8 | show: "Data.Bool" 9 | show: "Number.Natural" 10 | 11 | main { 12 | article: "natural-divides-def.art" 13 | } 14 | -------------------------------------------------------------------------------- /data/theories/pair/pair.thy: -------------------------------------------------------------------------------- 1 | name: pair 2 | version: 1.30 3 | description: Product types 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: function 8 | show: "Data.Bool" 9 | show: "Data.Pair" 10 | 11 | def { 12 | package: pair-def-1.24 13 | } 14 | 15 | thm { 16 | import: def 17 | package: pair-thm-1.31 18 | } 19 | 20 | main { 21 | import: def 22 | import: thm 23 | } 24 | -------------------------------------------------------------------------------- /test/theories/bool-forall/bool-forall.thy: -------------------------------------------------------------------------------- 1 | name: bool-forall 2 | version: 1.0 3 | description: The universal quantifier 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool-true 7 | show: "Data.Bool" 8 | 9 | def { 10 | package: bool-forall-def-1.0 11 | } 12 | 13 | thm { 14 | import: def 15 | package: bool-forall-thm-1.0 16 | } 17 | 18 | main { 19 | import: def 20 | import: thm 21 | } 22 | -------------------------------------------------------------------------------- /data/theories/list-last-def/list-last-def.thy: -------------------------------------------------------------------------------- 1 | name: list-last-def 2 | version: 1.47 3 | description: Definition of the last list function 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: list-def 9 | requires: list-dest 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | 13 | main { 14 | article: "list-last-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/modular-witness/modular-witness.thy: -------------------------------------------------------------------------------- 1 | name: modular-witness 2 | version: 1.6 3 | description: Parametric theory witness for modular arithmetic 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | show: "Data.Bool" 9 | show: "Number.Modular" 10 | show: "Number.Natural" 11 | 12 | main { 13 | article: "modular-witness.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/natural-dest-def/natural-dest-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-dest-def 2 | version: 1.5 3 | description: Definition of natural number destructors 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: natural-thm 9 | show: "Data.Bool" 10 | show: "Number.Natural" 11 | 12 | main { 13 | article: "natural-dest-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/natural-prime-def/natural-prime-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-prime-def 2 | version: 1.44 3 | description: Definition of prime natural numbers 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-10-30 7 | requires: base 8 | requires: natural-divides 9 | show: "Data.Bool" 10 | show: "Number.Natural" 11 | 12 | main { 13 | article: "natural-prime-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/relation-def/relation-def.thy: -------------------------------------------------------------------------------- 1 | name: relation-def 2 | version: 1.25 3 | description: Definition of relation operators 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-10-30 7 | requires: bool 8 | requires: set 9 | show: "Data.Bool" 10 | show: "Data.Pair" 11 | show: "Relation" 12 | show: "Set" 13 | 14 | main { 15 | article: "relation-def.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/relation-well-founded-def/relation-well-founded-def.thy: -------------------------------------------------------------------------------- 1 | name: relation-well-founded-def 2 | version: 1.38 3 | description: Definition of well-founded relations 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-10-30 7 | requires: bool 8 | show: "Data.Bool" 9 | show: "Relation" 10 | 11 | main { 12 | article: "relation-well-founded-def.art" 13 | } 14 | -------------------------------------------------------------------------------- /test/theories/bool-and/bool-and.thy: -------------------------------------------------------------------------------- 1 | name: bool-and 2 | version: 1.0 3 | description: Boolean conjunction 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool-forall 7 | requires: bool-true 8 | show: "Data.Bool" 9 | 10 | def { 11 | package: bool-and-def-1.0 12 | } 13 | 14 | thm { 15 | import: def 16 | package: bool-and-thm-1.0 17 | } 18 | 19 | main { 20 | import: def 21 | import: thm 22 | } 23 | -------------------------------------------------------------------------------- /data/theories/natural-order-def/natural-order-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-order-def 2 | version: 1.33 3 | description: Definition of natural number orderings 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: bool 8 | requires: natural-thm 9 | show: "Data.Bool" 10 | show: "Number.Natural" 11 | 12 | main { 13 | article: "natural-order-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /test/theories/bool-and-1.1/bool-and.thy: -------------------------------------------------------------------------------- 1 | name: bool-and 2 | version: 1.1 3 | description: Boolean conjunction 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool-forall 7 | requires: bool-true 8 | show: "Data.Bool" 9 | 10 | def { 11 | package: bool-and-def-1.0 12 | } 13 | 14 | thm { 15 | import: def 16 | package: bool-and-thm-1.1 17 | } 18 | 19 | main { 20 | import: def 21 | import: thm 22 | } 23 | -------------------------------------------------------------------------------- /data/theories/function/function.thy: -------------------------------------------------------------------------------- 1 | name: function 2 | version: 1.55 3 | description: Function operators and combinators 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | show: "Data.Bool" 8 | show: "Function" 9 | 10 | def { 11 | package: function-def-1.20 12 | } 13 | 14 | thm { 15 | import: def 16 | package: function-thm-1.49 17 | } 18 | 19 | main { 20 | import: def 21 | import: thm 22 | } 23 | -------------------------------------------------------------------------------- /data/theories/monoid-comm-witness/monoid-comm-witness.thy: -------------------------------------------------------------------------------- 1 | name: monoid-comm-witness 2 | version: 1.9 3 | description: Parametric theory witness for commutative monoids 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | show: "Algebra.Monoid" 9 | show: "Data.Bool" 10 | show: "Data.Unit" 11 | 12 | main { 13 | article: "monoid-comm-witness.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/option-thm/option-thm.thy: -------------------------------------------------------------------------------- 1 | name: option-thm 2 | version: 1.54 3 | description: Properties of option types 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2015-04-21 7 | requires: bool 8 | requires: natural 9 | requires: option-def 10 | show: "Data.Bool" 11 | show: "Data.Option" 12 | show: "Number.Natural" 13 | 14 | main { 15 | article: "option-thm.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/sum-def/sum-def.thy: -------------------------------------------------------------------------------- 1 | name: sum-def 2 | version: 1.67 3 | description: Definition of sum types 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: bool 8 | requires: natural 9 | requires: pair 10 | show: "Data.Bool" 11 | show: "Data.Pair" 12 | show: "Data.Sum" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "sum-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/char-def/char-def.thy: -------------------------------------------------------------------------------- 1 | name: char-def 2 | version: 1.106 3 | description: Definition of Unicode characters 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-04-28 7 | requires: base 8 | requires: natural-bits 9 | show: "Data.Bool" 10 | show: "Data.Char" 11 | show: "Number.Natural" 12 | show: "Probability.Random" 13 | 14 | main { 15 | article: "char-def.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/gfp-witness/gfp-witness.thy: -------------------------------------------------------------------------------- 1 | name: gfp-witness 2 | version: 1.10 3 | description: Parametric theory witness for GF(p) finite fields 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: natural-prime 9 | show: "Data.Bool" 10 | show: "Number.GF(p)" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "gfp-witness.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/natural-fibonacci-exists/natural-fibonacci-exists.thy: -------------------------------------------------------------------------------- 1 | name: natural-fibonacci-exists 2 | version: 1.40 3 | description: Existence of Fibonacci numbers 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-05-05 7 | requires: base 8 | show: "Data.Bool" 9 | show: "Number.Natural" 10 | show: "Relation" 11 | 12 | main { 13 | article: "natural-fibonacci-exists.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/option-dest-thm/option-dest-thm.thy: -------------------------------------------------------------------------------- 1 | name: option-dest-thm 2 | version: 1.15 3 | description: Properties of option type destructors 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | requires: option-dest-def 9 | requires: option-thm 10 | show: "Data.Bool" 11 | show: "Data.Option" 12 | 13 | main { 14 | article: "option-dest-thm.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/bool-class/bool-class.thy: -------------------------------------------------------------------------------- 1 | name: bool-class 2 | version: 1.26 3 | description: Classical boolean theorems 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: axiom-choice 8 | requires: axiom-extensionality 9 | requires: bool-def 10 | requires: bool-ext 11 | requires: bool-int 12 | show: "Data.Bool" 13 | 14 | main { 15 | article: "bool-class.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/hardware-wire-def/hardware-wire-def.thy: -------------------------------------------------------------------------------- 1 | name: hardware-wire-def 2 | version: 1.12 3 | description: Definition of hardware wire devices 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: base 8 | requires: hardware-thm 9 | show: "Data.Bool" 10 | show: "Hardware" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "hardware-wire-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/list-reverse-def/list-reverse-def.thy: -------------------------------------------------------------------------------- 1 | name: list-reverse-def 2 | version: 1.48 3 | description: Definition of the list reverse function 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: list-append 9 | requires: list-def 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | 13 | main { 14 | article: "list-reverse-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/map-reduce-bit3x3-def/map-reduce-bit3x3-def.thy: -------------------------------------------------------------------------------- 1 | name: map-reduce-bit3x3-def 2 | version: 1.1 3 | description: Definitions for the map reduce 3x3 bit matrix example 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-10-19 7 | requires: base 8 | show: "Data.Bool" 9 | show: "Data.List" 10 | show: "Data.Pair" 11 | 12 | main { 13 | article: "map-reduce-bit3x3-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/monoid-comm-thm/monoid-comm-thm.thy: -------------------------------------------------------------------------------- 1 | name: monoid-comm-thm 2 | version: 1.8 3 | description: Properties of commutative monoids 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: monoid-comm-witness 9 | requires: monoid-witness 10 | show: "Algebra.Monoid" 11 | show: "Data.Bool" 12 | 13 | main { 14 | article: "monoid-comm-thm.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/monoid-mult-def/monoid-mult-def.thy: -------------------------------------------------------------------------------- 1 | name: monoid-mult-def 2 | version: 1.10 3 | description: Definition of monoid multiplication 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: base 8 | requires: monoid-witness 9 | show: "Algebra.Monoid" 10 | show: "Data.Bool" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "monoid-mult-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/natural-def/natural-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-def 2 | version: 1.29 3 | description: Constructing the natural numbers 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: axiom-infinity 8 | requires: bool 9 | requires: function 10 | show: "Data.Bool" 11 | show: "Function" 12 | show: "Number.Natural" 13 | 14 | main { 15 | article: "natural-def.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/set-size-def/set-size-def.thy: -------------------------------------------------------------------------------- 1 | name: set-size-def 2 | version: 1.33 3 | description: Definition of finite set cardinality 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-10-30 7 | requires: bool 8 | requires: natural 9 | requires: set-fold 10 | show: "Data.Bool" 11 | show: "Number.Natural" 12 | show: "Set" 13 | 14 | main { 15 | article: "set-size-def.art" 16 | } 17 | -------------------------------------------------------------------------------- /repo/php/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Redirection Page 6 | 7 | 8 | 9 |

Redirection Page

10 | 11 | 12 | -------------------------------------------------------------------------------- /test/theories/bool-true-axiom/bool-true-axiom.thy: -------------------------------------------------------------------------------- 1 | name: bool-true-axiom 2 | version: 1.0 3 | description: Definition and assertion about the boolean true constant 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | show: "Data.Bool" 7 | 8 | def { 9 | package: bool-true-def-1.0 10 | } 11 | 12 | assert { 13 | import: def 14 | package: bool-true-assert-1.0 15 | } 16 | 17 | main { 18 | import: def 19 | import: assert 20 | } 21 | -------------------------------------------------------------------------------- /data/theories/byte-bits/byte-bits.thy: -------------------------------------------------------------------------------- 1 | name: byte-bits 2 | version: 1.83 3 | description: Byte to bit-list conversions 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: byte-def 9 | show: "Data.Bool" 10 | show: "Data.Byte" 11 | show: "Data.Byte.Bits" 12 | show: "Data.List" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "byte-bits.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/hardware-adder-def/hardware-adder-def.thy: -------------------------------------------------------------------------------- 1 | name: hardware-adder-def 2 | version: 1.14 3 | description: Definition of hardware adder devices 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: base 8 | requires: hardware-bus 9 | requires: hardware-wire 10 | show: "Data.Bool" 11 | show: "Hardware" 12 | 13 | main { 14 | article: "hardware-adder-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /repo/images/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Redirection Page 6 | 7 | 8 | 9 |

Redirection Page

10 | 11 | 12 | -------------------------------------------------------------------------------- /data/theories/group-witness/group-witness.thy: -------------------------------------------------------------------------------- 1 | name: group-witness 2 | version: 1.9 3 | description: Parametric theory witness for groups 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2012-12-02 7 | requires: bool 8 | requires: set 9 | requires: unit 10 | show: "Algebra.Group" 11 | show: "Data.Bool" 12 | show: "Data.Unit" 13 | show: "Set" 14 | 15 | main { 16 | article: "group-witness.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/list-dest-thm/list-dest-thm.thy: -------------------------------------------------------------------------------- 1 | name: list-dest-thm 2 | version: 1.16 3 | description: Properties of list type destructors 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | requires: list-def 9 | requires: list-dest-def 10 | requires: list-thm 11 | show: "Data.Bool" 12 | show: "Data.List" 13 | 14 | main { 15 | article: "list-dest-thm.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/monoid-comm-mult-def/monoid-comm-mult-def.thy: -------------------------------------------------------------------------------- 1 | name: monoid-comm-mult-def 2 | version: 1.1 3 | description: Definition of commutative monoid multiplication 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2013-03-12 7 | requires: monoid-mult-def 8 | show: "Algebra.Monoid" 9 | show: "Data.Bool" 10 | show: "Number.Natural" 11 | 12 | main { 13 | article: "monoid-comm-mult-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/natural-divides-thm/natural-divides-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-divides-thm 2 | version: 1.52 3 | description: Properties of the divides relation on natural numbers 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-05-26 7 | requires: base 8 | requires: natural-divides-def 9 | show: "Data.Bool" 10 | show: "Number.Natural" 11 | 12 | main { 13 | article: "natural-divides-thm.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/natural-exp-def/natural-exp-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-exp-def 2 | version: 1.35 3 | description: Definition of natural number exponentiation 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: natural-mult 9 | requires: natural-thm 10 | show: "Data.Bool" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "natural-exp-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/natural-mult-def/natural-mult-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-mult-def 2 | version: 1.29 3 | description: Definition of natural number multiplication 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: natural-add 9 | requires: natural-thm 10 | show: "Data.Bool" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "natural-mult-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/natural-prime-thm/natural-prime-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-prime-thm 2 | version: 1.54 3 | description: Properties of prime natural numbers 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: natural-divides 9 | requires: natural-prime-def 10 | show: "Data.Bool" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "natural-prime-thm.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/set-fold-thm/set-fold-thm.thy: -------------------------------------------------------------------------------- 1 | name: set-fold-thm 2 | version: 1.41 3 | description: Properties of a fold operation on finite sets 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | requires: set-finite 9 | requires: set-fold-def 10 | requires: set-thm 11 | show: "Data.Bool" 12 | show: "Set" 13 | 14 | main { 15 | article: "set-fold-thm.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/gfp-div-exp-def/gfp-div-exp-def.thy: -------------------------------------------------------------------------------- 1 | name: gfp-div-exp-def 2 | version: 1.46 3 | description: Definition of a GF(p) exponentiation algorithm based on division 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: base 8 | requires: gfp-div-def 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Number.GF(p)" 12 | 13 | main { 14 | article: "gfp-div-exp-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/group-mult-def/group-mult-def.thy: -------------------------------------------------------------------------------- 1 | name: group-mult-def 2 | version: 1.9 3 | description: Definition of group multiplication 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2012-12-02 7 | requires: bool 8 | requires: group-witness 9 | requires: natural 10 | show: "Algebra.Group" 11 | show: "Data.Bool" 12 | show: "Number.Natural" 13 | 14 | main { 15 | article: "group-mult-def.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/hardware-def/hardware-def.thy: -------------------------------------------------------------------------------- 1 | name: hardware-def 2 | version: 1.21 3 | description: Definition of the hardware model 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: stream 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Data.Stream" 12 | show: "Hardware" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "hardware-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/natural-order-thm/natural-order-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-order-thm 2 | version: 1.41 3 | description: Properties of natural number orderings 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | requires: natural-def 9 | requires: natural-order-def 10 | show: "Data.Bool" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "natural-order-thm.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/parser-stream-def/parser-stream-def.thy: -------------------------------------------------------------------------------- 1 | name: parser-stream-def 2 | version: 1.101 3 | description: Definition of parse streams 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-04-25 7 | requires: base 8 | show: "Data.Bool" 9 | show: "Data.List" 10 | show: "Data.Pair" 11 | show: "Number.Natural" 12 | show: "Parser.Stream" 13 | 14 | main { 15 | article: "parser-stream-def.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/stream-def/stream-def.thy: -------------------------------------------------------------------------------- 1 | name: stream-def 2 | version: 1.36 3 | description: Definition of infinite stream types 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: base 8 | show: "Data.Bool" 9 | show: "Data.List" 10 | show: "Data.Pair" 11 | show: "Data.Stream" 12 | show: "Function" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "stream-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/gfp-div-thm/gfp-div-thm.thy: -------------------------------------------------------------------------------- 1 | name: gfp-div-thm 2 | version: 1.65 3 | description: Properties of GF(p) field division 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: base 8 | requires: gfp-def 9 | requires: gfp-div-def 10 | requires: gfp-thm 11 | show: "Data.Bool" 12 | show: "Number.GF(p)" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "gfp-div-thm.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/hardware-bus-def/hardware-bus-def.thy: -------------------------------------------------------------------------------- 1 | name: hardware-bus-def 2 | version: 1.26 3 | description: Definition of hardware bus devices 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-10-30 7 | requires: base 8 | requires: hardware-thm 9 | requires: hardware-wire 10 | show: "Data.Bool" 11 | show: "Hardware" 12 | show: "Number.Natural" 13 | 14 | main { 15 | article: "hardware-bus-def.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/list-length-def/list-length-def.thy: -------------------------------------------------------------------------------- 1 | name: list-length-def 2 | version: 1.47 3 | description: Definition of the list length function 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: list-def 9 | requires: natural 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | show: "Number.Natural" 13 | 14 | main { 15 | article: "list-length-def.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/list-thm/list-thm.thy: -------------------------------------------------------------------------------- 1 | name: list-thm 2 | version: 1.55 3 | description: Properties of list types 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: bool 8 | requires: list-def 9 | requires: natural 10 | requires: pair 11 | show: "Data.Bool" 12 | show: "Data.List" 13 | show: "Data.Pair" 14 | show: "Number.Natural" 15 | 16 | main { 17 | article: "list-thm.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/natural-funpow-def/natural-funpow-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-funpow-def 2 | version: 1.18 3 | description: Definition of function power 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: function 9 | requires: natural-thm 10 | show: "Data.Bool" 11 | show: "Function" 12 | show: "Number.Natural" 13 | 14 | main { 15 | article: "natural-funpow-def.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/relation-natural-def/relation-natural-def.thy: -------------------------------------------------------------------------------- 1 | name: relation-natural-def 2 | version: 1.26 3 | description: Definition of relations over natural numbers 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-10-30 7 | requires: bool 8 | requires: natural 9 | show: "Data.Bool" 10 | show: "Number.Natural" 11 | show: "Relation" 12 | 13 | main { 14 | article: "relation-natural-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/list-interval-def/list-interval-def.thy: -------------------------------------------------------------------------------- 1 | name: list-interval-def 2 | version: 1.59 3 | description: Definition of the list interval function 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: list-def 9 | requires: natural 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | show: "Number.Natural" 13 | 14 | main { 15 | article: "list-interval-def.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/natural-distance-def/natural-distance-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-distance-def 2 | version: 1.41 3 | description: Definition of natural number distance 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-10-30 7 | requires: bool 8 | requires: natural-add 9 | requires: natural-order 10 | show: "Data.Bool" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "natural-distance-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/natural-factorial-def/natural-factorial-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-factorial-def 2 | version: 1.35 3 | description: Definition of natural number factorial 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: natural-mult 9 | requires: natural-thm 10 | show: "Data.Bool" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "natural-factorial-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/relation-thm/relation-thm.thy: -------------------------------------------------------------------------------- 1 | name: relation-thm 2 | version: 1.15 3 | description: Properties of relation operators 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: bool 8 | requires: pair 9 | requires: relation-def 10 | requires: set 11 | show: "Data.Bool" 12 | show: "Data.Pair" 13 | show: "Relation" 14 | show: "Set" 15 | 16 | main { 17 | article: "relation-thm.art" 18 | } 19 | -------------------------------------------------------------------------------- /test/theories/bool-implies/bool-implies.thy: -------------------------------------------------------------------------------- 1 | name: bool-implies 2 | version: 1.0 3 | description: Boolean implication 4 | author: Joe Programmer 5 | license: MIT 6 | requires: bool-and 7 | requires: bool-forall 8 | requires: bool-true 9 | show: "Data.Bool" 10 | 11 | def { 12 | package: bool-implies-def-1.0 13 | } 14 | 15 | thm { 16 | import: def 17 | package: bool-implies-thm-1.0 18 | } 19 | 20 | main { 21 | import: def 22 | import: thm 23 | } 24 | -------------------------------------------------------------------------------- /data/theories/list-dest/list-dest.thy: -------------------------------------------------------------------------------- 1 | name: list-dest 2 | version: 1.50 3 | description: List type destructors 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: list-def 8 | requires: list-thm 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | 12 | def { 13 | package: list-dest-def-1.54 14 | } 15 | 16 | thm { 17 | import: def 18 | package: list-dest-thm-1.16 19 | } 20 | 21 | main { 22 | import: def 23 | import: thm 24 | } 25 | -------------------------------------------------------------------------------- /data/theories/list-fold-def/list-fold-def.thy: -------------------------------------------------------------------------------- 1 | name: list-fold-def 2 | version: 1.28 3 | description: Definition of the list fold operations 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-09 7 | requires: bool 8 | requires: function 9 | requires: list-def 10 | requires: list-reverse 11 | show: "Data.Bool" 12 | show: "Data.List" 13 | show: "Function" 14 | 15 | main { 16 | article: "list-fold-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/list-nth-def/list-nth-def.thy: -------------------------------------------------------------------------------- 1 | name: list-nth-def 2 | version: 1.55 3 | description: Definition of the list nth function 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: list-dest 9 | requires: list-length 10 | requires: natural 11 | show: "Data.Bool" 12 | show: "Data.List" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "list-nth-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/monoid-comm-mult-thm/monoid-comm-mult-thm.thy: -------------------------------------------------------------------------------- 1 | name: monoid-comm-mult-thm 2 | version: 1.2 3 | description: Properties of commutative monoid multiplication 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2013-03-09 7 | requires: base 8 | requires: monoid-mult-thm 9 | show: "Algebra.Monoid" 10 | show: "Data.Bool" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "monoid-comm-mult-thm.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/monoid-mult-add-def/monoid-mult-add-def.thy: -------------------------------------------------------------------------------- 1 | name: monoid-mult-add-def 2 | version: 1.9 3 | description: Definition of monoid multiplication by repeated addition 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: base 8 | requires: monoid-witness 9 | show: "Algebra.Monoid" 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | 13 | main { 14 | article: "monoid-mult-add-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/montgomery-hardware-def/montgomery-hardware-def.thy: -------------------------------------------------------------------------------- 1 | name: montgomery-hardware-def 2 | version: 1.5 3 | description: Definition of hardware Montgomery multiplication 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: base 8 | requires: hardware 9 | show: "Data.Bool" 10 | show: "Hardware" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "montgomery-hardware-def.art" 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/montgomery-thm/montgomery-thm.thy: -------------------------------------------------------------------------------- 1 | name: montgomery-thm 2 | version: 1.23 3 | description: Properties of Montgomery multiplication 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-05-20 7 | requires: base 8 | requires: montgomery-def 9 | requires: natural-bits 10 | requires: natural-divides 11 | show: "Data.Bool" 12 | show: "Number.Natural" 13 | 14 | main { 15 | article: "montgomery-thm.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/set-fold-def/set-fold-def.thy: -------------------------------------------------------------------------------- 1 | name: set-fold-def 2 | version: 1.53 3 | description: Definition of a fold operation on finite sets 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: natural 9 | requires: set-finite 10 | requires: set-thm 11 | show: "Data.Bool" 12 | show: "Number.Natural" 13 | show: "Set" 14 | 15 | main { 16 | article: "set-fold-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/sum/sum.thy: -------------------------------------------------------------------------------- 1 | name: sum 2 | version: 1.61 3 | description: Sum types 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: natural 8 | requires: pair 9 | show: "Data.Bool" 10 | show: "Data.Pair" 11 | show: "Data.Sum" 12 | show: "Number.Natural" 13 | 14 | def { 15 | package: sum-def-1.67 16 | } 17 | 18 | thm { 19 | import: def 20 | package: sum-thm-1.3 21 | } 22 | 23 | main { 24 | import: def 25 | import: thm 26 | } 27 | -------------------------------------------------------------------------------- /data/theories/word10-bits/word10-bits.thy: -------------------------------------------------------------------------------- 1 | name: word10-bits 2 | version: 1.78 3 | description: 10-bit word to bit-list conversions 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: word10-def 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Data.Word10" 12 | show: "Data.Word10.Bits" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "word10-bits.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/word12-bits/word12-bits.thy: -------------------------------------------------------------------------------- 1 | name: word12-bits 2 | version: 1.77 3 | description: 12-bit word to bit-list conversions 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: word12-def 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Data.Word12" 12 | show: "Data.Word12.Bits" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "word12-bits.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/word16-bits/word16-bits.thy: -------------------------------------------------------------------------------- 1 | name: word16-bits 2 | version: 1.80 3 | description: 16-bit word to bit-list conversions 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: word16-def 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Data.Word16" 12 | show: "Data.Word16.Bits" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "word16-bits.art" 17 | } 18 | -------------------------------------------------------------------------------- /test/theories/bool-implies-1.1/bool-implies.thy: -------------------------------------------------------------------------------- 1 | name: bool-implies 2 | version: 1.1 3 | description: Boolean implication 4 | author: Joe Programmer 5 | license: MIT 6 | requires: bool-and 7 | requires: bool-forall 8 | requires: bool-true 9 | show: "Data.Bool" 10 | 11 | def { 12 | package: bool-implies-def-1.0 13 | } 14 | 15 | thm { 16 | import: def 17 | package: bool-implies-thm-1.1 18 | } 19 | 20 | main { 21 | import: def 22 | import: thm 23 | } 24 | -------------------------------------------------------------------------------- /data/haskell/opentheory/src/OpenTheory/List.hs: -------------------------------------------------------------------------------- 1 | {- | 2 | module: $Header$ 3 | description: The standard theory library 4 | license: MIT 5 | 6 | maintainer: Joe Leslie-Hurd 7 | stability: provisional 8 | portability: portable 9 | -} 10 | 11 | module OpenTheory.List 12 | where 13 | 14 | import qualified OpenTheory.Primitive.Natural as Natural 15 | 16 | naturalLength :: [a] -> Natural.Natural 17 | naturalLength [] = 0 18 | naturalLength (_ : t) = naturalLength t + 1 19 | -------------------------------------------------------------------------------- /data/theories/list-replicate-def/list-replicate-def.thy: -------------------------------------------------------------------------------- 1 | name: list-replicate-def 2 | version: 1.53 3 | description: Definition of the list replicate function 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: list-def 9 | requires: natural 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | show: "Number.Natural" 13 | 14 | main { 15 | article: "list-replicate-def.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/natural-order-min-max-def/natural-order-min-max-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-order-min-max-def 2 | version: 1.29 3 | description: Definition of natural number min and max functions 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | requires: natural-order-thm 9 | show: "Data.Bool" 10 | show: "Number.Natural" 11 | 12 | main { 13 | article: "natural-order-min-max-def.art" 14 | } 15 | -------------------------------------------------------------------------------- /data/theories/option-map-thm/option-map-thm.thy: -------------------------------------------------------------------------------- 1 | name: option-map-thm 2 | version: 1.14 3 | description: Properties of the option map function 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | requires: function 9 | requires: option-map-def 10 | requires: option-thm 11 | show: "Data.Bool" 12 | show: "Data.Option" 13 | show: "Function" 14 | 15 | main { 16 | article: "option-map-thm.art" 17 | } 18 | -------------------------------------------------------------------------------- /test/natural/example3.art: -------------------------------------------------------------------------------- 1 | # Tiny example to test a primitive rule of inference. 2 | "x" 3 | "'a" 4 | varType 5 | 1 6 | def 7 | var 8 | varTerm 9 | 2 10 | def 11 | refl 12 | nil 13 | "=" 14 | const 15 | "->" 16 | typeOp 17 | 1 18 | ref 19 | "->" 20 | typeOp 21 | 1 22 | remove 23 | "bool" 24 | typeOp 25 | nil 26 | opType 27 | nil 28 | cons 29 | cons 30 | opType 31 | nil 32 | cons 33 | cons 34 | opType 35 | constTerm 36 | 2 37 | ref 38 | appTerm 39 | 2 40 | remove 41 | appTerm 42 | thm 43 | -------------------------------------------------------------------------------- /data/theories/gfp-thm/gfp-thm.thy: -------------------------------------------------------------------------------- 1 | name: gfp-thm 2 | version: 1.58 3 | description: Properties of GF(p) finite fields 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: gfp-def 9 | requires: gfp-witness 10 | requires: natural-divides 11 | requires: natural-prime 12 | show: "Data.Bool" 13 | show: "Number.GF(p)" 14 | show: "Number.Natural" 15 | 16 | main { 17 | article: "gfp-thm.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/monoid-comm-mult-add/monoid-comm-mult-add.thy: -------------------------------------------------------------------------------- 1 | name: monoid-comm-mult-add 2 | version: 1.3 3 | description: Commutative monoid multiplication by repeated addition 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-02-20 7 | requires: monoid-mult-add 8 | show: "Algebra.Monoid" 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Number.Natural" 12 | 13 | main { 14 | article: "monoid-comm-mult-add.art" 15 | } 16 | -------------------------------------------------------------------------------- /src/Random.sig: -------------------------------------------------------------------------------- 1 | (* Title: Tools/random_word.ML 2 | Author: Makarius 3 | 4 | Simple generator for pseudo-random numbers, using unboxed word 5 | arithmetic only. Unprotected concurrency introduces some true 6 | randomness. 7 | *) 8 | 9 | signature Random = 10 | sig 11 | 12 | val nextWord : unit -> word 13 | 14 | val nextBool : unit -> bool 15 | 16 | val nextInt : int -> int (* k -> [0,k) *) 17 | 18 | val nextReal : unit -> real (* () -> [0,1) *) 19 | 20 | end; 21 | -------------------------------------------------------------------------------- /data/theories/char-thm/char-thm.thy: -------------------------------------------------------------------------------- 1 | name: char-thm 2 | version: 1.23 3 | description: Properties of Unicode characters 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-04-28 7 | requires: base 8 | requires: char-def 9 | requires: natural-bits 10 | show: "Data.Bool" 11 | show: "Data.Char" 12 | show: "Data.Pair" 13 | show: "Function" 14 | show: "Number.Natural" 15 | show: "Set" 16 | 17 | main { 18 | article: "char-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/group-mult-add-def/group-mult-add-def.thy: -------------------------------------------------------------------------------- 1 | name: group-mult-add-def 2 | version: 1.12 3 | description: Definition of group multiplication by repeated addition 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2012-12-02 7 | requires: bool 8 | requires: group-witness 9 | requires: list 10 | show: "Algebra.Group" 11 | show: "Data.Bool" 12 | show: "Data.List" 13 | 14 | main { 15 | article: "group-mult-add-def.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/list-set-def/list-set-def.thy: -------------------------------------------------------------------------------- 1 | name: list-set-def 2 | version: 1.53 3 | description: Definition of list to set conversions 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: list-def 9 | requires: list-length 10 | requires: set 11 | show: "Data.Bool" 12 | show: "Data.List" 13 | show: "Number.Natural" 14 | show: "Set" 15 | 16 | main { 17 | article: "list-set-def.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/option-dest/option-dest.thy: -------------------------------------------------------------------------------- 1 | name: option-dest 2 | version: 1.56 3 | description: Option type destructors 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: option-def 8 | requires: option-thm 9 | show: "Data.Bool" 10 | show: "Data.Option" 11 | 12 | def { 13 | package: option-dest-def-1.61 14 | } 15 | 16 | thm { 17 | import: def 18 | package: option-dest-thm-1.15 19 | } 20 | 21 | main { 22 | import: def 23 | import: thm 24 | } 25 | -------------------------------------------------------------------------------- /data/theories/set-thm/set-thm.thy: -------------------------------------------------------------------------------- 1 | name: set-thm 2 | version: 1.75 3 | description: Properties of set types 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory exported on 2019-07-04 7 | requires: bool 8 | requires: function 9 | requires: natural 10 | requires: pair 11 | requires: set-def 12 | show: "Data.Bool" 13 | show: "Data.Pair" 14 | show: "Function" 15 | show: "Number.Natural" 16 | show: "Set" 17 | 18 | main { 19 | article: "set-thm.art" 20 | } 21 | -------------------------------------------------------------------------------- /test/natural/example10.art: -------------------------------------------------------------------------------- 1 | # Tiny example to check that two constructed constant terms 2 | # are alpha-equivalent - Joe Leslie-Hurd 3 | nil 4 | # First construction of constant term `c : bool` 5 | "c" 6 | const 7 | "bool" 8 | typeOp 9 | nil 10 | opType 11 | constTerm 12 | axiom 13 | nil 14 | # Second construction of constant term `c : bool` 15 | "c" 16 | const 17 | "bool" 18 | typeOp 19 | nil 20 | opType 21 | constTerm 22 | # This thm would fail if the two terms were not alpha-equivalent 23 | thm 24 | -------------------------------------------------------------------------------- /data/theories/gfp-div-gcd-def/gfp-div-gcd-def.thy: -------------------------------------------------------------------------------- 1 | name: gfp-div-gcd-def 2 | version: 1.60 3 | description: Definition of a GF(p) division algorithm based on gcd 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: base 8 | requires: gfp-def 9 | requires: gfp-div-def 10 | show: "Data.Bool" 11 | show: "Data.Pair" 12 | show: "Number.GF(p)" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "gfp-div-gcd-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/monoid-mult-thm/monoid-mult-thm.thy: -------------------------------------------------------------------------------- 1 | name: monoid-mult-thm 2 | version: 1.7 3 | description: Properties of monoid multiplication 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: monoid-mult-def 9 | requires: monoid-thm 10 | requires: monoid-witness 11 | show: "Algebra.Monoid" 12 | show: "Data.Bool" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "monoid-mult-thm.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/probability-def/probability-def.thy: -------------------------------------------------------------------------------- 1 | name: probability-def 2 | version: 1.42 3 | description: Definition of probability 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-04-18 7 | requires: base 8 | requires: stream 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Data.Pair" 12 | show: "Data.Stream" 13 | show: "Number.Natural" 14 | show: "Probability.Random" 15 | 16 | main { 17 | article: "probability-def.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/stream-thm/stream-thm.thy: -------------------------------------------------------------------------------- 1 | name: stream-thm 2 | version: 1.39 3 | description: Properties of infinite stream types 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-06-30 7 | requires: base 8 | requires: stream-def 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Data.Pair" 12 | show: "Data.Stream" 13 | show: "Function" 14 | show: "Number.Natural" 15 | show: "Set" 16 | 17 | main { 18 | article: "stream-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/gfp-div-def/gfp-div-def.thy: -------------------------------------------------------------------------------- 1 | name: gfp-div-def 2 | version: 1.67 3 | description: Definition of GF(p) field division 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: base 8 | requires: gfp-def 9 | requires: gfp-witness 10 | requires: natural-divides 11 | requires: natural-prime 12 | show: "Data.Bool" 13 | show: "Number.GF(p)" 14 | show: "Number.Natural" 15 | 16 | main { 17 | article: "gfp-div-def.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/group-crypt-def/group-crypt-def.thy: -------------------------------------------------------------------------------- 1 | name: group-crypt-def 2 | version: 1.11 3 | description: Definition of group cryptography 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2012-12-10 7 | requires: bool 8 | requires: group-mult 9 | requires: group-witness 10 | requires: pair 11 | show: "Algebra.Group" 12 | show: "Data.Bool" 13 | show: "Data.Pair" 14 | show: "Number.Natural" 15 | 16 | main { 17 | article: "group-crypt-def.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/list-take-drop-def/list-take-drop-def.thy: -------------------------------------------------------------------------------- 1 | name: list-take-drop-def 2 | version: 1.56 3 | description: Definition of the list take and drop functions 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: list-dest 9 | requires: list-length 10 | requires: natural 11 | show: "Data.Bool" 12 | show: "Data.List" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "list-take-drop-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/natural-div-def/natural-div-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-div-def 2 | version: 1.41 3 | description: Definition of natural number division 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: natural-add 9 | requires: natural-mult 10 | requires: natural-order 11 | requires: natural-thm 12 | show: "Data.Bool" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "natural-div-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/parser-all-def/parser-all-def.thy: -------------------------------------------------------------------------------- 1 | name: parser-all-def 2 | version: 1.94 3 | description: Definition of the whole stream parser 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-02-26 7 | requires: base 8 | requires: parser-comb 9 | requires: parser-stream 10 | show: "Data.Bool" 11 | show: "Data.Option" 12 | show: "Data.Pair" 13 | show: "Parser" 14 | show: "Parser.Stream" 15 | 16 | main { 17 | article: "parser-all-def.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/natural-add-thm/natural-add-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-add-thm 2 | version: 1.58 3 | description: Properties of natural number addition 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory exported on 2018-07-26 7 | requires: bool 8 | requires: natural-add-def 9 | requires: natural-def 10 | requires: natural-numeral 11 | requires: natural-order 12 | show: "Data.Bool" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "natural-add-thm.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/natural-bits-def/natural-bits-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-bits-def 2 | version: 1.31 3 | description: Definition of natural number to bit-list conversions 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-04-18 7 | requires: base 8 | requires: probability 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Data.Pair" 12 | show: "Number.Natural" 13 | show: "Probability.Random" 14 | 15 | main { 16 | article: "natural-bits-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/parser-comb-def/parser-comb-def.thy: -------------------------------------------------------------------------------- 1 | name: parser-comb-def 2 | version: 1.90 3 | description: Definition of stream parser combinators 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-03-05 7 | requires: base 8 | requires: parser-stream 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Data.Option" 12 | show: "Data.Pair" 13 | show: "Parser" 14 | show: "Parser.Stream" 15 | 16 | main { 17 | article: "parser-comb-def.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/word-bits-def/word-bits-def.thy: -------------------------------------------------------------------------------- 1 | name: word-bits-def 2 | version: 1.85 3 | description: Definition of word to bit-list conversions 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-04-05 7 | requires: base 8 | requires: natural-bits 9 | requires: word-def 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | show: "Data.Word" 13 | show: "Data.Word.Bits" 14 | show: "Number.Natural" 15 | 16 | main { 17 | article: "word-bits-def.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/group-mult-sub-def/group-mult-sub-def.thy: -------------------------------------------------------------------------------- 1 | name: group-mult-sub-def 2 | version: 1.12 3 | description: Definition of group multiplication by repeated subtraction 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2012-12-02 7 | requires: bool 8 | requires: group-def 9 | requires: group-witness 10 | requires: list 11 | show: "Algebra.Group" 12 | show: "Data.Bool" 13 | show: "Data.List" 14 | 15 | main { 16 | article: "group-mult-sub-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/group-mult-thm/group-mult-thm.thy: -------------------------------------------------------------------------------- 1 | name: group-mult-thm 2 | version: 1.5 3 | description: Properties of group multiplication 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2012-09-25 7 | requires: bool 8 | requires: group-mult-def 9 | requires: group-thm 10 | requires: group-witness 11 | requires: natural 12 | show: "Algebra.Group" 13 | show: "Data.Bool" 14 | show: "Number.Natural" 15 | 16 | main { 17 | article: "group-mult-thm.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/hardware-counter-def/hardware-counter-def.thy: -------------------------------------------------------------------------------- 1 | name: hardware-counter-def 2 | version: 1.11 3 | description: Definition of hardware counter devices 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: base 8 | requires: hardware-adder 9 | requires: hardware-bus 10 | requires: hardware-wire 11 | show: "Data.Bool" 12 | show: "Hardware" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "hardware-counter-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/map-reduce-bit3x3-thm/map-reduce-bit3x3-thm.thy: -------------------------------------------------------------------------------- 1 | name: map-reduce-bit3x3-thm 2 | version: 1.1 3 | description: Properties for the map reduce 3x3 bit matrix example 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-10-19 7 | requires: base 8 | requires: map-reduce-bit3x3-def 9 | requires: map-reduce-bit3x3-sat 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | show: "Data.Pair" 13 | 14 | main { 15 | article: "map-reduce-bit3x3-thm.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/word16-bytes-def/word16-bytes-def.thy: -------------------------------------------------------------------------------- 1 | name: word16-bytes-def 2 | version: 1.75 3 | description: Definition of 16-bit word to byte conversions 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-10-30 7 | requires: base 8 | requires: byte 9 | requires: word16-def 10 | show: "Data.Bool" 11 | show: "Data.Byte" 12 | show: "Data.Pair" 13 | show: "Data.Word16" 14 | show: "Number.Natural" 15 | 16 | main { 17 | article: "word16-bytes-def.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/hardware-thm/hardware-thm.thy: -------------------------------------------------------------------------------- 1 | name: hardware-thm 2 | version: 1.33 3 | description: Properties of the hardware model 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-02-20 7 | requires: base 8 | requires: hardware-def 9 | requires: natural-bits 10 | requires: stream 11 | show: "Data.Bool" 12 | show: "Data.List" 13 | show: "Data.Stream" 14 | show: "Hardware" 15 | show: "Number.Natural" 16 | 17 | main { 18 | article: "hardware-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/natural-add-sub-def/natural-add-sub-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-add-sub-def 2 | version: 1.11 3 | description: Definition of natural number subtraction 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: natural-add-thm 9 | requires: natural-def 10 | requires: natural-dest 11 | requires: natural-thm 12 | show: "Data.Bool" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "natural-add-sub-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/natural-exp-log-def/natural-exp-log-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-exp-log-def 2 | version: 1.13 3 | description: Definition of natural number logarithm 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | requires: natural-add 9 | requires: natural-def 10 | requires: natural-exp-thm 11 | requires: natural-order 12 | show: "Data.Bool" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "natural-exp-log-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/hardware-wire-thm/hardware-wire-thm.thy: -------------------------------------------------------------------------------- 1 | name: hardware-wire-thm 2 | version: 1.26 3 | description: Properties of hardware wire devices 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: hardware-thm 9 | requires: hardware-wire-def 10 | requires: stream 11 | show: "Data.Bool" 12 | show: "Data.Stream" 13 | show: "Hardware" 14 | show: "Number.Natural" 15 | 16 | main { 17 | article: "hardware-wire-thm.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/set-fold/set-fold.thy: -------------------------------------------------------------------------------- 1 | name: set-fold 2 | version: 1.46 3 | description: A fold operation on finite sets 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: natural 8 | requires: set-finite 9 | requires: set-thm 10 | show: "Data.Bool" 11 | show: "Number.Natural" 12 | show: "Set" 13 | 14 | def { 15 | package: set-fold-def-1.53 16 | } 17 | 18 | thm { 19 | import: def 20 | package: set-fold-thm-1.41 21 | } 22 | 23 | main { 24 | import: def 25 | import: thm 26 | } 27 | -------------------------------------------------------------------------------- /test/natural/example5.art: -------------------------------------------------------------------------------- 1 | "Unwanted.id" 2 | const 3 | "->" 4 | typeOp 5 | 0 6 | def 7 | "bool" 8 | typeOp 9 | nil 10 | opType 11 | 1 12 | def 13 | 1 14 | ref 15 | nil 16 | cons 17 | cons 18 | opType 19 | 2 20 | def 21 | constTerm 22 | "a" 23 | const 24 | 1 25 | ref 26 | constTerm 27 | appTerm 28 | 3 29 | def 30 | refl 31 | nil 32 | "=" 33 | const 34 | 0 35 | remove 36 | 1 37 | remove 38 | 2 39 | remove 40 | nil 41 | cons 42 | cons 43 | opType 44 | constTerm 45 | 3 46 | ref 47 | appTerm 48 | 3 49 | remove 50 | appTerm 51 | thm 52 | -------------------------------------------------------------------------------- /data/haskell/opentheory/src/OpenTheory/Natural.hs: -------------------------------------------------------------------------------- 1 | {- | 2 | module: $Header$ 3 | description: The standard theory library 4 | license: MIT 5 | 6 | maintainer: Joe Leslie-Hurd 7 | stability: provisional 8 | portability: portable 9 | -} 10 | 11 | module OpenTheory.Natural 12 | where 13 | 14 | import qualified OpenTheory.Primitive.Natural as Natural 15 | 16 | naturalEven :: Natural.Natural -> Bool 17 | naturalEven n = n `mod` 2 == 0 18 | 19 | naturalOdd :: Natural.Natural -> Bool 20 | naturalOdd n = not (naturalEven n) 21 | -------------------------------------------------------------------------------- /data/theories/axiom/axiom.thy: -------------------------------------------------------------------------------- 1 | name: axiom 2 | version: 1.16 3 | description: Standard axioms 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: function 8 | show: "Data.Bool" 9 | show: "Function" 10 | 11 | extensionality { 12 | package: axiom-extensionality-1.9 13 | } 14 | 15 | choice { 16 | package: axiom-choice-1.8 17 | } 18 | 19 | infinity { 20 | package: axiom-infinity-1.12 21 | } 22 | 23 | main { 24 | import: extensionality 25 | import: choice 26 | import: infinity 27 | } 28 | -------------------------------------------------------------------------------- /data/theories/hardware-multiplier-def/hardware-multiplier-def.thy: -------------------------------------------------------------------------------- 1 | name: hardware-multiplier-def 2 | version: 1.12 3 | description: Definition of hardware multiplier devices 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: base 8 | requires: hardware-adder 9 | requires: hardware-bus 10 | requires: hardware-counter 11 | show: "Data.Bool" 12 | show: "Hardware" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "hardware-multiplier-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/list-last-thm/list-last-thm.thy: -------------------------------------------------------------------------------- 1 | name: list-last-thm 2 | version: 1.42 3 | description: Properties of the last list function 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory exported on 2018-11-26 7 | requires: bool 8 | requires: list-append 9 | requires: list-def 10 | requires: list-dest 11 | requires: list-last-def 12 | requires: list-reverse 13 | requires: list-thm 14 | show: "Data.Bool" 15 | show: "Data.List" 16 | 17 | main { 18 | article: "list-last-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/natural-divides-lcm-def/natural-divides-lcm-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-divides-lcm-def 2 | version: 1.0 3 | description: Definition of natural number least common multiple 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: natural-divides-def 9 | requires: natural-divides-gcd 10 | requires: natural-divides-thm 11 | show: "Data.Bool" 12 | show: "Number.Natural" 13 | 14 | main { 15 | article: "natural-divides-lcm-def.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/option-map/option-map.thy: -------------------------------------------------------------------------------- 1 | name: option-map 2 | version: 1.14 3 | description: The option map function 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: function 8 | requires: option-def 9 | requires: option-thm 10 | show: "Data.Bool" 11 | show: "Data.Option" 12 | show: "Function" 13 | 14 | def { 15 | package: option-map-def-1.17 16 | } 17 | 18 | thm { 19 | import: def 20 | package: option-map-thm-1.14 21 | } 22 | 23 | main { 24 | import: def 25 | import: thm 26 | } 27 | -------------------------------------------------------------------------------- /data/theories/parser-stream-thm/parser-stream-thm.thy: -------------------------------------------------------------------------------- 1 | name: parser-stream-thm 2 | version: 1.107 3 | description: Properties of parse streams 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-05-05 7 | requires: base 8 | requires: parser-stream-def 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Data.Pair" 12 | show: "Function" 13 | show: "Number.Natural" 14 | show: "Parser.Stream" 15 | show: "Relation" 16 | 17 | main { 18 | article: "parser-stream-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/list-zip-def/list-zip-def.thy: -------------------------------------------------------------------------------- 1 | name: list-zip-def 2 | version: 1.23 3 | description: Definition of the list zip functions 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-04-22 7 | requires: bool 8 | requires: list-def 9 | requires: list-dest 10 | requires: list-fold 11 | requires: list-length 12 | requires: pair 13 | show: "Data.Bool" 14 | show: "Data.List" 15 | show: "Data.Pair" 16 | show: "Number.Natural" 17 | 18 | main { 19 | article: "list-zip-def.art" 20 | } 21 | -------------------------------------------------------------------------------- /data/theories/natural-prime-stream-def/natural-prime-stream-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-prime-stream-def 2 | version: 1.23 3 | description: Definition of the ordered stream of all prime numbers 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: base 8 | requires: natural-prime-thm 9 | requires: stream 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | show: "Data.Stream" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "natural-prime-stream-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/parser-comb-thm/parser-comb-thm.thy: -------------------------------------------------------------------------------- 1 | name: parser-comb-thm 2 | version: 1.100 3 | description: Properties of stream parser combinators 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-04-21 7 | requires: base 8 | requires: parser-comb-def 9 | requires: parser-stream 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | show: "Data.Option" 13 | show: "Data.Pair" 14 | show: "Parser" 15 | show: "Parser.Stream" 16 | 17 | main { 18 | article: "parser-comb-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/word-bits-thm/word-bits-thm.thy: -------------------------------------------------------------------------------- 1 | name: word-bits-thm 2 | version: 1.100 3 | description: Properties of word to bit-list conversions 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-04-05 7 | requires: base 8 | requires: natural-bits 9 | requires: word-bits-def 10 | requires: word-def 11 | show: "Data.Bool" 12 | show: "Data.List" 13 | show: "Data.Word" 14 | show: "Data.Word.Bits" 15 | show: "Number.Natural" 16 | 17 | main { 18 | article: "word-bits-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /test/natural/example4.art: -------------------------------------------------------------------------------- 1 | nil 2 | "=" 3 | const 4 | "->" 5 | typeOp 6 | 0 7 | def 8 | "bool" 9 | typeOp 10 | nil 11 | opType 12 | 1 13 | def 14 | 0 15 | remove 16 | 1 17 | ref 18 | 1 19 | ref 20 | nil 21 | cons 22 | cons 23 | opType 24 | nil 25 | cons 26 | cons 27 | opType 28 | constTerm 29 | "a" 30 | const 31 | 1 32 | ref 33 | constTerm 34 | 2 35 | def 36 | appTerm 37 | "b" 38 | const 39 | 1 40 | remove 41 | constTerm 42 | 3 43 | def 44 | appTerm 45 | axiom 46 | nil 47 | 2 48 | remove 49 | axiom 50 | eqMp 51 | nil 52 | 3 53 | remove 54 | thm 55 | -------------------------------------------------------------------------------- /data/theories/list-length-thm/list-length-thm.thy: -------------------------------------------------------------------------------- 1 | name: list-length-thm 2 | version: 1.43 3 | description: Properties of the list length function 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2015-02-08 7 | requires: bool 8 | requires: list-def 9 | requires: list-dest 10 | requires: list-length-def 11 | requires: list-thm 12 | requires: natural 13 | show: "Data.Bool" 14 | show: "Data.List" 15 | show: "Number.Natural" 16 | 17 | main { 18 | article: "list-length-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/modular-def/modular-def.thy: -------------------------------------------------------------------------------- 1 | name: modular-def 2 | version: 1.85 3 | description: Definition of modular arithmetic 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-04-18 7 | requires: base 8 | requires: modular-witness 9 | requires: natural-bits 10 | requires: natural-divides 11 | requires: probability 12 | show: "Data.Bool" 13 | show: "Number.Modular" 14 | show: "Number.Natural" 15 | show: "Probability.Random" 16 | 17 | main { 18 | article: "modular-def.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/natural-prime-sieve-def/natural-prime-sieve-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-prime-sieve-def 2 | version: 1.32 3 | description: Definition of the sieve of Eratosthenes 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: base 8 | requires: natural-prime-stream 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Data.Pair" 12 | show: "Number.Natural" 13 | show: "Number.Natural.Prime.Sieve" 14 | 15 | main { 16 | article: "natural-prime-sieve-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/real-def/real-def.thy: -------------------------------------------------------------------------------- 1 | name: real-def 2 | version: 1.72 3 | description: Definition of the real numbers 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: bool 8 | requires: function 9 | requires: natural 10 | requires: pair 11 | requires: set 12 | show: "Data.Bool" 13 | show: "Data.Pair" 14 | show: "Function" 15 | show: "Number.Natural" as "Natural" 16 | show: "Number.Real" 17 | show: "Set" 18 | 19 | main { 20 | article: "real-def.art" 21 | } 22 | -------------------------------------------------------------------------------- /data/theories/hardware-bus-thm/hardware-bus-thm.thy: -------------------------------------------------------------------------------- 1 | name: hardware-bus-thm 2 | version: 1.45 3 | description: Properties of hardware bus devices 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-02-20 7 | requires: base 8 | requires: hardware-bus-def 9 | requires: hardware-thm 10 | requires: hardware-wire 11 | requires: natural-bits 12 | show: "Data.Bool" 13 | show: "Data.List" 14 | show: "Hardware" 15 | show: "Number.Natural" 16 | 17 | main { 18 | article: "hardware-bus-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/hardware-wire/hardware-wire.thy: -------------------------------------------------------------------------------- 1 | name: hardware-wire 2 | version: 1.23 3 | description: Hardware wire devices 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: base 7 | requires: hardware-thm 8 | requires: stream 9 | show: "Data.Bool" 10 | show: "Data.Stream" 11 | show: "Hardware" 12 | show: "Number.Natural" 13 | 14 | def { 15 | package: hardware-wire-def-1.12 16 | } 17 | 18 | thm { 19 | import: def 20 | package: hardware-wire-thm-1.26 21 | } 22 | 23 | main { 24 | import: def 25 | import: thm 26 | } 27 | -------------------------------------------------------------------------------- /data/theories/list-interval-thm/list-interval-thm.thy: -------------------------------------------------------------------------------- 1 | name: list-interval-thm 2 | version: 1.60 3 | description: Properties of the list interval function 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | requires: list-interval-def 9 | requires: list-length 10 | requires: list-map 11 | requires: list-nth 12 | requires: natural 13 | show: "Data.Bool" 14 | show: "Data.List" 15 | show: "Number.Natural" 16 | 17 | main { 18 | article: "list-interval-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/natural-divides-gcd-def/natural-divides-gcd-def.thy: -------------------------------------------------------------------------------- 1 | name: natural-divides-gcd-def 2 | version: 1.3 3 | description: Definition of natural number greatest common divisor 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-05-25 7 | requires: base 8 | requires: natural-divides-def 9 | requires: natural-divides-thm 10 | show: "Data.Bool" 11 | show: "Data.Pair" 12 | show: "Number.Natural" 13 | show: "Relation" 14 | 15 | main { 16 | article: "natural-divides-gcd-def.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/natural-mult-thm/natural-mult-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-mult-thm 2 | version: 1.53 3 | description: Properties of natural number multiplication 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: bool 8 | requires: natural-add 9 | requires: natural-def 10 | requires: natural-mult-def 11 | requires: natural-numeral 12 | requires: natural-order 13 | show: "Data.Bool" 14 | show: "Number.Natural" 15 | 16 | main { 17 | article: "natural-mult-thm.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/natural-order-min-max-thm/natural-order-min-max-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-order-min-max-thm 2 | version: 1.35 3 | description: Properties of natural number min and max functions 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2015-04-04 7 | requires: bool 8 | requires: natural-order-def 9 | requires: natural-order-min-max-def 10 | requires: natural-order-thm 11 | show: "Data.Bool" 12 | show: "Number.Natural" 13 | 14 | main { 15 | article: "natural-order-min-max-thm.art" 16 | } 17 | -------------------------------------------------------------------------------- /data/theories/parser-fold-def/parser-fold-def.thy: -------------------------------------------------------------------------------- 1 | name: parser-fold-def 2 | version: 1.2 3 | description: Definition of the fold parsers 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-03-05 7 | requires: base 8 | requires: parser-comb 9 | requires: parser-stream 10 | show: "Data.Bool" 11 | show: "Data.Option" 12 | show: "Data.Pair" 13 | show: "Data.Sum" 14 | show: "Number.Natural" 15 | show: "Parser" 16 | show: "Parser.Stream" 17 | 18 | main { 19 | article: "parser-fold-def.art" 20 | } 21 | -------------------------------------------------------------------------------- /data/theories/list-last/list-last.thy: -------------------------------------------------------------------------------- 1 | name: list-last 2 | version: 1.54 3 | description: The last list function 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: list-append 8 | requires: list-def 9 | requires: list-dest 10 | requires: list-reverse 11 | requires: list-thm 12 | show: "Data.Bool" 13 | show: "Data.List" 14 | 15 | def { 16 | package: list-last-def-1.47 17 | } 18 | 19 | thm { 20 | import: def 21 | package: list-last-thm-1.42 22 | } 23 | 24 | main { 25 | import: def 26 | import: thm 27 | } 28 | -------------------------------------------------------------------------------- /data/theories/parser-fold-thm/parser-fold-thm.thy: -------------------------------------------------------------------------------- 1 | name: parser-fold-thm 2 | version: 1.3 3 | description: Properties of the fold parsers 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-03-06 7 | requires: base 8 | requires: parser-comb 9 | requires: parser-fold-def 10 | requires: parser-stream 11 | show: "Data.Bool" 12 | show: "Data.Option" 13 | show: "Data.Pair" 14 | show: "Data.Sum" 15 | show: "Parser" 16 | show: "Parser.Stream" 17 | 18 | main { 19 | article: "parser-fold-thm.art" 20 | } 21 | -------------------------------------------------------------------------------- /data/theories/probability-thm/probability-thm.thy: -------------------------------------------------------------------------------- 1 | name: probability-thm 2 | version: 1.20 3 | description: Properties of probability 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-04-28 7 | requires: base 8 | requires: probability-def 9 | requires: stream 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | show: "Data.Pair" 13 | show: "Data.Stream" 14 | show: "Function" 15 | show: "Number.Natural" 16 | show: "Probability.Random" 17 | 18 | main { 19 | article: "probability-thm.art" 20 | } 21 | -------------------------------------------------------------------------------- /data/theories/hardware-adder-thm/hardware-adder-thm.thy: -------------------------------------------------------------------------------- 1 | name: hardware-adder-thm 2 | version: 1.21 3 | description: Properties of hardware adder devices 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-02-20 7 | requires: base 8 | requires: hardware-adder-def 9 | requires: hardware-bus 10 | requires: hardware-thm 11 | requires: hardware-wire 12 | requires: natural-bits 13 | show: "Data.Bool" 14 | show: "Hardware" 15 | show: "Number.Natural" 16 | 17 | main { 18 | article: "hardware-adder-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/list-length/list-length.thy: -------------------------------------------------------------------------------- 1 | name: list-length 2 | version: 1.53 3 | description: The list length function 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: list-def 8 | requires: list-dest 9 | requires: list-thm 10 | requires: natural 11 | show: "Data.Bool" 12 | show: "Data.List" 13 | show: "Number.Natural" 14 | 15 | def { 16 | package: list-length-def-1.47 17 | } 18 | 19 | thm { 20 | import: def 21 | package: list-length-thm-1.43 22 | } 23 | 24 | main { 25 | import: def 26 | import: thm 27 | } 28 | -------------------------------------------------------------------------------- /data/theories/list-set-thm/list-set-thm.thy: -------------------------------------------------------------------------------- 1 | name: list-set-thm 2 | version: 1.52 3 | description: Properties of list to set conversions 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory exported on 2019-05-03 7 | requires: bool 8 | requires: list-def 9 | requires: list-dest 10 | requires: list-length 11 | requires: list-set-def 12 | requires: natural 13 | requires: set 14 | show: "Data.Bool" 15 | show: "Data.List" 16 | show: "Number.Natural" 17 | show: "Set" 18 | 19 | main { 20 | article: "list-set-thm.art" 21 | } 22 | -------------------------------------------------------------------------------- /data/theories/natural-bits-thm/natural-bits-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-bits-thm 2 | version: 1.57 3 | description: Properties of natural number to bit-list conversions 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-11-01 7 | requires: base 8 | requires: natural-bits-def 9 | requires: probability 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | show: "Data.Pair" 13 | show: "Function" 14 | show: "Number.Natural" 15 | show: "Probability.Random" 16 | 17 | main { 18 | article: "natural-bits-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/parser-comb/parser-comb.thy: -------------------------------------------------------------------------------- 1 | name: parser-comb 2 | version: 1.99 3 | description: Stream parser combinators 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: base 7 | requires: parser-stream 8 | show: "Data.Bool" 9 | show: "Data.List" 10 | show: "Data.Option" 11 | show: "Data.Pair" 12 | show: "Parser" 13 | show: "Parser.Stream" 14 | 15 | def { 16 | package: parser-comb-def-1.90 17 | } 18 | 19 | thm { 20 | import: def 21 | package: parser-comb-thm-1.100 22 | } 23 | 24 | main { 25 | import: def 26 | import: thm 27 | } 28 | -------------------------------------------------------------------------------- /data/theories/parser-stream/parser-stream.thy: -------------------------------------------------------------------------------- 1 | name: parser-stream 2 | version: 1.111 3 | description: Parse streams 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: base 7 | show: "Data.Bool" 8 | show: "Data.List" 9 | show: "Data.Pair" 10 | show: "Function" 11 | show: "Number.Natural" 12 | show: "Parser.Stream" 13 | show: "Relation" 14 | 15 | def { 16 | package: parser-stream-def-1.101 17 | } 18 | 19 | thm { 20 | import: def 21 | package: parser-stream-thm-1.107 22 | } 23 | 24 | main { 25 | import: def 26 | import: thm 27 | } 28 | -------------------------------------------------------------------------------- /data/theories/relation-well-founded-thm/relation-well-founded-thm.thy: -------------------------------------------------------------------------------- 1 | name: relation-well-founded-thm 2 | version: 1.63 3 | description: Properties of well-founded relations 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory exported on 2019-10-31 7 | requires: bool 8 | requires: pair 9 | requires: relation-def 10 | requires: relation-thm 11 | requires: relation-well-founded-def 12 | show: "Data.Bool" 13 | show: "Data.Pair" 14 | show: "Relation" 15 | 16 | main { 17 | article: "relation-well-founded-thm.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/word-bits/word-bits.thy: -------------------------------------------------------------------------------- 1 | name: word-bits 2 | version: 1.100 3 | description: Word to bit-list conversions 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: base 7 | requires: natural-bits 8 | requires: word-def 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Data.Word" 12 | show: "Data.Word.Bits" 13 | show: "Number.Natural" 14 | 15 | def { 16 | package: word-bits-def-1.85 17 | } 18 | 19 | thm { 20 | import: def 21 | package: word-bits-thm-1.100 22 | } 23 | 24 | main { 25 | import: def 26 | import: thm 27 | } 28 | -------------------------------------------------------------------------------- /test/articles/.gitignore: -------------------------------------------------------------------------------- 1 | /bool-and-def.art 2 | /bool-and-thm.art 3 | /bool-and-thm-new.art 4 | /bool-forall-def.art 5 | /bool-forall-thm.art 6 | /bool-implies-def.art 7 | /bool-implies-thm.art 8 | /bool-implies-thm-new.art 9 | /bool-true-def.art 10 | /bool-true-thm.art 11 | /empty.art 12 | /example1.art 13 | /example2.art 14 | /example3.art 15 | /example4.art 16 | /example5.art 17 | /example6.art 18 | /example7.art 19 | /example8.art 20 | /example9.art 21 | /example10.art 22 | /example11.art 23 | /example12.art 24 | /example13.art 25 | /example14.art 26 | /example15.art 27 | -------------------------------------------------------------------------------- /test/summaries/.gitignore: -------------------------------------------------------------------------------- 1 | /bool-and-def.sum 2 | /bool-and-thm.sum 3 | /bool-and-thm-new.sum 4 | /bool-forall-def.sum 5 | /bool-forall-thm.sum 6 | /bool-implies-def.sum 7 | /bool-implies-thm.sum 8 | /bool-implies-thm-new.sum 9 | /bool-true-def.sum 10 | /bool-true-thm.sum 11 | /empty.sum 12 | /example1.sum 13 | /example2.sum 14 | /example3.sum 15 | /example4.sum 16 | /example5.sum 17 | /example6.sum 18 | /example7.sum 19 | /example8.sum 20 | /example9.sum 21 | /example10.sum 22 | /example11.sum 23 | /example12.sum 24 | /example13.sum 25 | /example14.sum 26 | /example15.sum 27 | -------------------------------------------------------------------------------- /data/haskell/opentheory-prime/src/OpenTheory/Natural/Prime.hs: -------------------------------------------------------------------------------- 1 | {- | 2 | module: $Header$ 3 | description: Prime natural numbers 4 | license: MIT 5 | 6 | maintainer: Joe Leslie-Hurd 7 | stability: provisional 8 | portability: portable 9 | -} 10 | 11 | module OpenTheory.Natural.Prime 12 | where 13 | 14 | import qualified OpenTheory.Natural.Prime.Sieve as Sieve 15 | import qualified OpenTheory.Primitive.Natural as Natural 16 | import qualified OpenTheory.Stream as Stream 17 | 18 | primes :: [Natural.Natural] 19 | primes = Stream.unfold Sieve.next Sieve.initial 20 | -------------------------------------------------------------------------------- /data/theories/hardware-bus/hardware-bus.thy: -------------------------------------------------------------------------------- 1 | name: hardware-bus 2 | version: 1.46 3 | description: Hardware bus devices 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: base 7 | requires: hardware-thm 8 | requires: hardware-wire 9 | requires: natural-bits 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | show: "Hardware" 13 | show: "Number.Natural" 14 | 15 | def { 16 | package: hardware-bus-def-1.26 17 | } 18 | 19 | thm { 20 | import: def 21 | package: hardware-bus-thm-1.45 22 | } 23 | 24 | main { 25 | import: def 26 | import: thm 27 | } 28 | -------------------------------------------------------------------------------- /data/theories/monoid/monoid.thy: -------------------------------------------------------------------------------- 1 | name: monoid 2 | version: 1.16 3 | description: Parametric theory of monoids 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: base 7 | requires: monoid-witness 8 | requires: natural-bits 9 | show: "Algebra.Monoid" 10 | show: "Data.Bool" 11 | show: "Data.List" 12 | show: "Number.Natural" 13 | hol-light-int-file: hol-light.int 14 | 15 | thm { 16 | package: monoid-thm-1.6 17 | } 18 | 19 | mult { 20 | import: thm 21 | package: monoid-mult-1.13 22 | } 23 | 24 | main { 25 | import: thm 26 | import: mult 27 | } 28 | -------------------------------------------------------------------------------- /data/theories/natural-divides-lcm-thm/natural-divides-lcm-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-divides-lcm-thm 2 | version: 1.0 3 | description: Properties of natural number least common multiple 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: base 8 | requires: natural-divides-def 9 | requires: natural-divides-gcd 10 | requires: natural-divides-lcm-def 11 | requires: natural-divides-thm 12 | show: "Data.Bool" 13 | show: "Number.Natural" 14 | 15 | main { 16 | article: "natural-divides-lcm-thm.art" 17 | } 18 | -------------------------------------------------------------------------------- /data/theories/natural-order-min-max/natural-order-min-max.thy: -------------------------------------------------------------------------------- 1 | name: natural-order-min-max 2 | version: 1.40 3 | description: Natural number min and max functions 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: natural-order-def 8 | requires: natural-order-thm 9 | show: "Data.Bool" 10 | show: "Number.Natural" 11 | 12 | def { 13 | package: natural-order-min-max-def-1.29 14 | } 15 | 16 | thm { 17 | import: def 18 | package: natural-order-min-max-thm-1.35 19 | } 20 | 21 | main { 22 | import: def 23 | import: thm 24 | } 25 | -------------------------------------------------------------------------------- /data/theories/real/real.thy: -------------------------------------------------------------------------------- 1 | name: real 2 | version: 1.61 3 | description: The real numbers 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: function 8 | requires: natural 9 | requires: pair 10 | requires: set 11 | show: "Data.Bool" 12 | show: "Data.Pair" 13 | show: "Function" 14 | show: "Number.Natural" 15 | show: "Number.Real" 16 | show: "Set" 17 | 18 | def { 19 | package: real-def-1.72 20 | } 21 | 22 | thm { 23 | import: def 24 | package: real-thm-1.48 25 | } 26 | 27 | main { 28 | import: def 29 | import: thm 30 | } 31 | -------------------------------------------------------------------------------- /data/theories/list-interval/list-interval.thy: -------------------------------------------------------------------------------- 1 | name: list-interval 2 | version: 1.61 3 | description: The list interval function 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: list-length 8 | requires: list-map 9 | requires: list-nth 10 | requires: natural 11 | show: "Data.Bool" 12 | show: "Data.List" 13 | show: "Number.Natural" 14 | 15 | def { 16 | package: list-interval-def-1.59 17 | } 18 | 19 | thm { 20 | import: def 21 | package: list-interval-thm-1.60 22 | } 23 | 24 | main { 25 | import: def 26 | import: thm 27 | } 28 | -------------------------------------------------------------------------------- /data/theories/natural-funpow-thm/natural-funpow-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-funpow-thm 2 | version: 1.8 3 | description: Properties of function power 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | requires: function 9 | requires: natural-add 10 | requires: natural-def 11 | requires: natural-funpow-def 12 | requires: natural-mult 13 | requires: natural-numeral 14 | show: "Data.Bool" 15 | show: "Function" 16 | show: "Number.Natural" 17 | 18 | main { 19 | article: "natural-funpow-thm.art" 20 | } 21 | -------------------------------------------------------------------------------- /data/theories/set-finite-thm/set-finite-thm.thy: -------------------------------------------------------------------------------- 1 | name: set-finite-thm 2 | version: 1.68 3 | description: Properties of finite sets 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory exported on 2019-10-31 7 | requires: bool 8 | requires: function 9 | requires: natural 10 | requires: pair 11 | requires: set-def 12 | requires: set-finite-def 13 | requires: set-thm 14 | show: "Data.Bool" 15 | show: "Data.Pair" 16 | show: "Function" 17 | show: "Number.Natural" 18 | show: "Set" 19 | 20 | main { 21 | article: "set-finite-thm.art" 22 | } 23 | -------------------------------------------------------------------------------- /data/theories/group-crypt-thm/group-crypt-thm.thy: -------------------------------------------------------------------------------- 1 | name: group-crypt-thm 2 | version: 1.10 3 | description: Properties of group cryptography 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2012-12-02 7 | requires: bool 8 | requires: group-crypt-def 9 | requires: group-mult 10 | requires: group-thm 11 | requires: group-witness 12 | requires: natural 13 | requires: pair 14 | show: "Algebra.Group" 15 | show: "Data.Bool" 16 | show: "Data.Pair" 17 | show: "Number.Natural" 18 | 19 | main { 20 | article: "group-crypt-thm.art" 21 | } 22 | -------------------------------------------------------------------------------- /data/theories/list-nub-thm/list-nub-thm.thy: -------------------------------------------------------------------------------- 1 | name: list-nub-thm 2 | version: 1.57 3 | description: Properties of the list nub function 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | requires: list-def 9 | requires: list-length 10 | requires: list-nub-def 11 | requires: list-reverse 12 | requires: list-set 13 | requires: natural 14 | requires: set 15 | show: "Data.Bool" 16 | show: "Data.List" 17 | show: "Number.Natural" 18 | show: "Set" 19 | 20 | main { 21 | article: "list-nub-thm.art" 22 | } 23 | -------------------------------------------------------------------------------- /data/theories/list-set/list-set.thy: -------------------------------------------------------------------------------- 1 | name: list-set 2 | version: 1.56 3 | description: List to set conversions 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: list-def 8 | requires: list-dest 9 | requires: list-length 10 | requires: natural 11 | requires: set 12 | show: "Data.Bool" 13 | show: "Data.List" 14 | show: "Number.Natural" 15 | show: "Set" 16 | 17 | def { 18 | package: list-set-def-1.53 19 | } 20 | 21 | thm { 22 | import: def 23 | package: list-set-thm-1.52 24 | } 25 | 26 | main { 27 | import: def 28 | import: thm 29 | } 30 | -------------------------------------------------------------------------------- /data/theories/natural-divides-gcd-thm/natural-divides-gcd-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-divides-gcd-thm 2 | version: 1.7 3 | description: Properties of natural number greatest common divisor 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-07-14 7 | requires: base 8 | requires: natural-divides-def 9 | requires: natural-divides-gcd-def 10 | requires: natural-divides-thm 11 | show: "Data.Bool" 12 | show: "Data.Pair" 13 | show: "Number.Natural" 14 | show: "Relation" 15 | 16 | main { 17 | article: "natural-divides-gcd-thm.art" 18 | } 19 | -------------------------------------------------------------------------------- /data/theories/relation-well-founded/relation-well-founded.thy: -------------------------------------------------------------------------------- 1 | name: relation-well-founded 2 | version: 1.56 3 | description: Well-founded relations 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: pair 8 | requires: relation-def 9 | requires: relation-thm 10 | show: "Data.Bool" 11 | show: "Data.Pair" 12 | show: "Relation" 13 | 14 | def { 15 | package: relation-well-founded-def-1.38 16 | } 17 | 18 | thm { 19 | import: def 20 | package: relation-well-founded-thm-1.63 21 | } 22 | 23 | main { 24 | import: def 25 | import: thm 26 | } 27 | -------------------------------------------------------------------------------- /data/theories/set-size-thm/set-size-thm.thy: -------------------------------------------------------------------------------- 1 | name: set-size-thm 2 | version: 1.66 3 | description: Properties of finite set cardinality 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory exported on 2019-12-31 7 | requires: bool 8 | requires: natural 9 | requires: pair 10 | requires: set-def 11 | requires: set-finite 12 | requires: set-fold 13 | requires: set-size-def 14 | requires: set-thm 15 | show: "Data.Bool" 16 | show: "Data.Pair" 17 | show: "Number.Natural" 18 | show: "Set" 19 | 20 | main { 21 | article: "set-size-thm.art" 22 | } 23 | -------------------------------------------------------------------------------- /src/Lazy.sig: -------------------------------------------------------------------------------- 1 | (* ========================================================================= *) 2 | (* SUPPORT FOR LAZY EVALUATION *) 3 | (* Copyright (c) 2007 Joe Leslie-Hurd, distributed under the MIT license *) 4 | (* ========================================================================= *) 5 | 6 | signature Lazy = 7 | sig 8 | 9 | type 'a lazy 10 | 11 | val quickly : 'a -> 'a lazy 12 | 13 | val delay : (unit -> 'a) -> 'a lazy 14 | 15 | val force : 'a lazy -> 'a 16 | 17 | val memoize : (unit -> 'a) -> unit -> 'a 18 | 19 | end 20 | -------------------------------------------------------------------------------- /data/theories/natural-add-sub-thm/natural-add-sub-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-add-sub-thm 2 | version: 1.9 3 | description: Properties of natural number subtraction 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-17 7 | requires: bool 8 | requires: natural-add-def 9 | requires: natural-add-sub-def 10 | requires: natural-add-thm 11 | requires: natural-def 12 | requires: natural-dest 13 | requires: natural-order 14 | show: "Data.Bool" 15 | show: "Number.Natural" 16 | 17 | main { 18 | article: "natural-add-sub-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/natural-distance-thm/natural-distance-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-distance-thm 2 | version: 1.59 3 | description: Properties of natural number distance 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | requires: natural-add 9 | requires: natural-distance-def 10 | requires: natural-mult 11 | requires: natural-numeral 12 | requires: natural-order 13 | requires: natural-thm 14 | show: "Data.Bool" 15 | show: "Number.Natural" 16 | 17 | main { 18 | article: "natural-distance-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/natural-div-thm/natural-div-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-div-thm 2 | version: 1.60 3 | description: Properties of natural number division 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory exported on 2019-12-31 7 | requires: bool 8 | requires: natural-add 9 | requires: natural-def 10 | requires: natural-div-def 11 | requires: natural-mult 12 | requires: natural-numeral 13 | requires: natural-order 14 | requires: natural-thm 15 | show: "Data.Bool" 16 | show: "Number.Natural" 17 | 18 | main { 19 | article: "natural-div-thm.art" 20 | } 21 | -------------------------------------------------------------------------------- /data/theories/parser-all-thm/parser-all-thm.thy: -------------------------------------------------------------------------------- 1 | name: parser-all-thm 2 | version: 1.105 3 | description: Properties of the whole stream parser 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-04-21 7 | requires: base 8 | requires: parser-all-def 9 | requires: parser-comb 10 | requires: parser-stream 11 | show: "Data.Bool" 12 | show: "Data.List" 13 | show: "Data.Option" 14 | show: "Data.Pair" 15 | show: "Number.Natural" 16 | show: "Parser" 17 | show: "Parser.Stream" 18 | 19 | main { 20 | article: "parser-all-thm.art" 21 | } 22 | -------------------------------------------------------------------------------- /data/theories/hardware-adder/hardware-adder.thy: -------------------------------------------------------------------------------- 1 | name: hardware-adder 2 | version: 1.18 3 | description: Hardware adder devices 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: base 7 | requires: hardware-bus 8 | requires: hardware-thm 9 | requires: hardware-wire 10 | requires: natural-bits 11 | show: "Data.Bool" 12 | show: "Hardware" 13 | show: "Number.Natural" 14 | 15 | def { 16 | package: hardware-adder-def-1.14 17 | } 18 | 19 | thm { 20 | import: def 21 | package: hardware-adder-thm-1.21 22 | } 23 | 24 | main { 25 | import: def 26 | import: thm 27 | } 28 | -------------------------------------------------------------------------------- /data/theories/natural-factorial-thm/natural-factorial-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-factorial-thm 2 | version: 1.35 3 | description: Properties of natural number factorial 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory exported on 2016-12-05 7 | requires: bool 8 | requires: natural-add 9 | requires: natural-def 10 | requires: natural-factorial-def 11 | requires: natural-mult 12 | requires: natural-numeral 13 | requires: natural-order 14 | show: "Data.Bool" 15 | show: "Number.Natural" 16 | 17 | main { 18 | article: "natural-factorial-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/natural-mult/natural-mult.thy: -------------------------------------------------------------------------------- 1 | name: natural-mult 2 | version: 1.61 3 | description: Natural number multiplication 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: natural-add 8 | requires: natural-def 9 | requires: natural-numeral 10 | requires: natural-order 11 | requires: natural-thm 12 | show: "Data.Bool" 13 | show: "Number.Natural" 14 | 15 | def { 16 | package: natural-mult-def-1.29 17 | } 18 | 19 | thm { 20 | import: def 21 | package: natural-mult-thm-1.53 22 | } 23 | 24 | main { 25 | import: def 26 | import: thm 27 | } 28 | -------------------------------------------------------------------------------- /data/theories/word-witness/word-witness.art: -------------------------------------------------------------------------------- 1 | "Data.Word.width" 2 | "Number.Natural.zero" 3 | const 4 | "Number.Natural.natural" 5 | typeOp 6 | nil 7 | opType 8 | 0 9 | def 10 | constTerm 11 | defineConst 12 | pop 13 | 0 14 | ref 15 | constTerm 16 | 1 17 | def 18 | refl 19 | nil 20 | "=" 21 | const 22 | "->" 23 | typeOp 24 | 2 25 | def 26 | 0 27 | ref 28 | 2 29 | remove 30 | 0 31 | remove 32 | "bool" 33 | typeOp 34 | nil 35 | opType 36 | nil 37 | cons 38 | cons 39 | opType 40 | nil 41 | cons 42 | cons 43 | opType 44 | constTerm 45 | 1 46 | ref 47 | appTerm 48 | 1 49 | remove 50 | appTerm 51 | thm 52 | -------------------------------------------------------------------------------- /data/theories/natural-divides-lcm/natural-divides-lcm.thy: -------------------------------------------------------------------------------- 1 | name: natural-divides-lcm 2 | version: 1.0 3 | description: Natural number least common multiple 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: base 7 | requires: natural-divides-def 8 | requires: natural-divides-gcd 9 | requires: natural-divides-thm 10 | show: "Data.Bool" 11 | show: "Number.Natural" 12 | 13 | def { 14 | package: natural-divides-lcm-def-1.0 15 | } 16 | 17 | thm { 18 | import: def 19 | package: natural-divides-lcm-thm-1.0 20 | } 21 | 22 | main { 23 | import: def 24 | import: thm 25 | } 26 | -------------------------------------------------------------------------------- /data/theories/natural-divides/hol-light.int: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # HOL Light interpretation for the divides relation on natural numbers 3 | ############################################################################### 4 | 5 | # Number 6 | 7 | # Number.Natural 8 | 9 | const "Number.Natural.chineseRemainder" as "HOLLight.chinese" 10 | const "Number.Natural.divides" as "HOLLight.divides" 11 | const "Number.Natural.egcd" as "HOLLight.egcd" 12 | const "Number.Natural.gcd" as "HOLLight.gcd" 13 | const "Number.Natural.lcm" as "HOLLight.lcm" 14 | -------------------------------------------------------------------------------- /data/theories/set-finite/set-finite.thy: -------------------------------------------------------------------------------- 1 | name: set-finite 2 | version: 1.62 3 | description: Finite sets 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: function 8 | requires: natural 9 | requires: pair 10 | requires: set-def 11 | requires: set-thm 12 | show: "Data.Bool" 13 | show: "Data.Pair" 14 | show: "Function" 15 | show: "Number.Natural" 16 | show: "Set" 17 | 18 | def { 19 | package: set-finite-def-1.37 20 | } 21 | 22 | thm { 23 | import: def 24 | package: set-finite-thm-1.68 25 | } 26 | 27 | main { 28 | import: def 29 | import: thm 30 | } 31 | -------------------------------------------------------------------------------- /data/theories/h-thm/h-thm.thy: -------------------------------------------------------------------------------- 1 | name: h-thm 2 | version: 1.119 3 | description: Proof of memory safety for the H interface 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-04-21 7 | requires: base 8 | requires: h-def 9 | requires: natural-bits 10 | requires: word10 11 | show: "Data.Bool" 12 | show: "Data.Byte" 13 | show: "Data.List" 14 | show: "Data.Option" 15 | show: "Data.Pair" 16 | show: "Data.Word10" 17 | show: "Function" 18 | show: "Number.Natural" 19 | show: "Set" 20 | show: "System.H" 21 | 22 | main { 23 | article: "h-thm.art" 24 | } 25 | -------------------------------------------------------------------------------- /data/theories/list-fold-thm/list-fold-thm.thy: -------------------------------------------------------------------------------- 1 | name: list-fold-thm 2 | version: 1.28 3 | description: Properties of the list fold operations 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-09 7 | requires: bool 8 | requires: function 9 | requires: list-append 10 | requires: list-def 11 | requires: list-fold-def 12 | requires: list-length 13 | requires: list-reverse 14 | requires: natural 15 | show: "Data.Bool" 16 | show: "Data.List" 17 | show: "Function" 18 | show: "Number.Natural" 19 | 20 | main { 21 | article: "list-fold-thm.art" 22 | } 23 | -------------------------------------------------------------------------------- /data/theories/parser-fold/parser-fold.thy: -------------------------------------------------------------------------------- 1 | name: parser-fold 2 | version: 1.2 3 | description: The fold parsers 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: base 7 | requires: parser-comb 8 | requires: parser-stream 9 | show: "Data.Bool" 10 | show: "Data.Option" 11 | show: "Data.Pair" 12 | show: "Data.Sum" 13 | show: "Number.Natural" 14 | show: "Parser" 15 | show: "Parser.Stream" 16 | 17 | def { 18 | package: parser-fold-def-1.2 19 | } 20 | 21 | thm { 22 | import: def 23 | package: parser-fold-thm-1.3 24 | } 25 | 26 | main { 27 | import: def 28 | import: thm 29 | } 30 | -------------------------------------------------------------------------------- /data/theories/set-size/set-size.thy: -------------------------------------------------------------------------------- 1 | name: set-size 2 | version: 1.60 3 | description: Finite set cardinality 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: natural 8 | requires: pair 9 | requires: set-def 10 | requires: set-finite 11 | requires: set-fold 12 | requires: set-thm 13 | show: "Data.Bool" 14 | show: "Data.Pair" 15 | show: "Number.Natural" 16 | show: "Set" 17 | 18 | def { 19 | package: set-size-def-1.33 20 | } 21 | 22 | thm { 23 | import: def 24 | package: set-size-thm-1.66 25 | } 26 | 27 | main { 28 | import: def 29 | import: thm 30 | } 31 | -------------------------------------------------------------------------------- /test/interpretations/hol-light.int: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # INTERPRETING HOL LIGHT NAMES INTO THE OPENTHEORY STANDARD NAMESPACE 3 | ############################################################################### 4 | 5 | # Global 6 | 7 | type "HOLLight.fun" as "->" 8 | type "HOLLight.bool" as "bool" 9 | const "HOLLight.=" as "=" 10 | 11 | # Data 12 | 13 | # Data.Bool 14 | 15 | const "HOLLight.!" as "Data.Bool.!" 16 | const "HOLLight./\\" as "Data.Bool./\\" 17 | const "HOLLight.==>" as "Data.Bool.==>" 18 | const "HOLLight.T" as "Data.Bool.T" 19 | -------------------------------------------------------------------------------- /data/theories/group-crypt/group-crypt.thy: -------------------------------------------------------------------------------- 1 | name: group-crypt 2 | version: 1.8 3 | description: Group cryptography 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: group-mult 8 | requires: group-thm 9 | requires: group-witness 10 | requires: natural 11 | requires: pair 12 | show: "Algebra.Group" 13 | show: "Data.Bool" 14 | show: "Data.Pair" 15 | show: "Number.Natural" 16 | 17 | def { 18 | package: group-crypt-def-1.11 19 | } 20 | 21 | thm { 22 | import: def 23 | package: group-crypt-thm-1.10 24 | } 25 | 26 | main { 27 | import: def 28 | import: thm 29 | } 30 | -------------------------------------------------------------------------------- /data/theories/list-nub/list-nub.thy: -------------------------------------------------------------------------------- 1 | name: list-nub 2 | version: 1.57 3 | description: The list nub function 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: list-def 8 | requires: list-length 9 | requires: list-reverse 10 | requires: list-set 11 | requires: natural 12 | requires: set 13 | show: "Data.Bool" 14 | show: "Data.List" 15 | show: "Number.Natural" 16 | show: "Set" 17 | 18 | def { 19 | package: list-nub-def-1.54 20 | } 21 | 22 | thm { 23 | import: def 24 | package: list-nub-thm-1.57 25 | } 26 | 27 | main { 28 | import: def 29 | import: thm 30 | } 31 | -------------------------------------------------------------------------------- /data/theories/montgomery-hardware-thm/montgomery-hardware-thm.thy: -------------------------------------------------------------------------------- 1 | name: montgomery-hardware-thm 2 | version: 1.8 3 | description: Properties of hardware Montgomery multiplication 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-11-01 7 | requires: base 8 | requires: hardware 9 | requires: montgomery-hardware-def 10 | requires: montgomery-thm 11 | requires: natural-bits 12 | show: "Data.Bool" 13 | show: "Data.List" 14 | show: "Hardware" 15 | show: "Number.Natural" 16 | show: "Set" 17 | 18 | main { 19 | article: "montgomery-hardware-thm.art" 20 | } 21 | -------------------------------------------------------------------------------- /data/theories/natural-distance/natural-distance.thy: -------------------------------------------------------------------------------- 1 | name: natural-distance 2 | version: 1.52 3 | description: Natural number distance 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: natural-add 8 | requires: natural-mult 9 | requires: natural-numeral 10 | requires: natural-order 11 | requires: natural-thm 12 | show: "Data.Bool" 13 | show: "Number.Natural" 14 | 15 | def { 16 | package: natural-distance-def-1.41 17 | } 18 | 19 | thm { 20 | import: def 21 | package: natural-distance-thm-1.59 22 | } 23 | 24 | main { 25 | import: def 26 | import: thm 27 | } 28 | -------------------------------------------------------------------------------- /data/theories/natural-divides-gcd/natural-divides-gcd.thy: -------------------------------------------------------------------------------- 1 | name: natural-divides-gcd 2 | version: 1.7 3 | description: Natural number greatest common divisor 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: base 7 | requires: natural-divides-def 8 | requires: natural-divides-thm 9 | show: "Data.Bool" 10 | show: "Data.Pair" 11 | show: "Number.Natural" 12 | show: "Relation" 13 | 14 | def { 15 | package: natural-divides-gcd-def-1.3 16 | } 17 | 18 | thm { 19 | import: def 20 | package: natural-divides-gcd-thm-1.7 21 | } 22 | 23 | main { 24 | import: def 25 | import: thm 26 | } 27 | -------------------------------------------------------------------------------- /data/theories/natural-divides/haskell.int: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # HASKELL INTERPRETATIONS FOR THE DIVIDES RELATION 3 | # Joe Leslie-Hurd 4 | ############################################################################### 5 | 6 | # OpenTheory 7 | 8 | # OpenTheory.Natural 9 | 10 | # OpenTheory.Natural.Divides 11 | 12 | const "Number.Natural.chineseRemainder" as "OpenTheory.Natural.Divides.chineseRemainder" 13 | const "Number.Natural.divides" as "OpenTheory.Natural.Divides.divides" 14 | const "Number.Natural.egcd" as "OpenTheory.Natural.Divides.egcd" 15 | -------------------------------------------------------------------------------- /data/theories/monoid/hol-light.int: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # INTERPRETATIONS FOR A PARAMETRIC THEORY OF MONOIDS 3 | # Joe Leslie-Hurd 4 | ############################################################################### 5 | 6 | # Algebra 7 | 8 | # Algebra.Monoid 9 | 10 | type "Algebra.Monoid.monoid" as "HOLLight.monoid" 11 | 12 | const "Algebra.Monoid.+" as "HOLLight.monoid_add" 13 | const "Algebra.Monoid.*" as "HOLLight.monoid_mult" 14 | const "Algebra.Monoid.0" as "HOLLight.monoid_zero" 15 | const "Algebra.Monoid.multAdd" as "HOLLight.monoid_mult_add" 16 | -------------------------------------------------------------------------------- /data/theories/natural-div/natural-div.thy: -------------------------------------------------------------------------------- 1 | name: natural-div 2 | version: 1.57 3 | description: Natural number division 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: natural-add 8 | requires: natural-def 9 | requires: natural-mult 10 | requires: natural-numeral 11 | requires: natural-order 12 | requires: natural-thm 13 | show: "Data.Bool" 14 | show: "Number.Natural" 15 | 16 | def { 17 | package: natural-div-def-1.41 18 | } 19 | 20 | thm { 21 | import: def 22 | package: natural-div-thm-1.60 23 | } 24 | 25 | main { 26 | import: def 27 | import: thm 28 | } 29 | -------------------------------------------------------------------------------- /data/theories/natural-prime-stream-thm/natural-prime-stream-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-prime-stream-thm 2 | version: 1.28 3 | description: Properties of the ordered stream of all prime numbers 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2015-02-09 7 | requires: base 8 | requires: natural-divides 9 | requires: natural-prime-stream-def 10 | requires: natural-prime-thm 11 | requires: stream 12 | show: "Data.Bool" 13 | show: "Data.List" 14 | show: "Data.Stream" 15 | show: "Number.Natural" 16 | 17 | main { 18 | article: "natural-prime-stream-thm.art" 19 | } 20 | -------------------------------------------------------------------------------- /data/theories/parser-all/parser-all.thy: -------------------------------------------------------------------------------- 1 | name: parser-all 2 | version: 1.103 3 | description: The whole stream parser 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: base 7 | requires: parser-comb 8 | requires: parser-stream 9 | show: "Data.Bool" 10 | show: "Data.List" 11 | show: "Data.Option" 12 | show: "Data.Pair" 13 | show: "Number.Natural" 14 | show: "Parser" 15 | show: "Parser.Stream" 16 | 17 | def { 18 | package: parser-all-def-1.94 19 | } 20 | 21 | thm { 22 | import: def 23 | package: parser-all-thm-1.105 24 | } 25 | 26 | main { 27 | import: def 28 | import: thm 29 | } 30 | -------------------------------------------------------------------------------- /data/theories/list-append-thm/list-append-thm.thy: -------------------------------------------------------------------------------- 1 | name: list-append-thm 2 | version: 1.29 3 | description: Properties of appending lists 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory extracted on 2014-11-01 7 | requires: bool 8 | requires: list-append-def 9 | requires: list-def 10 | requires: list-dest 11 | requires: list-length 12 | requires: list-set 13 | requires: list-thm 14 | requires: natural 15 | requires: set 16 | show: "Data.Bool" 17 | show: "Data.List" 18 | show: "Number.Natural" 19 | show: "Set" 20 | 21 | main { 22 | article: "list-append-thm.art" 23 | } 24 | -------------------------------------------------------------------------------- /repo/opentheory.js: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // OPENTHEORY REPO 4 | // 5 | // Copyright (c) 2009 Joe Leslie-Hurd, distributed under the MIT license 6 | // 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | /////////////////////////////////////////////////////////////////////////////// 10 | // Confirming an upload. 11 | /////////////////////////////////////////////////////////////////////////////// 12 | 13 | function confirm_upload() { 14 | return confirm('Are you sure you want to upload this package?'); 15 | } 16 | -------------------------------------------------------------------------------- /data/theories/h-def/h-def.thy: -------------------------------------------------------------------------------- 1 | name: h-def 2 | version: 1.117 3 | description: Definition of memory safety for the H interface 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | provenance: HOL Light theory extracted on 2014-11-04 7 | requires: base 8 | requires: byte 9 | requires: word10 10 | requires: word12 11 | show: "Data.Bool" 12 | show: "Data.Byte" 13 | show: "Data.List" 14 | show: "Data.Option" 15 | show: "Data.Pair" 16 | show: "Data.Word10" 17 | show: "Data.Word12" 18 | show: "Function" 19 | show: "Number.Natural" 20 | show: "Set" 21 | show: "System.H" 22 | 23 | main { 24 | article: "h-def.art" 25 | } 26 | -------------------------------------------------------------------------------- /data/theories/natural-exp-thm/natural-exp-thm.thy: -------------------------------------------------------------------------------- 1 | name: natural-exp-thm 2 | version: 1.47 3 | description: Properties of natural number exponentiation 4 | author: Joe Leslie-Hurd 5 | license: HOLLight 6 | provenance: HOL Light theory exported on 2017-05-25 7 | requires: bool 8 | requires: natural-add 9 | requires: natural-def 10 | requires: natural-div 11 | requires: natural-exp-def 12 | requires: natural-mult 13 | requires: natural-numeral 14 | requires: natural-order 15 | requires: natural-thm 16 | show: "Data.Bool" 17 | show: "Number.Natural" 18 | 19 | main { 20 | article: "natural-exp-thm.art" 21 | } 22 | -------------------------------------------------------------------------------- /data/theories/list-fold/list-fold.thy: -------------------------------------------------------------------------------- 1 | name: list-fold 2 | version: 1.29 3 | description: List fold operations 4 | author: Joe Leslie-Hurd 5 | license: MIT 6 | requires: bool 7 | requires: function 8 | requires: list-append 9 | requires: list-def 10 | requires: list-length 11 | requires: list-reverse 12 | requires: natural 13 | show: "Data.Bool" 14 | show: "Data.List" 15 | show: "Function" 16 | show: "Number.Natural" 17 | 18 | def { 19 | package: list-fold-def-1.28 20 | } 21 | 22 | thm { 23 | import: def 24 | package: list-fold-thm-1.28 25 | } 26 | 27 | main { 28 | import: def 29 | import: thm 30 | } 31 | --------------------------------------------------------------------------------