Skip to content
Snippets Groups Projects
SituationTheory.mmt 2.25 KiB
Newer Older
  • Learn to ignore specific revisions
  • ComFreek's avatar
    ComFreek committed
    namespace http://mathhub.info/FrameIT/frameworld/integrationtests ❚
    
    
    ComFreek's avatar
    ComFreek committed
    import frameworld http://mathhub.info/FrameIT/frameworld ❚
    
    
    ComFreek's avatar
    ComFreek committed
    fixmeta http://mathhub.info/FrameIT/frameworld?FrameworldMeta ❚
    
    
    ComFreek's avatar
    ComFreek committed
    theory SampleSituationSpace =
        theory Root =
            // planar triangle in R^2 ❙
            include ☞frameworld:?OppositeLen ❙
            include ☞frameworld:?AngleSum ❙
    
            A
                : point ❘
                = ⟨0.0, 0.0, 0.0⟩ ❘
                meta frameworld:?MetaAnnotations?label "𝔸"
    
    
            B
                : point ❘
                = ⟨3.0, 3.0, 0.0⟩ ❘
                meta frameworld:?MetaAnnotations?label "𝔹"
    
    
            C
                : point ❘
                = ⟨0.0, 3.0, 0.0⟩ ❘
                meta frameworld:?MetaAnnotations?label "ℂ"
    
    
            distanceBC
                : Σ x:ℝ. ⊦ (d- B C ≐ x) ❘
                = ⟨3.0, sketch "calculated by ComFreek by hand"⟩ ❘
                meta frameworld:?MetaAnnotations?label "𝔹ℂ"
    
    
            angleABC
                : Σ β:ℝ. ⊦ ( ∠ A,B,C ) ≐ β ❘
                = ⟨45.0, sketch "calculated by ComFreek by hand"⟩ ❘
                meta frameworld:?MetaAnnotations?label "∠𝔸𝔹ℂ"
    
    
            angleBAC
                : Σ β:ℝ. ⊦ ( ∠ B,A,C ) ≐ β ❘
                = ⟨45.0, sketch "calculated by ComFreek by hand"⟩ ❘
                meta frameworld:?MetaAnnotations?label "∠ℬ𝔸ℂ"
    
    
            rightAngledC
                : ⊦ ( ∠ B,C,A ) ≐ 90.0 ❘
                = sketch "calculated by ComFreek by hand, hopefully correct" ❘
                meta frameworld:?MetaAnnotations?label "∟ℂ"
    
    
    
    
    theory MyScroll =
      theory Problem = a: type ❙❚
      theory Solution =
        include ?MyScroll/Problem ❙
        c: type ❘ = a❙
    
    
    ComFreek's avatar
    ComFreek committed
    
    
    ComFreek's avatar
    ComFreek committed
    
    theory SituationSpace =
      theory RootSituationTheory =
        include ?MyScroll ❙
        b: type ❙
    
    ComFreek's avatar
    ComFreek committed
        p : point ❘ = ⟨0.0, 0.0, 0.0⟩ ❙
    
    ComFreek's avatar
    ComFreek committed
    
        view v : ?MyScroll/Problem -> ?SituationSpace/RootSituationTheory =
          a = b ❙
    
    
    
      theory PushedOutSituationTheory =
        include ?SituationSpace/RootSituationTheory ❙
    
    ComFreek's avatar
    ComFreek committed
        c: type ❙
    
    ComFreek's avatar
    ComFreek committed
        q = p ❙
    
    ComFreek's avatar
    ComFreek committed
    
        view w : ?MyScroll/Problem -> ?SituationSpace/PushedOutSituationTheory =
          a = c ❙
    
    
    ComFreek's avatar
    ComFreek committed